-
Notifications
You must be signed in to change notification settings - Fork 92
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
Remove onInitialConfiguration from InitializeCallbacks #211
Conversation
Thr Initialize request does not include the initial configuration, so parsing it to generate a configuration does not make sense. If necessary, the server can request config on startup, if it is not supplied, using ‘workspace/configuration’. Closes #210
Note the discussion of config in the InitializeRequest, summarized here as
|
Is this that lsp-haskell doesn't include the configuration in the initializeRequest? |
@bubba I just looked, and lsp-haskell puts junk in there, which we are now reporting as a problem. I am actually in two minds about this, on the one hand I will fix lsp-haskell, on the other we should encourage "good" use of the API. And since it should include things like CLI options passed in, we should perhaps keep the parser, but change its return type. |
Other options discussed on IRC
Of these, I think I prefer the first one. Also, we currently have the |
@alanz sorry for the late reply. Option 1 sounds good to me too. Does this PR need to be merged then for it? |
See haskell#210 and haskell#211 Also rename Progress to ProgressAmount to avoid clashing with Progress method in haskell-lsp-types Also fix haskell#252, wrapping sendProgress notifications in bracket Also add example func-test for said bug
See haskell#210 and haskell#211 Also rename Progress to ProgressAmount to avoid clashing with Progress method in haskell-lsp-types Also fix haskell#252, wrapping sendProgress notifications in bracket Also add example func-test for said bug
Superseeded by #244 |
The Initialize request does not include the initial configuration, so
parsing it to generate a configuration does not make sense.
If necessary, the server can request config on startup, if it is not
supplied, using ‘workspace/configuration’.
Closes #210