Skip to content

Commit 466ef76

Browse files
author
Benjamin Pasero
committed
notifications - tweak wording of messages
1 parent 3592fa7 commit 466ef76

18 files changed

Lines changed: 44 additions & 38 deletions

File tree

extensions/git/src/autofetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class AutoFetcher {
5757
const readMore: MessageItem = { title: localize('read more', "Read More") };
5858
const no: MessageItem = { isCloseAffordance: true, title: localize('no', "No") };
5959
const askLater: MessageItem = { title: localize('not now', "Ask Me Later") };
60-
const result = await window.showInformationMessage(localize('suggest auto fetch', "Would you like Code to periodically run `git fetch`?"), yes, readMore, no, askLater);
60+
const result = await window.showInformationMessage(localize('suggest auto fetch', "Would you like Code to periodically run 'git fetch'?"), yes, readMore, no, askLater);
6161

6262
if (result === askLater) {
6363
return;

src/vs/code/electron-main/window.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ export class CodeWindow implements ICodeWindow {
837837
this._win.setAutoHideMenuBar(true);
838838

839839
if (notify) {
840-
this.send('vscode:showInfoMessage', nls.localize('hiddenMenuBar', "You can still access the menu bar by pressing the **Alt** key."));
840+
this.send('vscode:showInfoMessage', nls.localize('hiddenMenuBar', "You can still access the menu bar by pressing the Alt-key."));
841841
}
842842
break;
843843

src/vs/editor/contrib/format/formatActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export abstract class AbstractFormatAction extends EditorAction {
285285
editor.focus();
286286
}, err => {
287287
if (err instanceof Error && err.name === NoProviderError.Name) {
288-
notificationService.info(nls.localize('no.provider', "Sorry, but there is no formatter for '{0}'-files installed.", editor.getModel().getLanguageIdentifier().language));
288+
notificationService.info(nls.localize('no.provider', "There is no formatter for '{0}'-files installed.", editor.getModel().getLanguageIdentifier().language));
289289
} else {
290290
throw err;
291291
}

src/vs/editor/contrib/links/links.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ class LinkDetector implements editorCommon.IEditorContribution {
326326
}, err => {
327327
// different error cases
328328
if (err === 'invalid') {
329-
this.notificationService.warn(nls.localize('invalid.url', 'Sorry, failed to open this link because it is not well-formed: {0}', link.url));
329+
this.notificationService.warn(nls.localize('invalid.url', 'Failed to open this link because it is not well-formed: {0}', link.url));
330330
} else if (err === 'missing') {
331-
this.notificationService.warn(nls.localize('missing.url', 'Sorry, failed to open this link because its target is missing.'));
331+
this.notificationService.warn(nls.localize('missing.url', 'Failed to open this link because its target is missing.'));
332332
} else {
333333
onUnexpectedError(err);
334334
}

src/vs/editor/contrib/rename/rename.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class RenameController implements IEditorContribution {
215215
});
216216

217217
}, err => {
218-
this._notificationService.error(nls.localize('rename.failed', "Sorry, rename failed to execute."));
218+
this._notificationService.error(nls.localize('rename.failed', "Rename failed to execute."));
219219
return TPromise.wrapError(err);
220220
});
221221

src/vs/workbench/api/node/extHostExtensionActivator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export class ExtensionsActivator {
242242

243243
if (!depDesc) {
244244
// Error condition 1: unknown dependency
245-
this._host.showMessage(Severity.Error, nls.localize('unknownDep', "Extension `{1}` failed to activate. Reason: unknown dependency `{0}`.", depId, currentExtension.id));
245+
this._host.showMessage(Severity.Error, nls.localize('unknownDep', "Extension '{1}' failed to activate. Reason: unknown dependency '{0}'.", depId, currentExtension.id));
246246
this._activatedExtensions[currentExtension.id] = new FailedExtension(ExtensionActivationTimes.NONE);
247247
return;
248248
}
@@ -251,7 +251,7 @@ export class ExtensionsActivator {
251251
let dep = this._activatedExtensions[depId];
252252
if (dep.activationFailed) {
253253
// Error condition 2: a dependency has already failed activation
254-
this._host.showMessage(Severity.Error, nls.localize('failedDep1', "Extension `{1}` failed to activate. Reason: dependency `{0}` failed to activate.", depId, currentExtension.id));
254+
this._host.showMessage(Severity.Error, nls.localize('failedDep1', "Extension '{1}' failed to activate. Reason: dependency '{0}' failed to activate.", depId, currentExtension.id));
255255
this._activatedExtensions[currentExtension.id] = new FailedExtension(ExtensionActivationTimes.NONE);
256256
return;
257257
}
@@ -284,7 +284,7 @@ export class ExtensionsActivator {
284284
// More than 10 dependencies deep => most likely a dependency loop
285285
for (let i = 0, len = extensionDescriptions.length; i < len; i++) {
286286
// Error condition 3: dependency loop
287-
this._host.showMessage(Severity.Error, nls.localize('failedDep2', "Extension `{0}` failed to activate. Reason: more than 10 levels of dependencies (most likely a dependency loop).", extensionDescriptions[i].id));
287+
this._host.showMessage(Severity.Error, nls.localize('failedDep2', "Extension '{0}' failed to activate. Reason: more than 10 levels of dependencies (most likely a dependency loop).", extensionDescriptions[i].id));
288288
this._activatedExtensions[extensionDescriptions[i].id] = new FailedExtension(ExtensionActivationTimes.NONE);
289289
}
290290
return TPromise.as(void 0);
@@ -329,7 +329,7 @@ export class ExtensionsActivator {
329329
}
330330

331331
this._activatingExtensions[extensionDescription.id] = this._host.actualActivateExtension(extensionDescription, reason).then(null, (err) => {
332-
this._host.showMessage(Severity.Error, nls.localize('activationError', "Activating extension `{0}` failed: {1}.", extensionDescription.id, err.message));
332+
this._host.showMessage(Severity.Error, nls.localize('activationError', "Activating extension '{0}' failed: {1}.", extensionDescription.id, err.message));
333333
console.error('Activating extension `' + extensionDescription.id + '` failed: ', err.message);
334334
console.log('Here is the error stack: ', err.stack);
335335
// Treat the extension as being empty

src/vs/workbench/common/views.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const ViewsRegistry: IViewsRegistry = new class implements IViewsRegistry
9797
this._viewLocations.push(viewDescriptor.location);
9898
}
9999
if (views.some(v => v.id === viewDescriptor.id)) {
100-
throw new Error(localize('duplicateId', "A view with id `{0}` is already registered in the location `{1}`", viewDescriptor.id, viewDescriptor.location.id));
100+
throw new Error(localize('duplicateId', "A view with id '{0}' is already registered in the location '{1}'", viewDescriptor.id, viewDescriptor.location.id));
101101
}
102102
views.push(viewDescriptor);
103103
}

src/vs/workbench/parts/debug/electron-browser/debugService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ export class DebugService implements debug.IDebugService {
708708
launchForName = launch;
709709
} else {
710710
return TPromise.wrapError(new Error(launchesContainingName.length === 0 ? nls.localize('noConfigurationNameInWorkspace', "Could not find launch configuration '{0}' in the workspace.", name)
711-
: nls.localize('multipleConfigurationNamesInWorkspace', "There are multiple launch configurations `{0}` in the workspace. Use folder name to qualify the configuration.", name)));
711+
: nls.localize('multipleConfigurationNamesInWorkspace', "There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.", name)));
712712
}
713713
} else if (configData.folder) {
714714
const launchesMatchingConfigData = this.configurationManager.getLaunches().filter(l => l.workspace && l.workspace.name === configData.folder && !!l.getConfiguration(configData.name));
@@ -780,12 +780,12 @@ export class DebugService implements debug.IDebugService {
780780
if (!this.configurationManager.getAdapter(resolvedConfig.type) || (config.request !== 'attach' && config.request !== 'launch')) {
781781
let message: string;
782782
if (config.request !== 'attach' && config.request !== 'launch') {
783-
message = config.request ? nls.localize('debugRequestNotSupported', "Attribute `{0}` has an unsupported value '{1}' in the chosen debug configuration.", 'request', config.request)
783+
message = config.request ? nls.localize('debugRequestNotSupported', "Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.", 'request', config.request)
784784
: nls.localize('debugRequesMissing', "Attribute '{0}' is missing from the chosen debug configuration.", 'request');
785785

786786
} else {
787787
message = resolvedConfig.type ? nls.localize('debugTypeNotSupported', "Configured debug type '{0}' is not supported.", resolvedConfig.type) :
788-
nls.localize('debugTypeMissing', "Missing property `type` for the chosen launch configuration.");
788+
nls.localize('debugTypeMissing', "Missing property 'type' for the chosen launch configuration.");
789789
}
790790

791791
return TPromise.wrapError(errors.create(message, { actions: [this.instantiationService.createInstance(debugactions.ConfigureAction, debugactions.ConfigureAction.ID, debugactions.ConfigureAction.LABEL)] }));

src/vs/workbench/parts/extensions/electron-browser/extensionProfileService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class ExtensionHostProfileService extends Disposable implements IExtensio
7171
}
7272

7373
if (!this._extensionService.canProfileExtensionHost()) {
74-
this._notificationService.info(nls.localize('noPro', "To profile extensions, launch with `--inspect-extensions=<port>`."));
74+
this._notificationService.info(nls.localize('noPro', "To profile extensions, launch with '--inspect-extensions=<port>'."));
7575
return;
7676
}
7777

src/vs/workbench/parts/files/electron-browser/saveErrorHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import { INotificationService, INotificationHandle, INotificationActions, Severi
3636
export const CONFLICT_RESOLUTION_CONTEXT = 'saveConflictResolutionContext';
3737
export const CONFLICT_RESOLUTION_SCHEME = 'conflictResolution';
3838

39-
const conflictEditorHelp = nls.localize('userGuide', "Use the actions in the editor tool bar to either **undo** your changes or **overwrite** the content on disk with your changes");
39+
const conflictEditorHelp = nls.localize('userGuide', "Use the actions in the editor tool bar to either undo your changes or overwrite the content on disk with your changes");
4040

4141
// A handler for save error happening with conflict resolution actions
4242
export class SaveErrorHandler implements ISaveErrorHandler, IWorkbenchContribution {
@@ -118,7 +118,7 @@ export class SaveErrorHandler implements ISaveErrorHandler, IWorkbenchContributi
118118
if (this.activeConflictResolutionResource && this.activeConflictResolutionResource.toString() === model.getResource().toString()) {
119119
message = conflictEditorHelp;
120120
} else {
121-
message = nls.localize('staleSaveError', "Failed to save '{0}': The content on disk is newer. Click on **Compare** to compare your version with the one on disk.", paths.basename(resource.fsPath));
121+
message = nls.localize('staleSaveError', "Failed to save '{0}': The content on disk is newer. Please compare your version with the one on disk.", paths.basename(resource.fsPath));
122122

123123
actions.primary.push(new Action('workbench.files.action.resolveConflict', nls.localize('compareChanges', "Compare"), null, true, () => {
124124
if (!model.isDisposed()) {

0 commit comments

Comments
 (0)