Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct spelling of Message in reloadMessaage in extensionsActions.ts and extensionsActions.test.ts #38698

Merged
merged 1 commit into from
Nov 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/vs/workbench/parts/extensions/browser/extensionsActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ export class ReloadAction extends Action {
get extension(): IExtension { return this._extension; }
set extension(extension: IExtension) { this._extension = extension; this.update(); }

reloadMessaage: string = '';
reloadMessage: string = '';
private throttler: Throttler;

constructor(
Expand All @@ -808,7 +808,7 @@ export class ReloadAction extends Action {
this.throttler.queue(() => {
this.enabled = false;
this.tooltip = '';
this.reloadMessaage = '';
this.reloadMessage = '';
if (!this.extension) {
return TPromise.wrap<void>(null);
}
Expand Down Expand Up @@ -837,23 +837,23 @@ export class ReloadAction extends Action {
// Requires reload to run the updated extension
this.enabled = true;
this.tooltip = localize('postUpdateTooltip', "Reload to update");
this.reloadMessaage = localize('postUpdateMessage', "Reload this window to activate the updated extension '{0}'?", this.extension.displayName);
this.reloadMessage = localize('postUpdateMessage', "Reload this window to activate the updated extension '{0}'?", this.extension.displayName);
return;
}

if (!isExtensionRunning && !isDisabled) {
// Requires reload to enable the extension
this.enabled = true;
this.tooltip = localize('postEnableTooltip', "Reload to activate");
this.reloadMessaage = localize('postEnableMessage', "Reload this window to activate the extension '{0}'?", this.extension.displayName);
this.reloadMessage = localize('postEnableMessage', "Reload this window to activate the extension '{0}'?", this.extension.displayName);
return;
}

if (isExtensionRunning && isDisabled) {
// Requires reload to disable the extension
this.enabled = true;
this.tooltip = localize('postDisableTooltip', "Reload to deactivate");
this.reloadMessaage = localize('postDisableMessage', "Reload this window to deactivate the extension '{0}'?", this.extension.displayName);
this.reloadMessage = localize('postDisableMessage', "Reload this window to deactivate the extension '{0}'?", this.extension.displayName);
return;
}
return;
Expand All @@ -863,7 +863,7 @@ export class ReloadAction extends Action {
// Requires reload to deactivate the extension
this.enabled = true;
this.tooltip = localize('postUninstallTooltip', "Reload to deactivate");
this.reloadMessaage = localize('postUninstallMessage', "Reload this window to deactivate the uninstalled extension '{0}'?", this.extension.displayName);
this.reloadMessage = localize('postUninstallMessage', "Reload this window to deactivate the uninstalled extension '{0}'?", this.extension.displayName);
return;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ suite('ExtensionsActions Test', () => {

assert.ok(testObject.enabled);
assert.equal('Reload to activate', testObject.tooltip);
assert.equal(`Reload this window to activate the extension 'a'?`, testObject.reloadMessaage);
assert.equal(`Reload this window to activate the extension 'a'?`, testObject.reloadMessage);
done();
});
});
Expand Down Expand Up @@ -1005,7 +1005,7 @@ suite('ExtensionsActions Test', () => {

assert.ok(testObject.enabled);
assert.equal('Reload to deactivate', testObject.tooltip);
assert.equal(`Reload this window to deactivate the uninstalled extension 'a'?`, testObject.reloadMessaage);
assert.equal(`Reload this window to deactivate the uninstalled extension 'a'?`, testObject.reloadMessage);
done();
});
});
Expand Down Expand Up @@ -1045,7 +1045,7 @@ suite('ExtensionsActions Test', () => {

assert.ok(testObject.enabled);
assert.equal('Reload to update', testObject.tooltip);
assert.equal(`Reload this window to activate the updated extension 'a'?`, testObject.reloadMessaage);
assert.equal(`Reload this window to activate the updated extension 'a'?`, testObject.reloadMessage);
done();

});
Expand Down Expand Up @@ -1082,7 +1082,7 @@ suite('ExtensionsActions Test', () => {

assert.ok(testObject.enabled);
assert.equal('Reload to deactivate', testObject.tooltip);
assert.equal(`Reload this window to deactivate the extension 'a'?`, testObject.reloadMessaage);
assert.equal(`Reload this window to deactivate the extension 'a'?`, testObject.reloadMessage);
done();
});
});
Expand Down Expand Up @@ -1116,7 +1116,7 @@ suite('ExtensionsActions Test', () => {

assert.ok(testObject.enabled);
assert.equal('Reload to activate', testObject.tooltip);
assert.equal(`Reload this window to activate the extension 'a'?`, testObject.reloadMessaage);
assert.equal(`Reload this window to activate the extension 'a'?`, testObject.reloadMessage);
done();
});
});
Expand Down Expand Up @@ -1155,7 +1155,7 @@ suite('ExtensionsActions Test', () => {

assert.ok(testObject.enabled);
assert.equal('Reload to activate', testObject.tooltip);
assert.equal(`Reload this window to activate the extension 'a'?`, testObject.reloadMessaage);
assert.equal(`Reload this window to activate the extension 'a'?`, testObject.reloadMessage);
done();
});
});
Expand Down