Skip to content

Commit 6466c3b

Browse files
author
Kartik Raj
committed
Rename
1 parent 2262aed commit 6466c3b

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

src/client/activation/extensionSurvey.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ export class ExtensionSurveyPrompt implements IExtensionSingleActivationService
8383
@traceDecoratorError('Failed to display prompt for extension survey')
8484
public async showSurvey() {
8585
const prompts = [ExtensionSurveyBanner.bannerLabelYes, ExtensionSurveyBanner.maybeLater, Common.doNotShowAgain];
86-
const telemetrySelections: ['Yes', 'Maybe later', 'Do not show again'] = [
86+
const telemetrySelections: ['Yes', 'Maybe later', "Don't show again"] = [
8787
'Yes',
8888
'Maybe later',
89-
'Do not show again',
89+
"Don't show again",
9090
];
9191
const selection = await this.appShell.showInformationMessage(ExtensionSurveyBanner.bannerMessage, ...prompts);
9292
sendTelemetryEvent(EventName.EXTENSION_SURVEY_PROMPT, undefined, {

src/client/common/utils/localize.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export namespace Common {
6363
export const openOutputPanel = l10n.t('Show output');
6464
export const noIWillDoItLater = l10n.t('No, I will do it later');
6565
export const notNow = l10n.t('Not now');
66-
export const doNotShowAgain = l10n.t('Do not show again');
66+
export const doNotShowAgain = l10n.t("Don't show again");
6767
export const reload = l10n.t('Reload');
6868
export const moreInfo = l10n.t('More Info');
6969
export const learnMore = l10n.t('Learn more');
@@ -199,7 +199,7 @@ export namespace Interpreters {
199199
export const activatingTerminals = l10n.t('Reactivating terminals...');
200200
export const activateTerminalDescription = l10n.t('Activated environment for');
201201
export const terminalEnvVarCollectionPrompt = l10n.t(
202-
'Python extension automatically activates all terminals using the selected environment. You can hover over the terminal tab to get information about the activation. [Learn more](https://aka.ms/vscodePythonTerminalActivation).',
202+
'The Python extension automatically activates all terminals using the selected environment. You can hover over the terminal tab to see more information about the activation. [Learn more](https://aka.ms/vscodePythonTerminalActivation).',
203203
);
204204
export const activatedCondaEnvLaunch = l10n.t(
205205
'We noticed VS Code was launched from an activated conda environment, would you like to select it?',

src/client/telemetry/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ export interface IEventNamePropertyMapping {
945945
tool?: LinterId;
946946
/**
947947
* `select` When 'Select linter' option is selected
948-
* `disablePrompt` When 'Do not show again' option is selected
948+
* `disablePrompt` When "Don't show again" option is selected
949949
* `install` When 'Install' option is selected
950950
*
951951
* @type {('select' | 'disablePrompt' | 'install')}
@@ -1369,7 +1369,7 @@ export interface IEventNamePropertyMapping {
13691369
/**
13701370
* `Yes` When 'Yes' option is selected
13711371
* `No` When 'No' option is selected
1372-
* `Ignore` When 'Do not show again' option is clicked
1372+
* `Ignore` When "Don't show again" option is clicked
13731373
*
13741374
* @type {('Yes' | 'No' | 'Ignore' | undefined)}
13751375
*/
@@ -1549,7 +1549,7 @@ export interface IEventNamePropertyMapping {
15491549
* This event also has a measure, "resultLength", which records the number of completions provided.
15501550
*/
15511551
/* __GDPR__
1552-
"jedi_language_server.request" : {
1552+
"jedi_language_server.request" : {
15531553
"method": {"classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "karthiknadig"}
15541554
}
15551555
*/
@@ -1566,7 +1566,7 @@ export interface IEventNamePropertyMapping {
15661566
/**
15671567
* Carries the selection of user when they are asked to take the extension survey
15681568
*/
1569-
selection: 'Yes' | 'Maybe later' | 'Do not show again' | undefined;
1569+
selection: 'Yes' | 'Maybe later' | "Don't show again" | undefined;
15701570
};
15711571
/**
15721572
* Telemetry event sent when starting REPL

src/test/activation/extensionSurvey.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ suite('Extension survey prompt - showSurvey()', () => {
355355
platformService.verifyAll();
356356
});
357357

358-
test("Disable prompt if 'Do not show again' option is clicked", async () => {
358+
test("Disable prompt if \"Don't show again\" option is clicked", async () => {
359359
const prompts = [ExtensionSurveyBanner.bannerLabelYes, ExtensionSurveyBanner.maybeLater, Common.doNotShowAgain];
360360
platformService.setup((p) => p.osType).verifiable(TypeMoq.Times.never());
361361
appShell

src/test/application/diagnostics/checks/macPythonInterpreter.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ suite('Application Diagnostics - Checks Mac Python Interpreter', () => {
220220
expect(messagePrompt).not.be.equal(undefined, 'Message prompt not set');
221221
expect(messagePrompt!.commandPrompts).to.be.deep.equal([
222222
{ prompt: 'Select Python Interpreter', command: cmd },
223-
{ prompt: 'Do not show again', command: cmdIgnore },
223+
{ prompt: "Don't show again", command: cmdIgnore },
224224
]);
225225
});
226226
test('Should not display a message if No Interpreters diagnostic has been ignored', async () => {

src/test/common/installer/installer.unit.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,10 @@ suite('Module Installer only', () => {
307307
TypeMoq.It.isAnyString(),
308308
TypeMoq.It.isValue('Install'),
309309
TypeMoq.It.isValue('Select Linter'),
310-
TypeMoq.It.isValue('Do not show again'),
310+
TypeMoq.It.isValue("Don't show again"),
311311
),
312312
)
313-
.returns(async () => 'Do not show again')
313+
.returns(async () => "Don't show again")
314314
.verifiable(TypeMoq.Times.once());
315315
const persistVal = TypeMoq.Mock.ofType<IPersistentState<boolean>>();
316316
let mockPersistVal = false;
@@ -367,7 +367,7 @@ suite('Module Installer only', () => {
367367
TypeMoq.It.isAnyString(),
368368
TypeMoq.It.isValue('Install'),
369369
TypeMoq.It.isValue('Select Linter'),
370-
TypeMoq.It.isValue('Do not show again'),
370+
TypeMoq.It.isValue("Don't show again"),
371371
),
372372
)
373373
.returns(async () => undefined)
@@ -864,7 +864,7 @@ suite('Module Installer only', () => {
864864

865865
test('Ensure 3 options for pylint', async () => {
866866
const product = Product.pylint;
867-
const options = ['Select Linter', 'Do not show again'];
867+
const options = ['Select Linter', "Don't show again"];
868868
const productName = ProductNames.get(product)!;
869869

870870
await installer.promptToInstallImplementation(product, resource);
@@ -875,7 +875,7 @@ suite('Module Installer only', () => {
875875
});
876876
test('Ensure select linter command is invoked', async () => {
877877
const product = Product.pylint;
878-
const options = ['Select Linter', 'Do not show again'];
878+
const options = ['Select Linter', "Don't show again"];
879879
const productName = ProductNames.get(product)!;
880880
when(
881881
appShell.showErrorMessage(`Linter ${productName} is not installed.`, 'Install', options[0], options[1]),
@@ -892,7 +892,7 @@ suite('Module Installer only', () => {
892892
});
893893
test('If install button is selected, install linter and return response', async () => {
894894
const product = Product.pylint;
895-
const options = ['Select Linter', 'Do not show again'];
895+
const options = ['Select Linter', "Don't show again"];
896896
const productName = ProductNames.get(product)!;
897897
when(
898898
appShell.showErrorMessage(`Linter ${productName} is not installed.`, 'Install', options[0], options[1]),

src/test/interpreters/virtualEnvs/virtualEnvPrompt.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ suite('Virtual Environment Prompt', () => {
223223
notificationPromptEnabled.verifyAll();
224224
});
225225

226-
test("If user selects 'Do not show again', prompt is disabled", async () => {
226+
test('If user selects "Don\'t show again", prompt is disabled', async () => {
227227
const resource = Uri.file('a');
228228
const interpreter1 = { path: 'path/to/interpreter1' };
229229
const prompts = [Common.bannerLabelYes, Common.bannerLabelNo, Common.doNotShowAgain];

0 commit comments

Comments
 (0)