Materialize Sourcemap Navigator (POC)
Navigate between pseudocode (.src.md) and runtime source files using Materialize .map.json files.
Features
Materialize: Go to Runtime from .src.md
- Opens runtime target for current
.src.md cursor line.
Materialize: Go to .src.md from Runtime
- Opens source pseudocode line for current runtime cursor line.
- CodeLens on mapped blocks (one-click):
- In
.src.md: Go to runtime: ...
- In runtime files:
Go to source: ...
If multiple mappings match, a quick-pick menu is shown.
Assumptions
- Map files are next to source docs (
foo.src.md -> foo.map.json).
target_file in map entries is relative to runtime directory.
- Runtime directory defaults to
runtime.
Configuration
materializeNavigator.runtimeDir (default: runtime)
materializeNavigator.mapGlob (default: **/*.map.json)
materializeNavigator.codeLensEnabled (default: true)
Development
Install and compile:
npm install
npm run compile
Then press F5 in VS Code from this folder to launch an Extension Development Host.
| |