Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Parameterize the haskell-lsp client config type#416

Merged
cocreature merged 1 commit intohaskell:masterfrom
alanz:add-config-to-idestate
Feb 14, 2020
Merged

Parameterize the haskell-lsp client config type#416
cocreature merged 1 commit intohaskell:masterfrom
alanz:add-config-to-idestate

Conversation

@alanz
Copy link
Collaborator

@alanz alanz commented Feb 9, 2020

So that haskell-language-server can use its own config

@ndmitchell
Copy link
Collaborator

Makes a lot of sense to me.

alanz added a commit to alanz/haskell-language-server that referenced this pull request Feb 9, 2020
@alanz alanz requested a review from cocreature February 9, 2020 22:03
Copy link
Contributor

@aherrmann-da aherrmann-da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@cocreature cocreature left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to conflict with #412. Let’s get that one in first and then integrate this on top of it.

So that haskell-language-server can use its own config

And separate it out from the IdeConfiguration which is separately set by the
InitializeRequest message.
@alanz alanz force-pushed the add-config-to-idestate branch from 24116bc to 4d6e884 Compare February 13, 2020 23:16
Copy link
Collaborator

@cocreature cocreature left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, thanks!
I somewhat wonder why we even have the type parameter for the configuration in haskell-lsp? If you need to store state across handlers you can always stuff it in an IORef or something like that. I would expect that almost all LSP servers have more state than just the configuration so it seems odd to give that special treatment.

@cocreature cocreature merged commit 71ecd10 into haskell:master Feb 14, 2020
@alanz alanz deleted the add-config-to-idestate branch February 14, 2020 14:25
@alanz
Copy link
Collaborator Author

alanz commented Feb 14, 2020

I somewhat wonder why we even have the type parameter for the configuration in haskell-lsp?

It seemed to make sense at the time, and is a convenience for off the shelf users of the library. The config change message is part of the spec, after all.

But perhaps the overall structure could be reworked, now we know a lot more about the protocol.

pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
So that haskell-language-server can use its own config

And separate it out from the IdeConfiguration which is separately set by the
InitializeRequest message.
pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
So that haskell-language-server can use its own config

And separate it out from the IdeConfiguration which is separately set by the
InitializeRequest message.
pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
So that haskell-language-server can use its own config

And separate it out from the IdeConfiguration which is separately set by the
InitializeRequest message.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants