-
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
Preserve recent commands for different locales #11336
Conversation
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.
} | ||
} | ||
return commands; | ||
return Object.values(this._commands); |
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.
👍
220f3d7
to
8f1d5ba
Compare
@colin-grant-work I couldn't reproduce the issue, but I'm using an intermediate |
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.
Is working, and is now more robust against duplicates that have snuck into the state restoration system on application close.
I think we should really not use theia/packages/core/src/browser/quick-input/quick-command-service.ts Lines 198 to 209 in 4061027
is just misleading: it can only return false negatives and introduce duplicates. |
What it does
Closes #11335
Makes the internal list of recently used commands a simple
string
array containing the IDs of these commands. This allows us to have them independent from the selected locale.How to test
Configure Display Language
commandConfigure Display Language
command should still be in the list of recently used commands.Review checklist
Reminder for reviewers