VS Code extension which resolves relative links, with support for symbols and search.
[!NOTE]
WIP: the basic logic works, but there is no test, and the name / documentation will likely change. It is also both too permissive (it will resolve anything that looks like a link) and too strict (it will yield errors if a symbol cannot be resolved).
Examples
These can be clicked with the extension loaded.
-
./README.md#Supported-paths -
src/extension.ts#activate -
//src/extension.ts#LinkResolver.scanLines -
//src/extension.ts:5 -
//src/extension.ts:9:10 -
//README.md#:~:text=resolves%20relative%20links
Syntax
Supported paths
-
relative/path(requires at least one/) -
./relative-path -
../relative-path -
//path/relative/to/workspace/folder(uses the first workspace folder)
Supported suffixes
-
#Symbol.path(uses VS Code's symbol provider) -
:1:2(column may be omitted)
Building
$ pnpm install
$ pnpm run package