mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
use Outgoing/Incoming terminology
This commit is contained in:
@@ -893,8 +893,8 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
ViewColumn: extHostTypes.ViewColumn,
|
||||
WorkspaceEdit: extHostTypes.WorkspaceEdit,
|
||||
// proposed
|
||||
CallsFrom: extHostTypes.CallsFrom,
|
||||
CallsTo: extHostTypes.CallsTo,
|
||||
CallHierarchyOutgoingCall: extHostTypes.CallHierarchyOutgoingCall,
|
||||
CallHierarchyIncomingCall: extHostTypes.CallHierarchyIncomingCall,
|
||||
CallHierarchyItem: extHostTypes.CallHierarchyItem,
|
||||
Decoration: extHostTypes.Decoration
|
||||
};
|
||||
|
||||
@@ -1112,8 +1112,8 @@ export interface ExtHostLanguageFeaturesShape {
|
||||
$provideFoldingRanges(handle: number, resource: UriComponents, context: modes.FoldingContext, token: CancellationToken): Promise<modes.FoldingRange[] | undefined>;
|
||||
$provideSelectionRanges(handle: number, resource: UriComponents, positions: IPosition[], token: CancellationToken): Promise<modes.SelectionRange[][]>;
|
||||
$resolveCallHierarchyItem(handle: number, resource: UriComponents, position: IPosition, token: CancellationToken): Promise<ICallHierarchyItemDto | undefined>;
|
||||
$provideCallHierarchyItemsTo(handle: number, target: callHierarchy.CallHierarchyItem, token: CancellationToken): Promise<[ICallHierarchyItemDto, IRange[]][] | undefined>;
|
||||
$provideCallHierarchyItemsFrom(handle: number, source: callHierarchy.CallHierarchyItem, token: CancellationToken): Promise<[ICallHierarchyItemDto, IRange[]][] | undefined>;
|
||||
$provideCallHierarchyIncomingCalls(handle: number, target: callHierarchy.CallHierarchyItem, token: CancellationToken): Promise<[ICallHierarchyItemDto, IRange[]][] | undefined>;
|
||||
$provideCallHierarchyOutgoingCalls(handle: number, source: callHierarchy.CallHierarchyItem, token: CancellationToken): Promise<[ICallHierarchyItemDto, IRange[]][] | undefined>;
|
||||
}
|
||||
|
||||
export interface ExtHostQuickOpenShape {
|
||||
|
||||
@@ -1036,7 +1036,7 @@ class CallHierarchyAdapter {
|
||||
if (!item) {
|
||||
return undefined;
|
||||
}
|
||||
const calls = await this._provider.provideCallsTo(item, token);
|
||||
const calls = await this._provider.provideCallHierarchyIncomingCalls(item, token);
|
||||
if (!calls) {
|
||||
return undefined;
|
||||
}
|
||||
@@ -1048,7 +1048,7 @@ class CallHierarchyAdapter {
|
||||
if (!item) {
|
||||
return undefined;
|
||||
}
|
||||
const calls = await this._provider.provideCallsFrom(item, token);
|
||||
const calls = await this._provider.provideCallHierarchyOutgoingCalls(item, token);
|
||||
if (!calls) {
|
||||
return undefined;
|
||||
}
|
||||
@@ -1506,11 +1506,11 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
|
||||
return this._withAdapter(handle, CallHierarchyAdapter, adapter => adapter.resolveCallHierarchyItem(URI.revive(resource), position, token), undefined);
|
||||
}
|
||||
|
||||
$provideCallHierarchyItemsTo(handle: number, target: callHierarchy.CallHierarchyItem, token: CancellationToken): Promise<[ICallHierarchyItemDto, IRange[]][] | undefined> {
|
||||
$provideCallHierarchyIncomingCalls(handle: number, target: callHierarchy.CallHierarchyItem, token: CancellationToken): Promise<[ICallHierarchyItemDto, IRange[]][] | undefined> {
|
||||
return this._withAdapter(handle, CallHierarchyAdapter, adapter => adapter.provideCallsTo(target, token), undefined);
|
||||
}
|
||||
|
||||
$provideCallHierarchyItemsFrom(handle: number, source: callHierarchy.CallHierarchyItem, token: CancellationToken): Promise<[ICallHierarchyItemDto, IRange[]][] | undefined> {
|
||||
$provideCallHierarchyOutgoingCalls(handle: number, source: callHierarchy.CallHierarchyItem, token: CancellationToken): Promise<[ICallHierarchyItemDto, IRange[]][] | undefined> {
|
||||
return this._withAdapter(handle, CallHierarchyAdapter, adapter => adapter.provideCallsFrom(source, token), undefined);
|
||||
}
|
||||
|
||||
|
||||
@@ -1164,7 +1164,7 @@ export class CallHierarchyItem {
|
||||
}
|
||||
}
|
||||
|
||||
export class CallsTo {
|
||||
export class CallHierarchyIncomingCall {
|
||||
|
||||
source: CallHierarchyItem;
|
||||
sourceRanges: Range[];
|
||||
@@ -1174,7 +1174,7 @@ export class CallsTo {
|
||||
this.source = item;
|
||||
}
|
||||
}
|
||||
export class CallsFrom {
|
||||
export class CallHierarchyOutgoingCall {
|
||||
|
||||
target: CallHierarchyItem;
|
||||
sourceRanges: Range[];
|
||||
|
||||
Reference in New Issue
Block a user