-
Notifications
You must be signed in to change notification settings - Fork 2
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
debug language server startup #21
Conversation
finally { | ||
if (t) args.close(t) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so it turns out i was closing the server just as soon as i was opening it, i think. actually, i'm not sure what the problem was.
@@ -12,6 +12,21 @@ export function makeClient(config: LanguageConfig): vscode.Disposable { | |||
const { languageId, serverCommand } = config | |||
if (!languageId || !serverCommand) return vscode.Disposable.from() | |||
|
|||
const serverExecutable = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The LSP client library will manage the child process for you if you just give it a process spec.
This is how the official Haskell extension launches HLS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self-reviewed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! (with the caveat that my familiarity with the vs-code lsp library is limited)
A PR to release these changes has been created, bumping the version from 2.0.2 to 2.0.3. |
This patch fixes the language server startup logic.