-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
correct message for global and snippet templates #67060
Conversation
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); |
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.
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); |
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.
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
@gangachris ping |
Fixing this. I've been offline |
lgtm. thanks! |
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 withglobal
Previous
Current