You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -46,21 +44,21 @@ function registerVariableCompletions(pattern: string): vscode.Disposable {
46
44
}
47
45
48
46
return[
49
-
{label: 'workspaceFolder',detail: localize('workspaceFolder',"The path of the folder opened in VS Code")},
50
-
{label: 'workspaceFolderBasename',detail: localize('workspaceFolderBasename',"The name of the folder opened in VS Code without any slashes (/)")},
51
-
{label: 'relativeFile',detail: localize('relativeFile',"The current opened file relative to ${workspaceFolder}")},
52
-
{label: 'relativeFileDirname',detail: localize('relativeFileDirname',"The current opened file's dirname relative to ${workspaceFolder}")},
53
-
{label: 'file',detail: localize('file',"The current opened file")},
54
-
{label: 'cwd',detail: localize('cwd',"The task runner's current working directory on startup")},
55
-
{label: 'lineNumber',detail: localize('lineNumber',"The current selected line number in the active file")},
56
-
{label: 'selectedText',detail: localize('selectedText',"The current selected text in the active file")},
57
-
{label: 'fileDirname',detail: localize('fileDirname',"The current opened file's dirname")},
58
-
{label: 'fileExtname',detail: localize('fileExtname',"The current opened file's extension")},
59
-
{label: 'fileBasename',detail: localize('fileBasename',"The current opened file's basename")},
60
-
{label: 'fileBasenameNoExtension',detail: localize('fileBasenameNoExtension',"The current opened file's basename with no file extension")},
61
-
{label: 'defaultBuildTask',detail: localize('defaultBuildTask',"The name of the default build task. If there is not a single default build task then a quick pick is shown to choose the build task.")},
62
-
{label: 'pathSeparator',detail: localize('pathSeparator',"The character used by the operating system to separate components in file paths")},
63
-
{label: 'extensionInstallFolder',detail: localize('extensionInstallFolder',"The path where an an extension is installed."),param: 'publisher.extension'},
47
+
{label: 'workspaceFolder',detail: vscode.l10n.t("The path of the folder opened in VS Code")},
48
+
{label: 'workspaceFolderBasename',detail: vscode.l10n.t("The name of the folder opened in VS Code without any slashes (/)")},
49
+
{label: 'relativeFile',detail: vscode.l10n.t("The current opened file relative to ${workspaceFolder}")},
50
+
{label: 'relativeFileDirname',detail: vscode.l10n.t("The current opened file's dirname relative to ${workspaceFolder}")},
51
+
{label: 'file',detail: vscode.l10n.t("The current opened file")},
52
+
{label: 'cwd',detail: vscode.l10n.t("The task runner's current working directory on startup")},
53
+
{label: 'lineNumber',detail: vscode.l10n.t("The current selected line number in the active file")},
54
+
{label: 'selectedText',detail: vscode.l10n.t("The current selected text in the active file")},
55
+
{label: 'fileDirname',detail: vscode.l10n.t("The current opened file's dirname")},
56
+
{label: 'fileExtname',detail: vscode.l10n.t("The current opened file's extension")},
57
+
{label: 'fileBasename',detail: vscode.l10n.t("The current opened file's basename")},
58
+
{label: 'fileBasenameNoExtension',detail: vscode.l10n.t("The current opened file's basename with no file extension")},
59
+
{label: 'defaultBuildTask',detail: vscode.l10n.t("The name of the default build task. If there is not a single default build task then a quick pick is shown to choose the build task.")},
60
+
{label: 'pathSeparator',detail: vscode.l10n.t("The character used by the operating system to separate components in file paths")},
61
+
{label: 'extensionInstallFolder',detail: vscode.l10n.t("The path where an an extension is installed."),param: 'publisher.extension'},
@@ -107,20 +105,20 @@ export class SettingsDocument {
107
105
};
108
106
109
107
110
-
completions.push(this.newSimpleCompletionItem(getText('activeEditorShort'),range,localize('activeEditorShort',"the file name (e.g. myFile.txt)")));
111
-
completions.push(this.newSimpleCompletionItem(getText('activeEditorMedium'),range,localize('activeEditorMedium',"the path of the file relative to the workspace folder (e.g. myFolder/myFileFolder/myFile.txt)")));
112
-
completions.push(this.newSimpleCompletionItem(getText('activeEditorLong'),range,localize('activeEditorLong',"the full path of the file (e.g. /Users/Development/myFolder/myFileFolder/myFile.txt)")));
113
-
completions.push(this.newSimpleCompletionItem(getText('activeFolderShort'),range,localize('activeFolderShort',"the name of the folder the file is contained in (e.g. myFileFolder)")));
114
-
completions.push(this.newSimpleCompletionItem(getText('activeFolderMedium'),range,localize('activeFolderMedium',"the path of the folder the file is contained in, relative to the workspace folder (e.g. myFolder/myFileFolder)")));
115
-
completions.push(this.newSimpleCompletionItem(getText('activeFolderLong'),range,localize('activeFolderLong',"the full path of the folder the file is contained in (e.g. /Users/Development/myFolder/myFileFolder)")));
116
-
completions.push(this.newSimpleCompletionItem(getText('rootName'),range,localize('rootName',"name of the workspace (e.g. myFolder or myWorkspace)")));
117
-
completions.push(this.newSimpleCompletionItem(getText('rootPath'),range,localize('rootPath',"file path of the workspace (e.g. /Users/Development/myWorkspace)")));
118
-
completions.push(this.newSimpleCompletionItem(getText('folderName'),range,localize('folderName',"name of the workspace folder the file is contained in (e.g. myFolder)")));
119
-
completions.push(this.newSimpleCompletionItem(getText('folderPath'),range,localize('folderPath',"file path of the workspace folder the file is contained in (e.g. /Users/Development/myFolder)")));
120
-
completions.push(this.newSimpleCompletionItem(getText('appName'),range,localize('appName',"e.g. VS Code")));
completions.push(this.newSimpleCompletionItem(getText('dirty'),range,localize('dirty',"an indicator for when the active editor has unsaved changes")));
123
-
completions.push(this.newSimpleCompletionItem(getText('separator'),range,localize('separator',"a conditional separator (' - ') that only shows when surrounded by variables with values")));
108
+
completions.push(this.newSimpleCompletionItem(getText('activeEditorShort'),range,vscode.l10n.t("the file name (e.g. myFile.txt)")));
109
+
completions.push(this.newSimpleCompletionItem(getText('activeEditorMedium'),range,vscode.l10n.t("the path of the file relative to the workspace folder (e.g. myFolder/myFileFolder/myFile.txt)")));
110
+
completions.push(this.newSimpleCompletionItem(getText('activeEditorLong'),range,vscode.l10n.t("the full path of the file (e.g. /Users/Development/myFolder/myFileFolder/myFile.txt)")));
111
+
completions.push(this.newSimpleCompletionItem(getText('activeFolderShort'),range,vscode.l10n.t("the name of the folder the file is contained in (e.g. myFileFolder)")));
112
+
completions.push(this.newSimpleCompletionItem(getText('activeFolderMedium'),range,vscode.l10n.t("the path of the folder the file is contained in, relative to the workspace folder (e.g. myFolder/myFileFolder)")));
113
+
completions.push(this.newSimpleCompletionItem(getText('activeFolderLong'),range,vscode.l10n.t("the full path of the folder the file is contained in (e.g. /Users/Development/myFolder/myFileFolder)")));
114
+
completions.push(this.newSimpleCompletionItem(getText('rootName'),range,vscode.l10n.t("name of the workspace (e.g. myFolder or myWorkspace)")));
115
+
completions.push(this.newSimpleCompletionItem(getText('rootPath'),range,vscode.l10n.t("file path of the workspace (e.g. /Users/Development/myWorkspace)")));
116
+
completions.push(this.newSimpleCompletionItem(getText('folderName'),range,vscode.l10n.t("name of the workspace folder the file is contained in (e.g. myFolder)")));
117
+
completions.push(this.newSimpleCompletionItem(getText('folderPath'),range,vscode.l10n.t("file path of the workspace folder the file is contained in (e.g. /Users/Development/myFolder)")));
118
+
completions.push(this.newSimpleCompletionItem(getText('appName'),range,vscode.l10n.t("e.g. VS Code")));
completions.push(this.newSimpleCompletionItem(getText('dirty'),range,vscode.l10n.t("an indicator for when the active editor has unsaved changes")));
121
+
completions.push(this.newSimpleCompletionItem(getText('separator'),range,vscode.l10n.t("a conditional separator (' - ') that only shows when surrounded by variables with values")));
124
122
125
123
returncompletions;
126
124
}
@@ -134,15 +132,15 @@ export class SettingsDocument {
label: localize('assocLabelFile',"Files with Extension"),
138
-
documentation: localize('assocDescriptionFile',"Map all files matching the glob pattern in their filename to the language with the given identifier."),
135
+
label: vscode.l10n.t("Files with Extension"),
136
+
documentation: vscode.l10n.t("Map all files matching the glob pattern in their filename to the language with the given identifier."),
label: localize('assocLabelPath',"Files with Path"),
145
-
documentation: localize('assocDescriptionPath',"Map all files matching the absolute path glob pattern in their path to the language with the given identifier."),
142
+
label: vscode.l10n.t("Files with Path"),
143
+
documentation: vscode.l10n.t("Map all files matching the absolute path glob pattern in their path to the language with the given identifier."),
146
144
snippet: location.isAtPropertyKey ? '"/${1:path to file}/*.${2:extension}": "${3:language}"' : '{ "/${1:path to file}/*.${2:extension}": "${3:language}" }',
147
145
range
148
146
}));
@@ -163,43 +161,43 @@ export class SettingsDocument {
this.newSimpleCompletionItem(JSON.stringify('${activeEditorLanguage}'),range,localize('activeEditor',"Use the language of the currently active text editor if any")),
225
+
this.newSimpleCompletionItem(JSON.stringify('${activeEditorLanguage}'),range,vscode.l10n.t("Use the language of the currently active text editor if any")),
0 commit comments