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

Introduce keywords for actions to filter on (for #4679) #5432

Merged
merged 8 commits into from
Apr 19, 2016
Merged

Conversation

bpasero
Copy link
Member

@bpasero bpasero commented Apr 18, 2016

No description provided.

@bpasero bpasero added this to the April 2016 milestone Apr 18, 2016
@bpasero bpasero self-assigned this Apr 18, 2016
@bpasero
Copy link
Member Author

bpasero commented Apr 18, 2016

@alexandrudima maybe you could give me some feedback on eebd22d

The motivation is to be able to provide an array of keywords when registering an editor action so that we have means to find the action in the command palette in addition to the label of the action. We can then pass in english (non translated) words to fix #4679

@outcoldman
Copy link
Contributor

@bpasero just small suggestion, you can use #4679 instead of 4679 to have a reference/link on pull request and commit history.

@bpasero bpasero changed the title Introduce keywords for actions to filter on (for 4679) Introduce keywords for actions to filter on (for #4679) Apr 18, 2016
@bpasero
Copy link
Member Author

bpasero commented Apr 18, 2016

👍

if (!this.workbenchActions[descriptor.id]) {
this.workbenchActions[descriptor.id] = descriptor;
registerWorkbenchCommandFromAction(descriptor);

if (category) {
this.mapActionIdToCategory[descriptor.id] = category;
if (typeof categoryOrKeywords === 'string') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Types.isString?

@outcoldman
Copy link
Contributor

no unit tests?

@bpasero bpasero merged commit 83ca0ac into master Apr 19, 2016
@bpasero bpasero deleted the ben/4679 branch April 19, 2016 06:08
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants