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

Include generic plugin configuration #361

Merged
merged 8 commits into from
Mar 11, 2021
Merged

Conversation

jneira
Copy link
Member

@jneira jneira commented Mar 10, 2021

  • Also the new hls logo!
  • I've included the global on if the plugin only has one feature, and the features but no global on for the rest, to try reduce them
  • Deprecate old hlint config option
  • Bump up version to 1.3.0

@jneira jneira requested review from alanz and lukel97 March 10, 2021 23:02
@jneira jneira linked an issue Mar 11, 2021 that may be closed by this pull request
@jneira
Copy link
Member Author

jneira commented Mar 11, 2021

The configuration assumes actual master version, with the specific configuration for type lenses and tactics is present so we should wait to release this until a new hls version or remove that specific configuration meanwhile

@jneira
Copy link
Member Author

jneira commented Mar 11, 2021

Some screenshots

imagen

imagen

@jneira
Copy link
Member Author

jneira commented Mar 11, 2021

Thinking it twice, maybe we shouldnt change the logo, as the extension is just haskell and it stills supports ghcide

Copy link
Collaborator

@alanz alanz left a comment

Choose a reason for hiding this comment

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

LGTM.

Will be nice to see the logo out there.

@ndmitchell
Copy link

Ghcide is dead - no one supports it. We provide a HLS extension. While it might happen to work with Ghcide, its totally an HLS extension. Bring on the consistent icon!

@jneira
Copy link
Member Author

jneira commented Mar 11, 2021

Ok, time to remove references from ghcide in the README then? will do in another pr

@jneira jneira merged commit 18cb567 into haskell:master Mar 11, 2021
@jneira jneira deleted the plugin-config branch March 11, 2021 21:19
@ndmitchell
Copy link

Yep, I'd remove all trace of Ghcide. If people want to use it, in an unsupported configuration, that's there choice.

Comment on lines +237 to +243
"haskell.plugin.tactic.config.max_use_ctor_actions": {
"title": "Max number of constructors",
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Maximum number of `Use constructor <x>` code actions that can appear"
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

ugh, you are right, thanks for catching it, will fix it

Copy link
Collaborator

Choose a reason for hiding this comment

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

And features should be a string, instead of an object

Copy link
Member Author

Choose a reason for hiding this comment

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

mm I use that one on purpose, to force vscode editor show a button where you can write arbitrary json (including strings I hope)

Copy link
Collaborator

Choose a reason for hiding this comment

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

But the server accepts only strings. Why don't we use a textbox?

Copy link
Member Author

@jneira jneira Mar 17, 2021

Choose a reason for hiding this comment

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

tbh i do not get fully that config option, but it seems an advanced one, even obfuscated and it seems to me that it could be an array, no?
but if types say is a String, it is 🙂

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's a magic string that enables extra features of wingman: haskell/haskell-language-server#1398 (though it can be obtained easily somehow :P)

Copy link
Member Author

Choose a reason for hiding this comment

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

ok will change, if the config option gets another type, we can change here at that time

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.

Support new hls generic plugin configuration
4 participants