@@ -8,10 +8,9 @@ import { mapFindFirst } from 'vs/base/common/arraysFind';
8
8
import { itemsEquals } from 'vs/base/common/equals' ;
9
9
import { BugIndicatingError , onUnexpectedError , onUnexpectedExternalError } from 'vs/base/common/errors' ;
10
10
import { Disposable } from 'vs/base/common/lifecycle' ;
11
- import { IObservable , IReader , ITransaction , autorun , derived , derivedHandleChanges , derivedOpts , observableSignal , observableValue , recomputeInitiallyAndOnChange , subtransaction , transaction } from 'vs/base/common/observable' ;
11
+ import { IObservable , autorun , derived , derivedHandleChanges , derivedOpts , observableSignal , observableValue , recomputeInitiallyAndOnChange , transaction } from 'vs/base/common/observable' ;
12
12
import { commonPrefixLength , splitLinesIncludeSeparators } from 'vs/base/common/strings' ;
13
13
import { isDefined } from 'vs/base/common/types' ;
14
- import { ICodeEditor } from 'vs/editor/browser/editorBrowser' ;
15
14
import { EditOperation } from 'vs/editor/common/core/editOperation' ;
16
15
import { Position } from 'vs/editor/common/core/position' ;
17
16
import { Range } from 'vs/editor/common/core/range' ;
@@ -60,8 +59,6 @@ export class InlineCompletionsModel extends Disposable {
60
59
private readonly _suggestPreviewMode : IObservable < 'prefix' | 'subword' | 'subwordSmart' > ,
61
60
private readonly _inlineSuggestMode : IObservable < 'prefix' | 'subword' | 'subwordSmart' > ,
62
61
private readonly _enabled : IObservable < boolean > ,
63
- private readonly _isScreenReaderEnabled : IObservable < boolean > ,
64
- private readonly _editorDictationInProgress : IObservable < boolean > ,
65
62
@IInstantiationService private readonly _instantiationService : IInstantiationService ,
66
63
@ICommandService private readonly _commandService : ICommandService ,
67
64
@ILanguageConfigurationService private readonly _languageConfigurationService : ILanguageConfigurationService ,
@@ -109,7 +106,7 @@ export class InlineCompletionsModel extends Disposable {
109
106
} ,
110
107
} , ( reader , changeSummary ) => {
111
108
this . _forceUpdateExplicitlySignal . read ( reader ) ;
112
- const shouldUpdate = ( this . _enabled . read ( reader ) && ( ! this . _isScreenReaderEnabled . read ( reader ) || ! this . _editorDictationInProgress . read ( reader ) ) && this . selectedSuggestItem . read ( reader ) ) || this . _isActive . read ( reader ) ;
109
+ const shouldUpdate = this . _enabled . read ( reader ) && this . selectedSuggestItem . read ( reader ) || this . _isActive . read ( reader ) ;
113
110
if ( ! shouldUpdate ) {
114
111
this . _source . cancelUpdate ( ) ;
115
112
return undefined ;
0 commit comments