Skip to content

Commit 6bd6732

Browse files
committed
add alias type for Declaration, microsoft#62483
1 parent 2a89180 commit 6bd6732

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/vs/vscode.proposed.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ declare module 'vscode' {
2222

2323
//#region Joh
2424

25+
/**
26+
*
27+
*/
28+
export type Declaration = Location | Location[] | DefinitionLink[];
29+
2530
/**
2631
* The declaration provider interface defines the contract between extensions and
2732
* the go to declaration feature.
@@ -37,7 +42,7 @@ declare module 'vscode' {
3742
* @return A declaration or a thenable that resolves to such. The lack of a result can be
3843
* signaled by returning `undefined` or `null`.
3944
*/
40-
provideDeclaration(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Definition | DefinitionLink[]>;
45+
provideDeclaration(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Declaration>;
4146
}
4247

4348
export namespace languages {

0 commit comments

Comments
 (0)