mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Fix wrong placement of 'e.g.'s in the description of window.title
setting (#35986)
* Fix wrong placement of 'e.g.'s in the description of `window.title` setting * Fix the same error in configuration-editing
This commit is contained in:
parent
88a6e81055
commit
e03163d9a8
|
@ -43,9 +43,9 @@ export class SettingsDocument {
|
|||
private provideWindowTitleCompletionItems(location: Location, range: vscode.Range): vscode.ProviderResult<vscode.CompletionItem[]> {
|
||||
const completions: vscode.CompletionItem[] = [];
|
||||
|
||||
completions.push(this.newSimpleCompletionItem('${activeEditorShort}', range, localize('activeEditorShort', "e.g. the file name (myFile.txt)")));
|
||||
completions.push(this.newSimpleCompletionItem('${activeEditorMedium}', range, localize('activeEditorMedium', "e.g. the path of the file relative to the workspace folder (myFolder/myFile.txt)")));
|
||||
completions.push(this.newSimpleCompletionItem('${activeEditorLong}', range, localize('activeEditorLong', "e.g. the full path of the file (/Users/Development/myProject/myFolder/myFile.txt)")));
|
||||
completions.push(this.newSimpleCompletionItem('${activeEditorShort}', range, localize('activeEditorShort', "the file name (e.g. myFile.txt)")));
|
||||
completions.push(this.newSimpleCompletionItem('${activeEditorMedium}', range, localize('activeEditorMedium', "the path of the file relative to the workspace folder (e.g. myFolder/myFile.txt)")));
|
||||
completions.push(this.newSimpleCompletionItem('${activeEditorLong}', range, localize('activeEditorLong', "the full path of the file (e.g. /Users/Development/myProject/myFolder/myFile.txt)")));
|
||||
completions.push(this.newSimpleCompletionItem('${rootName}', range, localize('rootName', "name of the workspace (e.g. myFolder or myWorkspace)")));
|
||||
completions.push(this.newSimpleCompletionItem('${rootPath}', range, localize('rootPath', "file path of the workspace (e.g. /Users/Development/myWorkspace)")));
|
||||
completions.push(this.newSimpleCompletionItem('${folderName}', range, localize('folderName', "name of the workspace folder the file is contained in (e.g. myFolder)")));
|
||||
|
|
|
@ -322,9 +322,9 @@ Note that there can still be cases where this setting is ignored (e.g. when usin
|
|||
'default': isMacintosh ? '${activeEditorShort}${separator}${rootName}' : '${dirty}${activeEditorShort}${separator}${rootName}${separator}${appName}',
|
||||
'description': nls.localize({ comment: ['This is the description for a setting. Values surrounded by parenthesis are not to be translated.'], key: 'title' },
|
||||
`Controls the window title based on the active editor. Variables are substituted based on the context:
|
||||
\${activeEditorShort}: e.g. the file name (myFile.txt)
|
||||
\${activeEditorMedium}: e.g. the path of the file relative to the workspace folder (myFolder/myFile.txt)
|
||||
\${activeEditorLong}: e.g. the full path of the file (/Users/Development/myProject/myFolder/myFile.txt)
|
||||
\${activeEditorShort}: the file name (e.g. myFile.txt)
|
||||
\${activeEditorMedium}: the path of the file relative to the workspace folder (e.g. myFolder/myFile.txt)
|
||||
\${activeEditorLong}: the full path of the file (e.g. /Users/Development/myProject/myFolder/myFile.txt)
|
||||
\${folderName}: name of the workspace folder the file is contained in (e.g. myFolder)
|
||||
\${folderPath}: file path of the workspace folder the file is contained in (e.g. /Users/Development/myFolder)
|
||||
\${rootName}: name of the workspace (e.g. myFolder or myWorkspace)
|
||||
|
|
Loading…
Reference in a new issue