Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Examples

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.

Adding Example

TODO Expand this

  1. Create new Vite project with vanilla-ts or copy existing example
  2. Add dependencies like codemirror and marked. @qualified/codemirror-workspace should have version workspace:x.y.z so PNPM will link the local one.
  3. Add dev dependencies like concurrently
  4. Find how to install Language Servers. The sources of Vim plugins are very useful for this:
  5. Add NPM script (scripts in package.json) start-proxy that starts lsp-ws-proxy for the Language Server.
  6. Change dev script to concurrently 'vite' 'pnpm start-proxy'