diff options
Diffstat (limited to 'extensions/emmet/src/emmetCommon.ts')
-rw-r--r-- | extensions/emmet/src/emmetCommon.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/emmet/src/emmetCommon.ts b/extensions/emmet/src/emmetCommon.ts index fc81dd9d7ed..daed62d7c65 100644 --- a/extensions/emmet/src/emmetCommon.ts +++ b/extensions/emmet/src/emmetCommon.ts @@ -204,7 +204,7 @@ function refreshCompletionProviders(_: vscode.ExtensionContext) { completionProviderDisposables.push(inlineCompletionsProvider); } - const explicitProvider = vscode.languages.registerCompletionItemProvider({ language, scheme: '*' }, completionProvider); + const explicitProvider = vscode.languages.registerCompletionItemProvider({ language, scheme: '*' }, completionProvider, ...LANGUAGE_MODES[includedLanguages[language]]); completionProviderDisposables.push(explicitProvider); languageMappingForCompletionProviders.set(language, includedLanguages[language]); @@ -217,7 +217,7 @@ function refreshCompletionProviders(_: vscode.ExtensionContext) { completionProviderDisposables.push(inlineCompletionsProvider); } - const explicitProvider = vscode.languages.registerCompletionItemProvider({ language, scheme: '*' }, completionProvider); + const explicitProvider = vscode.languages.registerCompletionItemProvider({ language, scheme: '*' }, completionProvider, ...LANGUAGE_MODES[language]); completionProviderDisposables.push(explicitProvider); languageMappingForCompletionProviders.set(language, language); |