File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/vs/editor/contrib/suggest/browser Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import { ILanguageFeaturesService } from 'vs/editor/common/services/languageFeat
30
30
import { FuzzyScoreOptions } from 'vs/base/common/filters' ;
31
31
import { assertType } from 'vs/base/common/types' ;
32
32
import { InlineCompletionContextKeys } from 'vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys' ;
33
+ import { SnippetController2 } from 'vs/editor/contrib/snippet/browser/snippetController2' ;
33
34
34
35
export interface ICancelEvent {
35
36
readonly retrigger : boolean ;
@@ -378,6 +379,11 @@ export class SuggestModel implements IDisposable {
378
379
return ;
379
380
}
380
381
382
+ if ( this . _editor . getOption ( EditorOption . suggest ) . snippetsPreventQuickSuggestions && SnippetController2 . get ( this . _editor ) ?. isInSnippet ( ) ) {
383
+ // no quick suggestion when in snippet mode
384
+ return ;
385
+ }
386
+
381
387
this . cancel ( ) ;
382
388
383
389
this . _triggerQuickSuggest . cancelAndSet ( ( ) => {
You can’t perform that action at this time.
0 commit comments