File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
packages/app/src/app/overmind/effects/vscode Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ export type OnOperationAppliedCallback = (data: OnOperationAppliedData) => void;
5252
5353export type ModuleModel = {
5454 changeListener : { dispose : Function } ;
55- selections : EditorSelection [ ] ;
5655 currentLine : number ;
5756 path : string ;
5857 model : Promise < any > ;
@@ -129,7 +128,6 @@ export class ModelsHandler {
129128 model : null ,
130129 currentLine : 0 ,
131130 path : fullPath ,
132- selections : [ ] ,
133131 comments : [ ] ,
134132 currentCommentDecorations : [ ] ,
135133 } ;
@@ -166,8 +164,6 @@ export class ModelsHandler {
166164 . then ( textFileEditorModel => textFileEditorModel . load ( ) )
167165 . then ( textFileEditorModel => textFileEditorModel . textEditorModel ) ;
168166
169- this . updateUserSelections ( module , moduleModel . selections ) ;
170-
171167 const model = await moduleModel . model ;
172168
173169 if ( COMMENTS ) {
@@ -323,7 +319,7 @@ export class ModelsHandler {
323319 Object . keys ( this . moduleModels ) . forEach ( async key => {
324320 const moduleModel = this . moduleModels [ key ] ;
325321
326- if ( ! moduleModel . model ) {
322+ if ( ! moduleModel ? .model ) {
327323 return ;
328324 }
329325
@@ -357,8 +353,6 @@ export class ModelsHandler {
357353 return ;
358354 }
359355
360- moduleModel . selections = userSelections ;
361-
362356 const model = await moduleModel . model ;
363357 const lines = model . getLinesContent ( ) || [ ] ;
364358
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export class VSCodeEffect {
141141 getState : options . getState ,
142142 getSignal : options . getSignal ,
143143 } ;
144- this . onSelectionChangeDebounced = debounce ( options . onSelectionChanged , 500 ) ;
144+ this . onSelectionChangeDebounced = debounce ( options . onSelectionChanged , 200 ) ;
145145
146146 this . prepareElements ( ) ;
147147
You can’t perform that action at this time.
0 commit comments