Minimal examples of using @qualified/codemirror-workspace
with different Language Servers. These are used for manual testing and showcasing different features.
The web-worker example uses an in-browser Language Server. Others use Language Servers over WebSocket with lsp-ws-proxy
.
Examples are Vite projects and support HMR. See each example for more information on how to run it.
TODO Expand this
- Create new Vite project with
vanilla-ts
or copy existing example - Add dependencies like
codemirror
andmarked
.@qualified/codemirror-workspace
should have versionworkspace:x.y.z
so PNPM will link the local one. - Add dev dependencies like
concurrently
- Find how to install Language Servers. The sources of Vim plugins are very useful for this:
- Add NPM script (
scripts
inpackage.json
)start-proxy
that startslsp-ws-proxy
for the Language Server. - Change
dev
script toconcurrently 'vite' 'pnpm start-proxy'