dfinity / vscode-motoko

Motoko language support for VS Code.
Apache License 2.0
42 stars 15 forks source link

Improve go-to-definition for object pattern field aliases #242

Closed rvanasa closed 10 months ago

rvanasa commented 10 months ago

Previously, go-to-definition on B with import { A = B } "path/to/A" would resolve to the location of B in the import. Now, the language server automatically follows the import and places the cursor on the definition of A. This has the additional benefit of showing tooltip doc comments (which use the go-to-definition logic behind the scenes) in more situations.