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

Use type array for serverProperties and customProperties settings #141

Merged
merged 1 commit into from
Sep 6, 2019

Conversation

gabro
Copy link
Member

@gabro gabro commented Sep 6, 2019

Starting from last July VSCode release, this type of setting finally has a UI 🎉

2019-09-06 10 58 55

@gabro gabro requested a review from tgodzik September 6, 2019 08:59
@@ -108,9 +108,7 @@ function fetchAndLaunchMetals(context: ExtensionContext, javaHome: string) {
: defaultServerVersion;
const serverProperties: string[] = workspace
.getConfiguration("metals")
.get<string>("serverProperties")!
.split(" ")
.filter(e => e.length > 0);
Copy link
Member Author

Choose a reason for hiding this comment

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

I've verified that the UI won't let you input a blank string (not even just spaces), so this I've removed this check.

Same thing below

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Looks awesome! Finally it will be more user friendly 🎉

@gabro gabro merged commit e3d06e4 into scalameta:master Sep 6, 2019
@gabro gabro deleted the array-settings branch September 6, 2019 09:08
@tgodzik
Copy link
Contributor

tgodzik commented Sep 6, 2019

@gabro I think we need to add some kind of migration - if user had a setting as string, we need to replace it with a lsit

@gabro
Copy link
Member Author

gabro commented Sep 6, 2019

@tgodzik you are right, I'll work on a fix for this soon.

@gabro gabro restored the array-settings branch September 6, 2019 15:29
@olafurpg
Copy link
Member

olafurpg commented Sep 6, 2019

This is awesome :D

@gabro gabro deleted the array-settings branch September 6, 2019 19:50
kasiaMarek pushed a commit to kasiaMarek/metals-vscode that referenced this pull request Mar 29, 2023
…rn/fp-ts-2.6.7

Bump fp-ts from 2.6.6 to 2.6.7
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.

3 participants