summaryrefslogtreecommitdiff
path: root/tools/astro-languageserver/bin/server.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-05-08 11:35:20 -0400
committerGravatar GitHub <noreply@github.com> 2021-05-08 11:35:20 -0400
commit60e482aa809fd89c865bfb5ec95b97a739235615 (patch)
tree559f2d84d98b833712ad7ca969d0ba7ae2e1f506 /tools/astro-languageserver/bin/server.js
parentb4c072d1a13902c90294bebf320fd1cb9550ba0e (diff)
downloadastro-60e482aa809fd89c865bfb5ec95b97a739235615.tar.gz
astro-60e482aa809fd89c865bfb5ec95b97a739235615.tar.zst
astro-60e482aa809fd89c865bfb5ec95b97a739235615.zip
Fix running the extension (#181)
I'm not sure how my setup was different but I was unable to get the extension to run locally without adding a binary. This mirrors what Svelte does so I'm assuming it's the way it's supposed to be loaded.
Diffstat (limited to 'tools/astro-languageserver/bin/server.js')
-rw-r--r--tools/astro-languageserver/bin/server.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/astro-languageserver/bin/server.js b/tools/astro-languageserver/bin/server.js
new file mode 100644
index 000000000..1967fff94
--- /dev/null
+++ b/tools/astro-languageserver/bin/server.js
@@ -0,0 +1,6 @@
+#! /usr/bin/env node
+
+// eslint-disable-next-line @typescript-eslint/no-var-requires
+const { startServer } = require('../dist/index');
+
+startServer(); \ No newline at end of file