mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Fixing compile error caused by TS 2.0.3
This commit is contained in:
@@ -149,23 +149,23 @@ export class ExtHostAPIImplementation {
|
||||
this.Selection = extHostTypes.Selection;
|
||||
this.CancellationTokenSource = CancellationTokenSource;
|
||||
this.Hover = extHostTypes.Hover;
|
||||
this.SymbolKind = extHostTypes.SymbolKind;
|
||||
this.SymbolInformation = extHostTypes.SymbolInformation;
|
||||
this.DocumentHighlightKind = extHostTypes.DocumentHighlightKind;
|
||||
this.DocumentHighlight = extHostTypes.DocumentHighlight;
|
||||
this.SymbolKind = <any>extHostTypes.SymbolKind;
|
||||
this.SymbolInformation = <any>extHostTypes.SymbolInformation;
|
||||
this.DocumentHighlightKind = <any>extHostTypes.DocumentHighlightKind;
|
||||
this.DocumentHighlight = <any>extHostTypes.DocumentHighlight;
|
||||
this.CodeLens = extHostTypes.CodeLens;
|
||||
this.ParameterInformation = extHostTypes.ParameterInformation;
|
||||
this.SignatureInformation = extHostTypes.SignatureInformation;
|
||||
this.SignatureHelp = extHostTypes.SignatureHelp;
|
||||
this.CompletionItem = extHostTypes.CompletionItem;
|
||||
this.CompletionItemKind = extHostTypes.CompletionItemKind;
|
||||
this.CompletionItem = <any>extHostTypes.CompletionItem;
|
||||
this.CompletionItemKind = <any>extHostTypes.CompletionItemKind;
|
||||
this.CompletionList = extHostTypes.CompletionList;
|
||||
this.DocumentLink = extHostTypes.DocumentLink;
|
||||
this.ViewColumn = extHostTypes.ViewColumn;
|
||||
this.StatusBarAlignment = extHostTypes.StatusBarAlignment;
|
||||
this.IndentAction = Modes.IndentAction;
|
||||
this.StatusBarAlignment = <any>extHostTypes.StatusBarAlignment;
|
||||
this.IndentAction = <any>Modes.IndentAction;
|
||||
this.OverviewRulerLane = EditorCommon.OverviewRulerLane;
|
||||
this.TextEditorRevealType = extHostTypes.TextEditorRevealType;
|
||||
this.TextEditorRevealType = <any>extHostTypes.TextEditorRevealType;
|
||||
this.EndOfLine = extHostTypes.EndOfLine;
|
||||
this.TextEditorCursorStyle = EditorCommon.TextEditorCursorStyle;
|
||||
this.TextEditorSelectionChangeKind = extHostTypes.TextEditorSelectionChangeKind;
|
||||
|
||||
@@ -350,7 +350,7 @@ class ExtHostApiCommands {
|
||||
incomplete = item.container.incomplete || incomplete;
|
||||
items.push(typeConverters.Suggest.to(item.container, position, item.suggestion));
|
||||
}
|
||||
return new types.CompletionList(items, incomplete);
|
||||
return new types.CompletionList(<vscode.CompletionItem[]><any>items, incomplete);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -243,7 +243,7 @@ class DocumentHighlightAdapter {
|
||||
private static _convertDocumentHighlight(documentHighlight: vscode.DocumentHighlight): modes.DocumentHighlight {
|
||||
return {
|
||||
range: TypeConverters.fromRange(documentHighlight.range),
|
||||
kind: documentHighlight.kind
|
||||
kind: <modes.DocumentHighlightKind><any>documentHighlight.kind
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -583,8 +583,8 @@ class SuggestAdapter {
|
||||
if (!item) {
|
||||
return TPromise.as(suggestion);
|
||||
}
|
||||
return asWinJsPromise(token => this._provider.resolveCompletionItem(item, token)).then(resolvedItem => {
|
||||
return TypeConverters.Suggest.from(resolvedItem || item, this._disposables[id]);
|
||||
return asWinJsPromise(token => this._provider.resolveCompletionItem(<vscode.CompletionItem><any>item, token)).then(resolvedItem => {
|
||||
return TypeConverters.Suggest.from(resolvedItem || <vscode.CompletionItem><any>item, this._disposables[id]);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ export namespace SymbolInformation {
|
||||
export function toOutlineEntry(symbol: vscode.SymbolInformation): modes.SymbolInformation {
|
||||
return <modes.SymbolInformation>{
|
||||
name: symbol.name,
|
||||
kind: symbol.kind,
|
||||
kind: <modes.SymbolKind><any>symbol.kind,
|
||||
containerName: symbol.containerName,
|
||||
location: {
|
||||
uri: <URI>symbol.location.uri,
|
||||
@@ -317,7 +317,7 @@ export const Suggest = {
|
||||
const suggestion: modes.ISuggestion = {
|
||||
label: item.label,
|
||||
insertText: item.insertText || item.label,
|
||||
type: CompletionItemKind.from(item.kind),
|
||||
type: CompletionItemKind.from(<types.CompletionItemKind><any>item.kind),
|
||||
detail: item.detail,
|
||||
documentation: item.documentation,
|
||||
sortText: item.sortText,
|
||||
|
||||
@@ -238,10 +238,10 @@ export class MainThreadLanguageFeatures extends MainThreadLanguageFeaturesShape
|
||||
$setLanguageConfiguration(handle: number, languageId: string, configuration: vscode.LanguageConfiguration): TPromise<any> {
|
||||
|
||||
if (configuration.__characterPairSupport) {
|
||||
(<LanguageConfiguration> configuration).autoClosingPairs = configuration.__characterPairSupport.autoClosingPairs;
|
||||
(<LanguageConfiguration><any> configuration).autoClosingPairs = configuration.__characterPairSupport.autoClosingPairs;
|
||||
}
|
||||
|
||||
this._registrations[handle] = LanguageConfigurationRegistry.register(languageId, configuration);
|
||||
this._registrations[handle] = LanguageConfigurationRegistry.register(languageId, <LanguageConfiguration><any>configuration);
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user