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

+ added command line option --clientProcessId=XXX that allows the server to #151

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

nickysn
Copy link
Collaborator

@nickysn nickysn commented Jan 29, 2024

monitor the client process ID even before the initialize request arrives. This
is a recommendation in the LSP spec:
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#implementationConsiderations
In case the command line option and the initialize request specify different
process IDs, we monitor both client process IDs, but we also write a debug log
message, because this is a violation of the LSP spec on behalf of the LSP
client, so it's not perfectly clear what the server behaviour should be in
this case.

…erver to

  monitor the client process ID even before the initialize request arrives. This
  is a recommendation in the LSP spec:
    https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#implementationConsiderations
  In case the command line option and the initialize request specify different
  process IDs, we monitor both client process IDs, but we also write a debug log
  message, because this is a violation of the LSP spec on behalf of the LSP
  client, so it's not perfectly clear what the server behaviour should be in
  this case.
@nickysn nickysn merged commit 46329ea into nim-lang:master Jan 29, 2024
1 check passed
@nickysn nickysn deleted the clientProcessId_cmdline branch January 29, 2024 20:53
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

Successfully merging this pull request may close these issues.

1 participant