https://github.com/71/vscode-dumb-links
VS Code Link Provider for relative paths; supports text search and symbols
https://github.com/71/vscode-dumb-links
Last synced: 16 days ago
JSON representation
VS Code Link Provider for relative paths; supports text search and symbols
- Host: GitHub
- URL: https://github.com/71/vscode-dumb-links
- Owner: 71
- License: mpl-2.0
- Created: 2026-05-03T15:40:50.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-04T13:20:33.000Z (3 months ago)
- Last Synced: 2026-05-04T15:27:12.101Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 72.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dumb Links
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 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
- `src/extension.ts` (requires at least one `/`)
- Can be disabled by setting
[`dumbLinks.overrides.implicit.enable`](vscode://settings/dumbLinks.overrides)
to `false`.
- `./README.md`
- Can be disabled by setting
[`dumbLinks.overrides.relative.enable`](vscode://settings/dumbLinks.overrides)
to `false`.
- `//README.md` (uses the _first_ workspace folder)
- Can be disabled by setting
[`dumbLinks.overrides.absolute.enable`](vscode://settings/dumbLinks.overrides)
to `false`.
### Supported suffixes
- [`#:~:text=Fragment`](https://developer.mozilla.org/docs/Web/URI/Reference/Fragment/Text_fragments)
- `#Symbol.path` (uses VS Code's symbol provider)
- `:1:2` (column may be omitted)
## Building
```sh
$ pnpm install
$ pnpm run package-vsix
```