提交 fd6bb626 编写于 作者: J Johannes Rieken

fix tslint warnings...

上级 c3895965
......@@ -74,19 +74,11 @@ declare module 'vscode' {
/**
* Provide a list of callers for the provided item, e.g. all function calling a function.
*
* @param target
* @param token
* @returns
*/
provideCallHierarchyIncomingCalls(target: CallHierarchyItem, token: CancellationToken): ProviderResult<CallHierarchyIncomingCall[]>;
/**
* Provide a list of calls for the provided item, e.g. all functions call from a function.
*
* @param source
* @param token
* @returns
*/
provideCallHierarchyOutgoingCalls(source: CallHierarchyItem, token: CancellationToken): ProviderResult<CallHierarchyOutgoingCall[]>;
......
......@@ -506,7 +506,7 @@ export class MainThreadLanguageFeatures implements MainThreadLanguageFeaturesSha
return {
target: MainThreadLanguageFeatures._reviveCallHierarchyItemDto(item),
sourceRanges
}
};
});
},
provideIncomingCalls: async (item, token) => {
......@@ -518,7 +518,7 @@ export class MainThreadLanguageFeatures implements MainThreadLanguageFeaturesSha
return {
source: MainThreadLanguageFeatures._reviveCallHierarchyItemDto(item),
sourceRanges
}
};
});
}
}));
......
......@@ -1040,7 +1040,7 @@ class CallHierarchyAdapter {
if (!calls) {
return undefined;
}
return calls.map(call => (<[ICallHierarchyItemDto, IRange[]]>[this._fromItem(call.source), call.sourceRanges.map(typeConvert.Range.from)]))
return calls.map(call => (<[ICallHierarchyItemDto, IRange[]]>[this._fromItem(call.source), call.sourceRanges.map(typeConvert.Range.from)]));
}
async provideCallsFrom(source: callHierarchy.CallHierarchyItem, token: CancellationToken): Promise<[ICallHierarchyItemDto, IRange[]][] | undefined> {
......@@ -1052,7 +1052,7 @@ class CallHierarchyAdapter {
if (!calls) {
return undefined;
}
return calls.map(call => (<[ICallHierarchyItemDto, IRange[]]>[this._fromItem(call.target), call.sourceRanges.map(typeConvert.Range.from)]))
return calls.map(call => (<[ICallHierarchyItemDto, IRange[]]>[this._fromItem(call.target), call.sourceRanges.map(typeConvert.Range.from)]));
}
private _fromItem(item: vscode.CallHierarchyItem, _id: number = this._idPool++): callHierarchy.CallHierarchyItem {
......
......@@ -26,13 +26,13 @@ export interface CallHierarchyItem {
}
export interface IncomingCall {
source: CallHierarchyItem,
sourceRanges: IRange[]
source: CallHierarchyItem;
sourceRanges: IRange[];
}
export interface OutgoingCall {
sourceRanges: IRange[],
target: CallHierarchyItem
sourceRanges: IRange[];
target: CallHierarchyItem;
}
export interface CallHierarchyProvider {
......
......@@ -51,7 +51,7 @@ export class WebWorkerExtensionHostStarter implements IExtensionHostStarter {
const emitter = new Emitter<VSBuffer>();
const url = getWorkerBootstrapUrl(require.toUrl('../worker/extensionHostWorkerMain.js'), 'WorkerExtensionHost');
const worker = new Worker(url);
const worker = new Worker(url, { name: 'WorkerExtensionHost' });
worker.onmessage = (event) => {
const { data } = event;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册