提交 6bd6732a 编写于 作者: J Johannes Rieken

add alias type for Declaration, #62483

上级 2a891803
......@@ -22,6 +22,11 @@ declare module 'vscode' {
//#region Joh
/**
*
*/
export type Declaration = Location | Location[] | DefinitionLink[];
/**
* The declaration provider interface defines the contract between extensions and
* the go to declaration feature.
......@@ -37,7 +42,7 @@ declare module 'vscode' {
* @return A declaration or a thenable that resolves to such. The lack of a result can be
* signaled by returning `undefined` or `null`.
*/
provideDeclaration(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Definition | DefinitionLink[]>;
provideDeclaration(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Declaration>;
}
export namespace languages {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册