Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deno lsp not working #463

Open
OzPineapple opened this issue May 7, 2023 · 1 comment
Open

Deno lsp not working #463

OzPineapple opened this issue May 7, 2023 · 1 comment

Comments

@OzPineapple
Copy link

init.vim:

let g:lsc_server_commands = {
\	'typescript': {
\		'command': 'deno lsp'
\	}
\}

stderr:

Starting Deno language server...
  version: 1.32.5 (release, x86_64-unknown-linux-gnu)
  executable: /usr/bin/deno
Connected to "vim-lsc" 
Error converting specifier settings: invalid type: null, expected struct SpecifierSettings
Server ready.
Error converting specifier settings (file:///home/oz/main.ts): Error converting specifier settings: invalid type: null, expected struct SpecifierSettings
shutdown request received, shutting down
exit notification received, stopping

main.ts:

import { Application } from "https://deno.land/x/oak/mod.ts";

const app = new Application();

app.use( ctx => {
	ctx.response.body = "Hello World";
});

app.listen({ port: 8000 });

Am I missing something?

@kohnish
Copy link

kohnish commented Aug 6, 2023

try:

'typescript': { 'command': 'deno lsp', 'message_hooks': { 'initialize': { 'initializationOptions': { 'enable': true } } } },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants