mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Update application name to Azure Data Studio (#24510)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -92,21 +92,24 @@ async function main(buildDir?: string): Promise<void> {
|
|||||||
'-insert',
|
'-insert',
|
||||||
'NSAppleEventsUsageDescription',
|
'NSAppleEventsUsageDescription',
|
||||||
'-string',
|
'-string',
|
||||||
'An application in Visual Studio Code wants to use AppleScript.',
|
// ${{SQL CARBON EDIT}} Update application name to Azure Data Studio
|
||||||
|
'An application in Azure Data Studio wants to use AppleScript.',
|
||||||
`${infoPlistPath}`
|
`${infoPlistPath}`
|
||||||
]);
|
]);
|
||||||
await spawn('plutil', [
|
await spawn('plutil', [
|
||||||
'-replace',
|
'-replace',
|
||||||
'NSMicrophoneUsageDescription',
|
'NSMicrophoneUsageDescription',
|
||||||
'-string',
|
'-string',
|
||||||
'An application in Visual Studio Code wants to use the Microphone.',
|
// ${{SQL CARBON EDIT}} Update application name to Azure Data Studio
|
||||||
|
'An application in Azure Data Studio wants to use the Microphone.',
|
||||||
`${infoPlistPath}`
|
`${infoPlistPath}`
|
||||||
]);
|
]);
|
||||||
await spawn('plutil', [
|
await spawn('plutil', [
|
||||||
'-replace',
|
'-replace',
|
||||||
'NSCameraUsageDescription',
|
'NSCameraUsageDescription',
|
||||||
'-string',
|
'-string',
|
||||||
'An application in Visual Studio Code wants to use the Camera.',
|
// ${{SQL CARBON EDIT}} Update application name to Azure Data Studio
|
||||||
|
'An application in Azure Data Studio wants to use the Camera.',
|
||||||
`${infoPlistPath}`
|
`${infoPlistPath}`
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Git static contributions and remote repository picker
|
# Git static contributions and remote repository picker
|
||||||
|
|
||||||
**Notice:** This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
|
**Notice:** This extension is bundled with Azure Data Studio. It can be disabled but not uninstalled.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Git integration for Visual Studio Code
|
# Git integration for Azure Data Studio
|
||||||
|
|
||||||
**Notice:** This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
|
**Notice:** This extension is bundled with Azure Data Studio. It can be disabled but not uninstalled.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# GitHub for Visual Studio Code
|
# GitHub for Azure Data Studio
|
||||||
|
|
||||||
**Notice:** This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
|
**Notice:** This extension is bundled with Azure Data Studio. It can be disabled but not uninstalled.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,9 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<a class="branding" href="https://code.visualstudio.com/">
|
<!-- {{SQL CARBON EDIT}} Update application name and URL to Azure Data Studio -->
|
||||||
Visual Studio Code
|
<a class="branding" href="https://aka.ms/azuredatastudio/">
|
||||||
|
Azure Data Studio
|
||||||
</a>
|
</a>
|
||||||
<div class="message-container">
|
<div class="message-container">
|
||||||
<div class="message">
|
<div class="message">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Language Features for Search Result files
|
# Language Features for Search Result files
|
||||||
|
|
||||||
**Notice:** This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
|
**Notice:** This extension is bundled with Azure Data Studio. It can be disabled but not uninstalled.
|
||||||
|
|
||||||
This extension provides Syntax Highlighting, Symbol Information, Result Highlighting, and Go to Definition capabilities for the Search Results Editor.
|
This extension provides Syntax Highlighting, Symbol Information, Result Highlighting, and Go to Definition capabilities for the Search Results Editor.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Simple Browser
|
# Simple Browser
|
||||||
|
|
||||||
**Notice:** This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
|
**Notice:** This extension is bundled with Azure Data Studio. It can be disabled but not uninstalled.
|
||||||
|
|
||||||
Provides a very basic browser preview using an iframe embedded in a [webview](). This extension is primarily meant to be used by other extensions for showing simple web content.
|
Provides a very basic browser preview using an iframe embedded in a [webview](). This extension is primarily meant to be used by other extensions for showing simple web content.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"displayName": "Abyss Theme",
|
"displayName": "Abyss Theme",
|
||||||
"description": "Abyss theme for Visual Studio Code",
|
"description": "Abyss theme for Azure Data Studio",
|
||||||
"themeLabel": "Abyss"
|
"themeLabel": "Abyss"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,5 +9,5 @@
|
|||||||
"lightColorThemeLabel": "Light (Visual Studio)",
|
"lightColorThemeLabel": "Light (Visual Studio)",
|
||||||
"hcColorThemeLabel": "Dark High Contrast",
|
"hcColorThemeLabel": "Dark High Contrast",
|
||||||
"lightHcColorThemeLabel": "Light High Contrast",
|
"lightHcColorThemeLabel": "Light High Contrast",
|
||||||
"minimalIconThemeLabel": "Minimal (Visual Studio Code)"
|
"minimalIconThemeLabel": "Minimal (Azure Data Studio)"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"displayName": "Kimbie Dark Theme",
|
"displayName": "Kimbie Dark Theme",
|
||||||
"description": "Kimbie dark theme for Visual Studio Code",
|
"description": "Kimbie dark theme for Azure Data Studio",
|
||||||
"themeLabel": "Kimbie Dark"
|
"themeLabel": "Kimbie Dark"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"displayName": "Monokai Dimmed Theme",
|
"displayName": "Monokai Dimmed Theme",
|
||||||
"description": "Monokai dimmed theme for Visual Studio Code",
|
"description": "Monokai dimmed theme for Azure Data Studio",
|
||||||
"themeLabel": "Monokai Dimmed"
|
"themeLabel": "Monokai Dimmed"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"displayName": "Monokai Theme",
|
"displayName": "Monokai Theme",
|
||||||
"description": "Monokai theme for Visual Studio Code",
|
"description": "Monokai theme for Azure Data Studio",
|
||||||
"themeLabel": "Monokai"
|
"themeLabel": "Monokai"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"displayName": "Quiet Light Theme",
|
"displayName": "Quiet Light Theme",
|
||||||
"description": "Quiet light theme for Visual Studio Code",
|
"description": "Quiet light theme for Azure Data Studio",
|
||||||
"themeLabel": "Quiet Light"
|
"themeLabel": "Quiet Light"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"displayName": "Red Theme",
|
"displayName": "Red Theme",
|
||||||
"description": "Red theme for Visual Studio Code",
|
"description": "Red theme for Azure Data Studio",
|
||||||
"themeLabel": "Red"
|
"themeLabel": "Red"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"displayName": "Seti File Icon Theme",
|
"displayName": "Seti File Icon Theme",
|
||||||
"description": "A file icon theme made out of the Seti UI file icons",
|
"description": "A file icon theme made out of the Seti UI file icons",
|
||||||
"themeLabel": "Seti (Visual Studio Code)"
|
"themeLabel": "Seti (Azure Data Studio)"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"displayName": "Solarized Dark Theme",
|
"displayName": "Solarized Dark Theme",
|
||||||
"description": "Solarized dark theme for Visual Studio Code",
|
"description": "Solarized dark theme for Azure Data Studio",
|
||||||
"themeLabel": "Solarized Dark"
|
"themeLabel": "Solarized Dark"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"displayName": "Solarized Light Theme",
|
"displayName": "Solarized Light Theme",
|
||||||
"description": "Solarized light theme for Visual Studio Code",
|
"description": "Solarized light theme for Azure Data Studio", /* {SQL CARBON EDIT} */
|
||||||
"themeLabel": "Solarized Light"
|
"themeLabel": "Solarized Light"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"displayName": "Tomorrow Night Blue Theme",
|
"displayName": "Tomorrow Night Blue Theme",
|
||||||
"description": "Tomorrow night blue theme for Visual Studio Code",
|
"description": "Tomorrow night blue theme for Azure Data Studio",
|
||||||
"themeLabel": "Tomorrow Night Blue"
|
"themeLabel": "Tomorrow Night Blue"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
Name: @@NAME@@
|
Name: @@NAME@@
|
||||||
Version: @@VERSION@@
|
Version: @@VERSION@@
|
||||||
Release: @@RELEASE@@.el7
|
Release: @@RELEASE@@.el7
|
||||||
Summary: Code editing. Redefined.
|
Summary: Azure Data connectivity.
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Vendor: Microsoft Corporation
|
Vendor: Microsoft Corporation
|
||||||
Packager: Visual Studio Code Team <vscode-linux@microsoft.com>
|
Packager: Azure Data Studio Team
|
||||||
License: @@LICENSE@@
|
License: @@LICENSE@@
|
||||||
URL: https://code.visualstudio.com/
|
URL: https://aka.ms/azuredatastudio
|
||||||
Icon: @@NAME@@.xpm
|
Icon: @@NAME@@.xpm
|
||||||
Requires: @@DEPENDENCIES@@
|
Requires: @@DEPENDENCIES@@
|
||||||
AutoReq: 0
|
AutoReq: 0
|
||||||
@@ -14,10 +14,10 @@ AutoReq: 0
|
|||||||
%global __provides_exclude_from ^%{_datadir}/%{name}/.*\\.so.*$
|
%global __provides_exclude_from ^%{_datadir}/%{name}/.*\\.so.*$
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux for installation instructions and FAQ.
|
Azure Data Studio is a lightweight, cross-platform data management and development tool with connectivity to popular cloud and on-premises databases. For more information, visit https://aka.ms/azuredatastudio.
|
||||||
|
|
||||||
# Don't generate build_id links to prevent conflicts when installing multiple
|
# Don't generate build_id links to prevent conflicts when installing multiple
|
||||||
# versions of VS Code alongside each other (e.g. `code` and `code-insiders`)
|
# versions of ADS alongside each other (e.g. `azuredatastudio` and `azuredatastudio-insiders`)
|
||||||
%define _build_id_links none
|
%define _build_id_links none
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
name: @@NAME@@
|
name: @@NAME@@
|
||||||
version: @@VERSION@@
|
version: @@VERSION@@
|
||||||
summary: Code editing. Redefined.
|
summary: Azure Data connectivity.
|
||||||
description: |
|
description: |
|
||||||
Visual Studio Code is a new choice of tool that combines the
|
Azure Data Studio is a lightweight, cross-platform data management
|
||||||
simplicity of a code editor with what developers need for the core
|
and development tool with connectivity to popular cloud and on-premises databases.
|
||||||
edit-build-debug cycle.
|
|
||||||
|
|
||||||
architectures:
|
architectures:
|
||||||
- build-on: amd64
|
- build-on: amd64
|
||||||
|
|||||||
@@ -95,4 +95,11 @@ export const experimentalCustomizationDescription = localize('notebook.editorOpt
|
|||||||
export const download = localize('azuredatastudio.download', 'Download');
|
export const download = localize('azuredatastudio.download', 'Download');
|
||||||
export const downloadTooltip = localize('azuredatastudio.downloadTooltip', "Download this extension from an external source");
|
export const downloadTooltip = localize('azuredatastudio.downloadTooltip', "Download this extension from an external source");
|
||||||
export const installTooltip = localize('azuredatastudio.installTooltip', "Install this extension");
|
export const installTooltip = localize('azuredatastudio.installTooltip', "Install this extension");
|
||||||
|
export function getThemeUpdatedNotification(label: string): string {
|
||||||
|
return localize({ key: 'azuredatastudio.themeUpdatedNotification', comment: ['{0} is the name of the new default theme'] }, "Azure Data Studio now ships with a new default theme '{0}'. If you prefer, you can switch back to the old theme or try one of the many other color themes available.", label);
|
||||||
|
}
|
||||||
|
export function getNewThemeNotification(label: string): string {
|
||||||
|
return localize({ key: 'newThemeNotification', comment: ['{0} is the name of the new default theme'] }, "Azure Data Studio now ships with a new default theme '{0}'. Do you want to give it a try?", label);
|
||||||
|
}
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|||||||
@@ -131,16 +131,18 @@ suite('Labels', () => {
|
|||||||
|
|
||||||
// real world example (other)
|
// real world example (other)
|
||||||
t = '${dirty}${activeEditorShort}${separator}${rootName}${separator}${appName}';
|
t = '${dirty}${activeEditorShort}${separator}${rootName}${separator}${appName}';
|
||||||
|
// {{SQL CARBON EDIT}} Update application name to Azure Data Studio
|
||||||
assert.strictEqual(labels.template(t, { dirty: '', activeEditorShort: '', rootName: '', appName: '', separator: { label: ' - ' } }), '');
|
assert.strictEqual(labels.template(t, { dirty: '', activeEditorShort: '', rootName: '', appName: '', separator: { label: ' - ' } }), '');
|
||||||
assert.strictEqual(labels.template(t, { dirty: '', activeEditorShort: '', rootName: '', appName: 'Visual Studio Code', separator: { label: ' - ' } }), 'Visual Studio Code');
|
assert.strictEqual(labels.template(t, { dirty: '', activeEditorShort: '', rootName: '', appName: 'Azure Data Studio', separator: { label: ' - ' } }), 'Azure Data Studio');
|
||||||
assert.strictEqual(labels.template(t, { dirty: '', activeEditorShort: 'Untitled-1', rootName: '', appName: 'Visual Studio Code', separator: { label: ' - ' } }), 'Untitled-1 - Visual Studio Code');
|
assert.strictEqual(labels.template(t, { dirty: '', activeEditorShort: 'Untitled-1', rootName: '', appName: 'Azure Data Studio', separator: { label: ' - ' } }), 'Untitled-1 - Azure Data Studio');
|
||||||
assert.strictEqual(labels.template(t, { dirty: '', activeEditorShort: '', rootName: 'monaco', appName: 'Visual Studio Code', separator: { label: ' - ' } }), 'monaco - Visual Studio Code');
|
assert.strictEqual(labels.template(t, { dirty: '', activeEditorShort: '', rootName: 'monaco', appName: 'Azure Data Studio', separator: { label: ' - ' } }), 'monaco - Azure Data Studio');
|
||||||
assert.strictEqual(labels.template(t, { dirty: '', activeEditorShort: 'somefile.txt', rootName: 'monaco', appName: 'Visual Studio Code', separator: { label: ' - ' } }), 'somefile.txt - monaco - Visual Studio Code');
|
assert.strictEqual(labels.template(t, { dirty: '', activeEditorShort: 'somefile.txt', rootName: 'monaco', appName: 'Azure Data Studio', separator: { label: ' - ' } }), 'somefile.txt - monaco - Azure Data Studio');
|
||||||
assert.strictEqual(labels.template(t, { dirty: '* ', activeEditorShort: 'somefile.txt', rootName: 'monaco', appName: 'Visual Studio Code', separator: { label: ' - ' } }), '* somefile.txt - monaco - Visual Studio Code');
|
assert.strictEqual(labels.template(t, { dirty: '* ', activeEditorShort: 'somefile.txt', rootName: 'monaco', appName: 'Azure Data Studio', separator: { label: ' - ' } }), '* somefile.txt - monaco - Azure Data Studio');
|
||||||
|
|
||||||
// real world example (other)
|
// real world example (other)
|
||||||
t = '${dirty}${activeEditorShort}${separator}${rootNameShort}${separator}${appName}';
|
t = '${dirty}${activeEditorShort}${separator}${rootNameShort}${separator}${appName}';
|
||||||
assert.strictEqual(labels.template(t, { dirty: '', activeEditorShort: '', rootName: 'monaco (Workspace)', rootNameShort: 'monaco', appName: 'Visual Studio Code', separator: { label: ' - ' } }), 'monaco - Visual Studio Code');
|
// {{SQL CARBON EDIT}} Update application name to Azure Data Studio
|
||||||
|
assert.strictEqual(labels.template(t, { dirty: '', activeEditorShort: '', rootName: 'monaco (Workspace)', rootNameShort: 'monaco', appName: 'Azure Data Studio', separator: { label: ' - ' } }), 'monaco - Azure Data Studio');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('mnemonicButtonLabel', () => {
|
test('mnemonicButtonLabel', () => {
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
<!-- Disable pinch zooming -->
|
<!-- Disable pinch zooming -->
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
|
||||||
|
|
||||||
<title>Visual Studio Code</title>
|
<!-- {{SQL CARBON EDIT}} Update application name to Azure Data Studio -->
|
||||||
|
<title>Azure Data Studio</title>
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
<script>
|
<script>
|
||||||
@@ -111,8 +112,9 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<!-- {{SQL CARBON EDIT}} Update application name to Azure Data Studio -->
|
||||||
<span class="branding">
|
<span class="branding">
|
||||||
Visual Studio Code
|
Azure Data Studio
|
||||||
</span>
|
</span>
|
||||||
<div class="message-container">
|
<div class="message-container">
|
||||||
<div class="message">
|
<div class="message">
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ import { IStorageService, StorageScope, StorageTarget } from 'vs/platform/storag
|
|||||||
import { isWeb } from 'vs/base/common/platform';
|
import { isWeb } from 'vs/base/common/platform';
|
||||||
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
|
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
|
||||||
import { IHostService } from 'vs/workbench/services/host/browser/host';
|
import { IHostService } from 'vs/workbench/services/host/browser/host';
|
||||||
|
import { getNewThemeNotification, getThemeUpdatedNotification } from 'sql/base/common/locConstants';
|
||||||
|
|
||||||
export const manageExtensionIcon = registerIcon('theme-selection-manage-extension', Codicon.gear, localize('manageExtensionIcon', 'Icon for the \'Manage\' action in the theme selection quick pick.'));
|
export const manageExtensionIcon = registerIcon('theme-selection-manage-extension', Codicon.gear, localize('manageExtensionIcon', 'Icon for the \'Manage\' action in the theme selection quick pick.'));
|
||||||
|
|
||||||
@@ -768,7 +769,8 @@ class DefaultThemeUpdatedNotificationContribution implements IWorkbenchContribut
|
|||||||
];
|
];
|
||||||
await this._notificationService.prompt(
|
await this._notificationService.prompt(
|
||||||
Severity.Info,
|
Severity.Info,
|
||||||
localize({ key: 'themeUpdatedNotification', comment: ['{0} is the name of the new default theme'] }, "Visual Studio Code now ships with a new default theme '{0}'. If you prefer, you can switch back to the old theme or try one of the many other color themes available.", newTheme.label),
|
// {{SQL CARBON EDIT}} Update application name to Azure Data Studio, use custom localized string.
|
||||||
|
getThemeUpdatedNotification(newTheme.label),
|
||||||
choices,
|
choices,
|
||||||
{
|
{
|
||||||
onCancel: () => this._writeTelemetry('cancel')
|
onCancel: () => this._writeTelemetry('cancel')
|
||||||
@@ -796,7 +798,8 @@ class DefaultThemeUpdatedNotificationContribution implements IWorkbenchContribut
|
|||||||
}];
|
}];
|
||||||
await this._notificationService.prompt(
|
await this._notificationService.prompt(
|
||||||
Severity.Info,
|
Severity.Info,
|
||||||
localize({ key: 'newThemeNotification', comment: ['{0} is the name of the new default theme'] }, "Visual Studio Code now ships with a new default theme '{0}'. Do you want to give it a try?", theme.label),
|
// {{SQL CARBON EDIT}} Update application name to Azure Data Studio, use custom localized string.
|
||||||
|
getNewThemeNotification(theme.label),
|
||||||
choices,
|
choices,
|
||||||
{ onCancel: () => this._writeTelemetry('cancel') }
|
{ onCancel: () => this._writeTelemetry('cancel') }
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user