diff --git a/extensions/github/package.nls.json b/extensions/github/package.nls.json index b43271a87a..7e769b96d3 100644 --- a/extensions/github/package.nls.json +++ b/extensions/github/package.nls.json @@ -1,7 +1,7 @@ { "displayName": "GitHub", - "description": "GitHub features for VS Code", - "config.gitAuthentication": "Controls whether to enable automatic GitHub authentication for git commands within VS Code.", + "description": "GitHub features for Azure Data Studio", + "config.gitAuthentication": "Controls whether to enable automatic GitHub authentication for git commands within Azure Data Studio.", "config.gitProtocol": "Controls which protocol is used to clone a GitHub repository", "welcome.publishFolder": { "message": "You can also directly publish this folder to a GitHub repository. Once published, you'll have access to source control features powered by git and GitHub.\n[$(github) Publish to GitHub](command:github.publish)", diff --git a/src/sql/base/common/locConstants.ts b/src/sql/base/common/locConstants.ts index 2e774a755e..247e6d807a 100644 --- a/src/sql/base/common/locConstants.ts +++ b/src/sql/base/common/locConstants.ts @@ -55,3 +55,19 @@ export const docNotFoundForUriError = localize('docNotFoundForUriError', 'Could export function versionSyntax(engine: string, version: string): string { return localize('sql.versionSyntax', "Could not parse `{0}` value {1}. Please use, for example: ^1.22.0, ^1.22.x, etc.", engine, version) } export function versionMismatch(currentVersion: string, requestedVersion: string): string { return localize('sql.versionMismatch', "Extension is not compatible with Azure Data Studio {0}. Extension requires: {1}.", currentVersion, requestedVersion); } export function versionMismatchVsCode(currentVersion: string, requestedVersion: string, supportedVersion: string): string { return localize('sql.versionMismatchVsCode', "Extension is not compatible with Azure Data Studio {0}. Extension requires a newer VS Code Engine Version {1}, which is newer than what is currently supported ({2}).", currentVersion, requestedVersion, supportedVersion); } +export const windowTitleAppNameDescription = localize('appName', "`${appName}`: e.g. Azure Data Studio.") +export const terminalIntegratedAllowChordsDescription = localize('terminal.integrated.allowChords', "Whether or not to allow chord keybindings in the terminal. Note that when this is true and the keystroke results in a chord it will bypass `#terminal.integrated.commandsToSkipShell#`, setting this to false is particularly useful when you want ctrl+k to go to your shell (not Azure Data Studio).") +export const terminalIntegratedAutoRepliesDescription = localize('terminal.integrated.autoReplies', "A set of messages that when encountered in the terminal will be automatically responded to. Provided the message is specific enough, this can help automate away common responses.\n\nRemarks:\n\n- Use {0} to automatically respond to the terminate batch job prompt on Windows.\n- The message includes escape sequences so the reply might not happen with styled text.\n- Each reply can only happen once every second.\n- Use {1} in the reply to mean the enter key.\n- To unset a default key, set the value to null.\n- Restart Azured Data Studio if new don't apply.", '`"Terminate batch job (Y/N)": "\\r"`', '`"\\r"`') +export function terminalIntegratedCommandsToSkipShellDescrption(commands: string[]): string { + return localize( + 'terminal.integrated.commandsToSkipShell', + "A set of command IDs whose keybindings will not be sent to the shell but instead always be handled by Azure Data Studio. This allows keybindings that would normally be consumed by the shell to act instead the same as when the terminal is not focused, for example `Ctrl+P` to launch Quick Open.\n\n \n\nMany commands are skipped by default. To override a default and pass that command's keybinding to the shell instead, add the command prefixed with the `-` character. For example add `-workbench.action.quickOpen` to allow `Ctrl+P` to reach the shell.\n\n \n\nThe following list of default skipped commands is truncated when viewed in Settings Editor. To see the full list, {1} and search for the first command from the list below.\n\n \n\nDefault Skipped Commands:\n\n{0}", + commands.sort().map(command => `- ${command}`).join('\n'), + `[${localize('openDefaultSettingsJson', "open the default settings JSON")}](command:workbench.action.openRawDefaultSettings '${localize('openDefaultSettingsJson.capitalized', "Open Default Settings (JSON)")}')` + ); +} +export const terminalIntegratedDetectLocaleDescrption = localize('terminal.integrated.detectLocale', "Controls whether to detect and set the `$LANG` environment variable to a UTF-8 compliant option since Azure Data Studio's terminal only supports UTF-8 encoded data coming from the shell.") +export const terminalIntegratedEnvOsxDescription = localize('terminal.integrated.env.osx', "Object with environment variables that will be added to the Azure Data Studio process to be used by the terminal on macOS. Set to `null` to delete the environment variable.") +export const terminalIntegratedEnvLinuxDescription = localize('terminal.integrated.env.linux', "Object with environment variables that will be added to the Azure Data Studio process to be used by the terminal on Linux. Set to `null` to delete the environment variable.") +export const terminalIntegratedEnvWindowsDescription = localize('terminal.integrated.env.windows', "Object with environment variables that will be added to the Azure Data Studio process to be used by the terminal on Windows. Set to `null` to delete the environment variable.") +export const terminalIntegratedInheritEnvDescription = localize('terminal.integrated.inheritEnv', "Whether new shells should inherit their environment from Azure Data Studio, which may source a login shell to ensure $PATH and other development variables are initialized. This has no effect on Windows.") diff --git a/src/vs/platform/terminal/common/terminalPlatformConfiguration.ts b/src/vs/platform/terminal/common/terminalPlatformConfiguration.ts index b4fae23387..3b6ab62568 100644 --- a/src/vs/platform/terminal/common/terminalPlatformConfiguration.ts +++ b/src/vs/platform/terminal/common/terminalPlatformConfiguration.ts @@ -11,6 +11,7 @@ import { ConfigurationScope, Extensions, IConfigurationNode, IConfigurationRegis import { Registry } from 'vs/platform/registry/common/platform'; import { IExtensionTerminalProfile, ITerminalProfile, TerminalSettingId } from 'vs/platform/terminal/common/terminal'; import { createProfileSchemaEnums } from 'vs/platform/terminal/common/terminalProfiles'; +import * as loc from 'sql/base/common/locConstants'; // {{SQL CARBON EDIT}} For strings we need to change const terminalProfileBaseProperties: IJSONSchemaMap = { args: { @@ -431,7 +432,7 @@ const terminalPlatformConfiguration: IConfigurationNode = { }, [TerminalSettingId.InheritEnv]: { scope: ConfigurationScope.APPLICATION, - description: localize('terminal.integrated.inheritEnv', "Whether new shells should inherit their environment from VS Code, which may source a login shell to ensure $PATH and other development variables are initialized. This has no effect on Windows."), + description: loc.terminalIntegratedInheritEnvDescription, // {{SQL CARBON EDIT}} VS Code -> ADS type: 'boolean', default: true }, diff --git a/src/vs/workbench/browser/workbench.contribution.ts b/src/vs/workbench/browser/workbench.contribution.ts index 95dc490b9b..384c764249 100644 --- a/src/vs/workbench/browser/workbench.contribution.ts +++ b/src/vs/workbench/browser/workbench.contribution.ts @@ -9,6 +9,7 @@ import { IConfigurationRegistry, Extensions as ConfigurationExtensions, Configur import { isMacintosh, isWindows, isLinux, isWeb, isNative } from 'vs/base/common/platform'; import { workbenchConfigurationNodeBase } from 'vs/workbench/common/configuration'; import { isStandalone } from 'vs/base/browser/browser'; +import * as loc from 'sql/base/common/locConstants'; // {{SQL CARBON EDIT}} For strings we need to change const registry = Registry.as(ConfigurationExtensions.Configuration); @@ -500,7 +501,7 @@ const registry = Registry.as(ConfigurationExtensions.Con localize('folderPath', "`${folderPath}`: file path of the workspace folder the file is contained in (e.g. /Users/Development/myFolder)."), localize('rootName', "`${rootName}`: name of the opened workspace or folder (e.g. myFolder or myWorkspace)."), localize('rootPath', "`${rootPath}`: file path of the opened workspace or folder (e.g. /Users/Development/myWorkspace)."), - localize('appName', "`${appName}`: e.g. VS Code."), + loc.windowTitleAppNameDescription, // {{SQL CARBON EDIT}} VS Code -> ADS localize('remoteName', "`${remoteName}`: e.g. SSH"), localize('dirty', "`${dirty}`: an indicator for when the active editor has unsaved changes."), localize('separator', "`${separator}`: a conditional separator (\" - \") that only shows when surrounded by variables with values or static text.") diff --git a/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts b/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts index a161d60b02..de8a904666 100644 --- a/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts +++ b/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts @@ -9,6 +9,7 @@ import { DEFAULT_LETTER_SPACING, DEFAULT_LINE_HEIGHT, TerminalCursorStyle, DEFAU import { TerminalLocationString, TerminalSettingId } from 'vs/platform/terminal/common/terminal'; import { isMacintosh, isWindows } from 'vs/base/common/platform'; import { Registry } from 'vs/platform/registry/common/platform'; +import * as loc from 'sql/base/common/locConstants'; // {{SQL CARBON EDIT}} For strings we need to change const terminalDescriptors = '\n- ' + [ '`\${cwd}`: ' + localize("cwd", "the terminal's current working directory"), @@ -264,7 +265,7 @@ const terminalConfiguration: IConfigurationNode = { default: 1000 }, [TerminalSettingId.DetectLocale]: { - markdownDescription: localize('terminal.integrated.detectLocale', "Controls whether to detect and set the `$LANG` environment variable to a UTF-8 compliant option since VS Code's terminal only supports UTF-8 encoded data coming from the shell."), + markdownDescription: loc.terminalIntegratedDetectLocaleDescrption, // {{SQL CARBON EDIT}} VS Code -> ADS type: 'string', enum: ['auto', 'off', 'on'], markdownEnumDescriptions: [ @@ -350,12 +351,7 @@ const terminalConfiguration: IConfigurationNode = { default: false }, [TerminalSettingId.CommandsToSkipShell]: { - markdownDescription: localize( - 'terminal.integrated.commandsToSkipShell', - "A set of command IDs whose keybindings will not be sent to the shell but instead always be handled by VS Code. This allows keybindings that would normally be consumed by the shell to act instead the same as when the terminal is not focused, for example `Ctrl+P` to launch Quick Open.\n\n \n\nMany commands are skipped by default. To override a default and pass that command's keybinding to the shell instead, add the command prefixed with the `-` character. For example add `-workbench.action.quickOpen` to allow `Ctrl+P` to reach the shell.\n\n \n\nThe following list of default skipped commands is truncated when viewed in Settings Editor. To see the full list, {1} and search for the first command from the list below.\n\n \n\nDefault Skipped Commands:\n\n{0}", - DEFAULT_COMMANDS_TO_SKIP_SHELL.sort().map(command => `- ${command}`).join('\n'), - `[${localize('openDefaultSettingsJson', "open the default settings JSON")}](command:workbench.action.openRawDefaultSettings '${localize('openDefaultSettingsJson.capitalized', "Open Default Settings (JSON)")}')` - ), + markdownDescription: loc.terminalIntegratedCommandsToSkipShellDescrption(DEFAULT_COMMANDS_TO_SKIP_SHELL), // {{SQL CARBON EDIT}} VS Code -> ADS type: 'array', items: { type: 'string' @@ -363,7 +359,7 @@ const terminalConfiguration: IConfigurationNode = { default: [] }, [TerminalSettingId.AllowChords]: { - markdownDescription: localize('terminal.integrated.allowChords', "Whether or not to allow chord keybindings in the terminal. Note that when this is true and the keystroke results in a chord it will bypass `#terminal.integrated.commandsToSkipShell#`, setting this to false is particularly useful when you want ctrl+k to go to your shell (not VS Code)."), + markdownDescription: loc.terminalIntegratedAllowChordsDescription, // {{SQL CARBON EDIT}} VS Code -> ADS type: 'boolean', default: true }, @@ -374,7 +370,7 @@ const terminalConfiguration: IConfigurationNode = { }, [TerminalSettingId.EnvMacOs]: { restricted: true, - markdownDescription: localize('terminal.integrated.env.osx', "Object with environment variables that will be added to the VS Code process to be used by the terminal on macOS. Set to `null` to delete the environment variable."), + markdownDescription: loc.terminalIntegratedEnvOsxDescription, // {{SQL CARBON EDIT}} VS Code -> ADS type: 'object', additionalProperties: { type: ['string', 'null'] @@ -383,7 +379,7 @@ const terminalConfiguration: IConfigurationNode = { }, [TerminalSettingId.EnvLinux]: { restricted: true, - markdownDescription: localize('terminal.integrated.env.linux', "Object with environment variables that will be added to the VS Code process to be used by the terminal on Linux. Set to `null` to delete the environment variable."), + markdownDescription: loc.terminalIntegratedEnvLinuxDescription, // {{SQL CARBON EDIT}} VS Code -> ADS type: 'object', additionalProperties: { type: ['string', 'null'] @@ -392,7 +388,7 @@ const terminalConfiguration: IConfigurationNode = { }, [TerminalSettingId.EnvWindows]: { restricted: true, - markdownDescription: localize('terminal.integrated.env.windows', "Object with environment variables that will be added to the VS Code process to be used by the terminal on Windows. Set to `null` to delete the environment variable."), + markdownDescription: loc.terminalIntegratedEnvWindowsDescription, // {{SQL CARBON EDIT}} VS Code -> ADS type: 'object', additionalProperties: { type: ['string', 'null'] @@ -521,7 +517,7 @@ const terminalConfiguration: IConfigurationNode = { default: true }, [TerminalSettingId.AutoReplies]: { - markdownDescription: localize('terminal.integrated.autoReplies', "A set of messages that when encountered in the terminal will be automatically responded to. Provided the message is specific enough, this can help automate away common responses.\n\nRemarks:\n\n- Use {0} to automatically respond to the terminate batch job prompt on Windows.\n- The message includes escape sequences so the reply might not happen with styled text.\n- Each reply can only happen once every second.\n- Use {1} in the reply to mean the enter key.\n- To unset a default key, set the value to null.\n- Restart VS Code if new don't apply.", '`"Terminate batch job (Y/N)": "\\r"`', '`"\\r"`'), + markdownDescription: loc.terminalIntegratedAutoRepliesDescription, // {{SQL CARBON EDIT}} VS Code -> ADS type: 'object', additionalProperties: { oneOf: [{