mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix settings referring to VS Code (#21019)
* update VS Code to ADS in settings * update github extension setting from VS Code to ADS * update description of github extension
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"displayName": "GitHub",
|
"displayName": "GitHub",
|
||||||
"description": "GitHub features for VS Code",
|
"description": "GitHub features for Azure Data Studio",
|
||||||
"config.gitAuthentication": "Controls whether to enable automatic GitHub authentication for git commands within VS Code.",
|
"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",
|
"config.gitProtocol": "Controls which protocol is used to clone a GitHub repository",
|
||||||
"welcome.publishFolder": {
|
"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)",
|
"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)",
|
||||||
|
|||||||
@@ -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 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 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 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.")
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import { ConfigurationScope, Extensions, IConfigurationNode, IConfigurationRegis
|
|||||||
import { Registry } from 'vs/platform/registry/common/platform';
|
import { Registry } from 'vs/platform/registry/common/platform';
|
||||||
import { IExtensionTerminalProfile, ITerminalProfile, TerminalSettingId } from 'vs/platform/terminal/common/terminal';
|
import { IExtensionTerminalProfile, ITerminalProfile, TerminalSettingId } from 'vs/platform/terminal/common/terminal';
|
||||||
import { createProfileSchemaEnums } from 'vs/platform/terminal/common/terminalProfiles';
|
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 = {
|
const terminalProfileBaseProperties: IJSONSchemaMap = {
|
||||||
args: {
|
args: {
|
||||||
@@ -431,7 +432,7 @@ const terminalPlatformConfiguration: IConfigurationNode = {
|
|||||||
},
|
},
|
||||||
[TerminalSettingId.InheritEnv]: {
|
[TerminalSettingId.InheritEnv]: {
|
||||||
scope: ConfigurationScope.APPLICATION,
|
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',
|
type: 'boolean',
|
||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import { IConfigurationRegistry, Extensions as ConfigurationExtensions, Configur
|
|||||||
import { isMacintosh, isWindows, isLinux, isWeb, isNative } from 'vs/base/common/platform';
|
import { isMacintosh, isWindows, isLinux, isWeb, isNative } from 'vs/base/common/platform';
|
||||||
import { workbenchConfigurationNodeBase } from 'vs/workbench/common/configuration';
|
import { workbenchConfigurationNodeBase } from 'vs/workbench/common/configuration';
|
||||||
import { isStandalone } from 'vs/base/browser/browser';
|
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<IConfigurationRegistry>(ConfigurationExtensions.Configuration);
|
const registry = Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration);
|
||||||
|
|
||||||
@@ -500,7 +501,7 @@ const registry = Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Con
|
|||||||
localize('folderPath', "`${folderPath}`: file path of the workspace folder the file is contained in (e.g. /Users/Development/myFolder)."),
|
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('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('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('remoteName', "`${remoteName}`: e.g. SSH"),
|
||||||
localize('dirty', "`${dirty}`: an indicator for when the active editor has unsaved changes."),
|
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.")
|
localize('separator', "`${separator}`: a conditional separator (\" - \") that only shows when surrounded by variables with values or static text.")
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import { DEFAULT_LETTER_SPACING, DEFAULT_LINE_HEIGHT, TerminalCursorStyle, DEFAU
|
|||||||
import { TerminalLocationString, TerminalSettingId } from 'vs/platform/terminal/common/terminal';
|
import { TerminalLocationString, TerminalSettingId } from 'vs/platform/terminal/common/terminal';
|
||||||
import { isMacintosh, isWindows } from 'vs/base/common/platform';
|
import { isMacintosh, isWindows } from 'vs/base/common/platform';
|
||||||
import { Registry } from 'vs/platform/registry/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- ' + [
|
const terminalDescriptors = '\n- ' + [
|
||||||
'`\${cwd}`: ' + localize("cwd", "the terminal's current working directory"),
|
'`\${cwd}`: ' + localize("cwd", "the terminal's current working directory"),
|
||||||
@@ -264,7 +265,7 @@ const terminalConfiguration: IConfigurationNode = {
|
|||||||
default: 1000
|
default: 1000
|
||||||
},
|
},
|
||||||
[TerminalSettingId.DetectLocale]: {
|
[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',
|
type: 'string',
|
||||||
enum: ['auto', 'off', 'on'],
|
enum: ['auto', 'off', 'on'],
|
||||||
markdownEnumDescriptions: [
|
markdownEnumDescriptions: [
|
||||||
@@ -350,12 +351,7 @@ const terminalConfiguration: IConfigurationNode = {
|
|||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
[TerminalSettingId.CommandsToSkipShell]: {
|
[TerminalSettingId.CommandsToSkipShell]: {
|
||||||
markdownDescription: localize(
|
markdownDescription: loc.terminalIntegratedCommandsToSkipShellDescrption(DEFAULT_COMMANDS_TO_SKIP_SHELL), // {{SQL CARBON EDIT}} VS Code -> ADS
|
||||||
'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)")}')`
|
|
||||||
),
|
|
||||||
type: 'array',
|
type: 'array',
|
||||||
items: {
|
items: {
|
||||||
type: 'string'
|
type: 'string'
|
||||||
@@ -363,7 +359,7 @@ const terminalConfiguration: IConfigurationNode = {
|
|||||||
default: []
|
default: []
|
||||||
},
|
},
|
||||||
[TerminalSettingId.AllowChords]: {
|
[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',
|
type: 'boolean',
|
||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
@@ -374,7 +370,7 @@ const terminalConfiguration: IConfigurationNode = {
|
|||||||
},
|
},
|
||||||
[TerminalSettingId.EnvMacOs]: {
|
[TerminalSettingId.EnvMacOs]: {
|
||||||
restricted: true,
|
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',
|
type: 'object',
|
||||||
additionalProperties: {
|
additionalProperties: {
|
||||||
type: ['string', 'null']
|
type: ['string', 'null']
|
||||||
@@ -383,7 +379,7 @@ const terminalConfiguration: IConfigurationNode = {
|
|||||||
},
|
},
|
||||||
[TerminalSettingId.EnvLinux]: {
|
[TerminalSettingId.EnvLinux]: {
|
||||||
restricted: true,
|
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',
|
type: 'object',
|
||||||
additionalProperties: {
|
additionalProperties: {
|
||||||
type: ['string', 'null']
|
type: ['string', 'null']
|
||||||
@@ -392,7 +388,7 @@ const terminalConfiguration: IConfigurationNode = {
|
|||||||
},
|
},
|
||||||
[TerminalSettingId.EnvWindows]: {
|
[TerminalSettingId.EnvWindows]: {
|
||||||
restricted: true,
|
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',
|
type: 'object',
|
||||||
additionalProperties: {
|
additionalProperties: {
|
||||||
type: ['string', 'null']
|
type: ['string', 'null']
|
||||||
@@ -521,7 +517,7 @@ const terminalConfiguration: IConfigurationNode = {
|
|||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
[TerminalSettingId.AutoReplies]: {
|
[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',
|
type: 'object',
|
||||||
additionalProperties: {
|
additionalProperties: {
|
||||||
oneOf: [{
|
oneOf: [{
|
||||||
|
|||||||
Reference in New Issue
Block a user