Skip to content

Instantly share code, notes, and snippets.

@isao
Created January 6, 2023 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isao/c13d42d1d8774007e56a11679b990ab3 to your computer and use it in GitHub Desktop.
Save isao/c13d42d1d8774007e56a11679b990ab3 to your computer and use it in GitHub Desktop.
BBEdit LSP with Volta

BBEdit LSP with Volta

BBEdit docs https://www.barebones.com/support/bbedit/lsp-notes.html

Volta https://docs.volta.sh/reference/

Installing Volta (skip .zshrc munging)

curl https://get.volta.sh | bash -s -- --skip-setup

The rest assumes "$VOLTA_HOME/bin" is in $path for non-interactive shell.

Set up default "global" node. This is used by default. It is overridden by volta in projects where volta pin or equivalent package.json configs are set.

cd
volta install node

Install Language Servers

volta install \
    bash-language-server \
    typescript \
    typescript-language-server \
    vls \
    vscode-css-languageserver-bin \
    vscode-html-languageserver-bin \
    vscode-json-languageserver \
    yaml-language-server

Keeping up to date

List the versions of the installed tools

rg --no-filename \
    --max-count 2 \
    --no-line-number \
    -o '"(name|version)": ".+?"' \
    ~/.volta/tools/image/packages/*/lib/node_modules/*/package.json

Compare with latest

npm info typescript-language-server version
npm info typescript version
npm info vls

Upgrade by running volta install again for the outdated tools.

Debugging

tail -f ~/Library/Containers/com.barebones.bbedit/Data/Library/Logs/BBEdit/*.txt

See also https://www.barebones.com/support/bbedit/lsp-notes.html#trouble

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment