Skip to content

Commit

Permalink
Update nls metadata for VSCode API 1.82.0 (#13028)
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew authored Oct 26, 2023
1 parent 470022a commit e8e4700
Show file tree
Hide file tree
Showing 4 changed files with 4,966 additions and 4,708 deletions.
32 changes: 16 additions & 16 deletions packages/core/src/browser/core-preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ import { DefaultTheme } from '@theia/application-package/lib/application-props';

/* eslint-disable max-len */
const windowTitleDescription = [
'Controls the window title based on the active editor. Variables are substituted based on the context:',
'`${activeEditorShort}`: the file name (e.g. myFile.txt).',
'`${activeEditorMedium}`: the path of the file relative to the workspace folder (e.g. myFolder/myFileFolder/myFile.txt).',
'`${activeEditorLong}`: the full path of the file (e.g. /Users/Development/myFolder/myFileFolder/myFile.txt).',
'`${activeFolderShort}`: the name of the folder the file is contained in (e.g. myFileFolder).',
'`${activeFolderMedium}`: the path of the folder the file is contained in, relative to the workspace folder (e.g. myFolder/myFileFolder).',
'`${activeFolderLong}`: the full path of the folder the file is contained in (e.g. /Users/Development/myFolder/myFileFolder).',
'`${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 with optional remote name and workspace indicator if applicable (e.g. myFolder, myRemoteFolder [SSH] or myWorkspace (Workspace)).',
'`${rootPath}`: file path of the opened workspace or folder (e.g. /Users/Development/myWorkspace).',
'`${appName}`: e.g. VS Code.',
'`${remoteName}`: e.g. SSH',
'`${dirty}`: an indicator for when the active editor has unsaved changes.',
'`${separator}`: a conditional separator (" - ") that only shows when surrounded by variables with values or static text.'
].map(e => nls.localizeByDefault(e)).join('\n- ');
nls.localizeByDefault('Controls the window title based on the current context such as the opened workspace or active editor. Variables are substituted based on the context:'),
nls.localizeByDefault('`${activeEditorShort}`: the file name (e.g. myFile.txt).'),
nls.localizeByDefault('`${activeEditorMedium}`: the path of the file relative to the workspace folder (e.g. myFolder/myFileFolder/myFile.txt).'),
nls.localizeByDefault('`${activeEditorLong}`: the full path of the file (e.g. /Users/Development/myFolder/myFileFolder/myFile.txt).'),
nls.localizeByDefault('`${activeFolderShort}`: the name of the folder the file is contained in (e.g. myFileFolder).'),
nls.localizeByDefault('`${activeFolderMedium}`: the path of the folder the file is contained in, relative to the workspace folder (e.g. myFolder/myFileFolder).'),
nls.localizeByDefault('`${activeFolderLong}`: the full path of the folder the file is contained in (e.g. /Users/Development/myFolder/myFileFolder).'),
nls.localizeByDefault('`${folderName}`: name of the workspace folder the file is contained in (e.g. myFolder).'),
nls.localizeByDefault('`${folderPath}`: file path of the workspace folder the file is contained in (e.g. /Users/Development/myFolder).'),
nls.localizeByDefault('`${rootName}`: name of the workspace with optional remote name and workspace indicator if applicable (e.g. myFolder, myRemoteFolder [SSH] or myWorkspace (Workspace)).'),
nls.localizeByDefault('`${rootPath}`: file path of the opened workspace or folder (e.g. /Users/Development/myWorkspace).'),
nls.localizeByDefault('`${appName}`: e.g. VS Code.'),
nls.localizeByDefault('`${remoteName}`: e.g. SSH'),
nls.localizeByDefault('`${dirty}`: an indicator for when the active editor has unsaved changes.'),
nls.localizeByDefault('`${separator}`: a conditional separator (" - ") that only shows when surrounded by variables with values or static text.')
].join('\n- ');

export const corePreferenceSchema: PreferenceSchema = {
'type': 'object',
Expand Down
Loading

0 comments on commit e8e4700

Please sign in to comment.