-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
8992-enabling-view-when-clause #9156
8992-enabling-view-when-clause #9156
Conversation
c556c5c
to
2e4764f
Compare
packages/plugin-ext/src/main/browser/view/plugin-view-registry.ts
Outdated
Show resolved
Hide resolved
packages/plugin-ext/src/main/browser/view/plugin-view-registry.ts
Outdated
Show resolved
Hide resolved
packages/plugin-ext/src/main/browser/view/plugin-view-registry.ts
Outdated
Show resolved
Hide resolved
packages/plugin-ext/src/main/browser/view/plugin-view-registry.ts
Outdated
Show resolved
Hide resolved
cd52b47
to
cf66ee6
Compare
@colin-grant-work Please review latest changes. Thanks |
I believe the current code is working as expected 🎉. There are some hiccoughs, though. For example, it looks like the data coming in for the |
I tried the fix and it works fine, |
Enabling setting view when clauses with these values: undefined, true, false or expressions. Signed-off-by: Dan Arad <[email protected]>
6c44488
to
408b74b
Compare
Thanks for catching this. Fixed. |
I also had this issue. The cause of it is that layout is stored in localStorage and retrieved onload. So, to workaround it - you need to clear localStorage. |
@alvsan09, the easiest way to get around this is to run the |
Thanks @colin-grant-work, the reset works great ! |
@vince-fugnitto who can also review this ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally the context-key-service should be responsible for properly handling all when clauses including determining enablement through true and false strings.
We should definitely think of improving the service (by re-using implementation from vscode) rather than adding such workarounds for all clients (commands, keybindings, menus, views).
As I mentioned here #9156 (comment), in monaco 0.23.x there will be additional contextkey types that would streamline the solution but till then - why not accept this change? |
@danarad05 if we do merge for now, please open follow-up issues to clean up the technical debt. |
Sorry, I thought I'd already approved this! (But I guess the approval got stale?) |
Thank you @colin-grant-work |
Enabling setting view when clauses with these values: undefined, true, false or expressions.
Signed-off-by: Dan Arad [email protected]
What it does
Fixes: #8992
How to test
follow #8992 explanation - set different test views
i.e.:
Review checklist
Reminder for reviewers