Skip to content

Commit

Permalink
fix tslint warnings...
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Sep 11, 2019
1 parent c389596 commit fd6bb62
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
8 changes: 0 additions & 8 deletions src/vs/vscode.proposed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]>;

Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/api/browser/mainThreadLanguageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ export class MainThreadLanguageFeatures implements MainThreadLanguageFeaturesSha
return {
target: MainThreadLanguageFeatures._reviveCallHierarchyItemDto(item),
sourceRanges
}
};
});
},
provideIncomingCalls: async (item, token) => {
Expand All @@ -518,7 +518,7 @@ export class MainThreadLanguageFeatures implements MainThreadLanguageFeaturesSha
return {
source: MainThreadLanguageFeatures._reviveCallHierarchyItemDto(item),
sourceRanges
}
};
});
}
}));
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/api/common/extHostLanguageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fd6bb62

Please sign in to comment.