Created
March 12, 2024 08:02
-
-
Save mary-ext/64da77a8d4f602b821bb4bde3b0734bc to your computer and use it in GitHub Desktop.
TypeScript LSP server launcher, launches Deno's LSP server if deno.json is detected on project folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -f deno.json ] || [ -f deno.jsonc ]; then | |
~/.deno/bin/deno lsp | |
else | |
typescript-language-server --stdio | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment