Provide the declaration of the symbol at the given position and document.
The document in which the command was invoked.
The position at which the command was invoked.
A cancellation token.
A declaration or a thenable that resolves to such. The lack of a result can be
signaled by returning undefined
or null
.
友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场
The declaration provider interface defines the contract between extensions and the go to declaration feature.