mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Merge branch 'master' into aeschli/decoration-attachments
This commit is contained in:
@@ -42,6 +42,7 @@ import vscode = require('vscode');
|
||||
import {TextEditorRevealType} from 'vs/workbench/api/node/mainThreadEditors';
|
||||
import * as paths from 'vs/base/common/paths';
|
||||
import {ITelemetryService, ITelemetryInfo} from 'vs/platform/telemetry/common/telemetry';
|
||||
import {LanguageConfigurationRegistry} from 'vs/editor/common/modes/languageConfigurationRegistry';
|
||||
|
||||
/**
|
||||
* This class implements the API described in vscode.d.ts,
|
||||
@@ -503,6 +504,6 @@ export class MainProcessVSCodeAPIHelper {
|
||||
}
|
||||
|
||||
public Modes_RichEditSupport_register(disposeToken:string, modeId: string, configuration:vscode.LanguageConfiguration): void {
|
||||
this._token2Dispose[disposeToken] = this._modeService.registerRichEditSupport(modeId, <any>configuration);
|
||||
this._token2Dispose[disposeToken] = LanguageConfigurationRegistry.register(modeId, configuration);
|
||||
}
|
||||
}
|
||||
@@ -717,8 +717,9 @@ export class CompletionItem {
|
||||
insertText: string;
|
||||
textEdit: TextEdit;
|
||||
|
||||
constructor(label: string) {
|
||||
constructor(label: string, kind?: CompletionItemKind) {
|
||||
this.label = label;
|
||||
this.kind = kind;
|
||||
}
|
||||
|
||||
toJSON(): any {
|
||||
|
||||
Reference in New Issue
Block a user