mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
make sure to read setting (#184040)
d'oh, related to https://github.com/microsoft/vscode/issues/173387#issuecomment-1571696644
This commit is contained in:
parent
45e1773057
commit
cfea9dfd07
|
@ -30,6 +30,7 @@ import { ILanguageFeaturesService } from 'vs/editor/common/services/languageFeat
|
|||
import { FuzzyScoreOptions } from 'vs/base/common/filters';
|
||||
import { assertType } from 'vs/base/common/types';
|
||||
import { InlineCompletionContextKeys } from 'vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys';
|
||||
import { SnippetController2 } from 'vs/editor/contrib/snippet/browser/snippetController2';
|
||||
|
||||
export interface ICancelEvent {
|
||||
readonly retrigger: boolean;
|
||||
|
@ -378,6 +379,11 @@ export class SuggestModel implements IDisposable {
|
|||
return;
|
||||
}
|
||||
|
||||
if (this._editor.getOption(EditorOption.suggest).snippetsPreventQuickSuggestions && SnippetController2.get(this._editor)?.isInSnippet()) {
|
||||
// no quick suggestion when in snippet mode
|
||||
return;
|
||||
}
|
||||
|
||||
this.cancel();
|
||||
|
||||
this._triggerQuickSuggest.cancelAndSet(() => {
|
||||
|
|
Loading…
Reference in a new issue