mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
Rename some ILanguageService methods
This commit is contained in:
@@ -32,9 +32,9 @@ export class MainThreadLanguages implements MainThreadLanguagesShape {
|
||||
) {
|
||||
this._proxy = _extHostContext.getProxy(ExtHostContext.ExtHostLanguages);
|
||||
|
||||
this._proxy.$acceptLanguageIds(_languageService.getRegisteredModes());
|
||||
this._proxy.$acceptLanguageIds(_languageService.getRegisteredLanguageIds());
|
||||
this._disposables.add(_languageService.onLanguagesMaybeChanged(e => {
|
||||
this._proxy.$acceptLanguageIds(_languageService.getRegisteredModes());
|
||||
this._proxy.$acceptLanguageIds(_languageService.getRegisteredLanguageIds());
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ abstract class MainThreadKernel implements INotebookKernel {
|
||||
this.description = data.description;
|
||||
this.detail = data.detail;
|
||||
this.kind = data.kind;
|
||||
this.supportedLanguages = isNonEmptyArray(data.supportedLanguages) ? data.supportedLanguages : _languageService.getRegisteredModes();
|
||||
this.supportedLanguages = isNonEmptyArray(data.supportedLanguages) ? data.supportedLanguages : _languageService.getRegisteredLanguageIds();
|
||||
this.implementsExecutionOrder = data.supportsExecutionOrder ?? false;
|
||||
this.localResourceRoot = URI.revive(data.extensionLocation);
|
||||
this.preloads = data.preloads?.map(u => ({ uri: URI.revive(u.uri), provides: u.provides })) ?? [];
|
||||
@@ -83,7 +83,7 @@ abstract class MainThreadKernel implements INotebookKernel {
|
||||
event.kind = true;
|
||||
}
|
||||
if (data.supportedLanguages !== undefined) {
|
||||
this.supportedLanguages = isNonEmptyArray(data.supportedLanguages) ? data.supportedLanguages : this._languageService.getRegisteredModes();
|
||||
this.supportedLanguages = isNonEmptyArray(data.supportedLanguages) ? data.supportedLanguages : this._languageService.getRegisteredLanguageIds();
|
||||
event.supportedLanguages = true;
|
||||
}
|
||||
if (data.supportsExecutionOrder !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user