mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
parent
56ae202f83
commit
d627aa4606
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue