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

correct message for global and snippet templates #67060

Merged
merged 2 commits into from
Feb 7, 2019
Merged

correct message for global and snippet templates #67060

merged 2 commits into from
Feb 7, 2019

Conversation

gngchrs
Copy link

@gngchrs gngchrs commented Jan 24, 2019

When creating snippets, the user is asked whether they want to create a Global, <current_workspace> or language-specific snippet. Choosing the <current_workspace> option resulted in a file with global

Previous
old

Current

new

placeHolder: nls.localize('openSnippet.pickLanguage', "Select Snippets File or Create Snippets"),
matchOnDescription: true
});

if (globalSnippetPicks.indexOf(pick as GlobalSnippetPick) >= 0) {
return createGlobalSnippetFile((pick as GlobalSnippetPick).uri, windowService, notificationService, fileService, opener);
return createSnippetFile('global', (pick as GlobalSnippetPick).uri, windowService, notificationService, fileService, opener);
Copy link
Member

Choose a reason for hiding this comment

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

needs localization (nls.localize)

return createGlobalSnippetFile((pick as GlobalSnippetPick).uri, windowService, notificationService, fileService, opener);
return createSnippetFile('global', (pick as GlobalSnippetPick).uri, windowService, notificationService, fileService, opener);
} else if (workspaceSnippetPicks.indexOf(pick as WorkspaceSnippetPick) >= 0) {
return createSnippetFile((pick as WorkspaceSnippetPick).name + ' workspace', (pick as WorkspaceSnippetPick).uri, windowService, notificationService, fileService, opener);
Copy link
Member

Choose a reason for hiding this comment

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

also localization, maybe better with the + workspace part because it's hard to tell how this will look in various languages or with different workspace names

@jrieken
Copy link
Member

jrieken commented Feb 4, 2019

@gangachris ping

@gngchrs
Copy link
Author

gngchrs commented Feb 6, 2019

@gangachris ping

Fixing this. I've been offline

@jrieken jrieken added this to the February 2019 milestone Feb 7, 2019
@jrieken
Copy link
Member

jrieken commented Feb 7, 2019

lgtm. thanks!

@jrieken jrieken merged commit 8d9b6ed into microsoft:master Feb 7, 2019
@gngchrs gngchrs deleted the fix/snippet_template_type_naming branch February 13, 2019 14:47
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants