-
Notifications
You must be signed in to change notification settings - Fork 41
Add warning message when global and workspace TLC options set #208
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
Conversation
FWIW: To me, this is another indicator that TLC options shouldn't be stored as workspace or global settings. |
Kudos, SonarCloud Quality Gate passed!
|
0cf55d7
to
193c979
Compare
This message informs users when the global and workspace settings may conflict, resulting in unexpected behavior
c9f68a9
to
545417c
Compare
This warning message is limited to the cases that use the getConfigOptions function.
I'd prefer not to show the value since it's pretty easy to find what the current value is set to in the settings window, and since longer configs clutter up the message window. It'll be an easy change though if folks disagree.
I think that's an excellent suggestion. I moved the warning functionality into the
Thanks for the proposal. Unfortunately I'm not using TLA+ as much these days so I likely will not be very active, but I'm happy to help out a bit (especially for the features I've added)! |
IMO, clutter should be minimized for frequently appearing message (warning) dialogs. Do we expect this warning to appear frequently? I'm also not sure if novice (VSCode) users will know where to find the settings. Ideally, the warning would have a clickable link. :-) I don't think we need to silence this warning for all configs. |
:-( |
I like the idea of a clickable link! I added one in to the the latest commit. Here is what it currently looks like: I also took a look at what it would look like if we added the global value to the warning. It doesn't look as cluttered as I was expecting, but I still personally prefer the message without the global value. I agree though that it should be an infrequent message and am fine adding in the global value if you still think it's the best way to proceed. |
Kudos, SonarCloud Quality Gate passed!
|
Never mind, I should have read my own comment: #208 (comment) |
The workspace configuration value is displayed in the configurations prompt (when running the model checking) so the user should still be able to see what the workspace config is.
It looks like formatting text in messages is blocked on this issue: microsoft/vscode#54272. A previous issue said some basic markdown formatting should work, but I wasn't able to get it to work when I tried it myself. I believe the limited markdown support was probably removed at some point in the past. |
LGTM |
@klinvill By the way, have you seen the Github invite to join this repo? |
@lemmy I saw an invite come across from alygin, but unfortunately when I tried to accept it (about a week and a half ago, before it expired) I saw a message that "This invitation is invalid". He thought I could be seeing the error because the repo had been transferred over to the TLAPlus organization. Are you able to send a new invite? |
@klinvill Did you get a new invite? |
@lemmy yup, and looks like that one worked. Thanks! |
Adds on to #207 by adding a warning message (that can be silenced) informing users when they have both global and workspace settings for TLC options. In this case the workspace settings will take precedence. An example warning message is shown below.
This PR addresses the following concern: