Skip to content

Commit d774ade

Browse files
committed
rename donot-sync to do-not-sync
1 parent 2759576 commit d774ade

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/vs/code/node/cliProcessMain.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class Main {
8686
} else if (argv['list-extensions']) {
8787
await this.listExtensions(!!argv['show-versions'], argv['category']);
8888
} else if (argv['install-extension']) {
89-
await this.installExtensions(argv['install-extension'], !!argv['force'], !!argv['donot-sync']);
89+
await this.installExtensions(argv['install-extension'], !!argv['force'], !!argv['do-not-sync']);
9090
} else if (argv['uninstall-extension']) {
9191
await this.uninstallExtension(argv['uninstall-extension']);
9292
} else if (argv['locate-extension']) {
@@ -126,7 +126,7 @@ export class Main {
126126
extensions.forEach(e => console.log(getId(e.manifest, showVersions)));
127127
}
128128

129-
private async installExtensions(extensions: string[], force: boolean, donotSync: boolean): Promise<void> {
129+
private async installExtensions(extensions: string[], force: boolean, doNotSync: boolean): Promise<void> {
130130
const failed: string[] = [];
131131
const installedExtensionsManifests: IExtensionManifest[] = [];
132132
if (extensions.length) {
@@ -135,7 +135,7 @@ export class Main {
135135

136136
for (const extension of extensions) {
137137
try {
138-
const manifest = await this.installExtension(extension, force, donotSync);
138+
const manifest = await this.installExtension(extension, force, doNotSync);
139139
if (manifest) {
140140
installedExtensionsManifests.push(manifest);
141141
}
@@ -150,15 +150,15 @@ export class Main {
150150
return failed.length ? Promise.reject(localize('installation failed', "Failed Installing Extensions: {0}", failed.join(', '))) : Promise.resolve();
151151
}
152152

153-
private async installExtension(extension: string, force: boolean, donotSync: boolean): Promise<IExtensionManifest | null> {
153+
private async installExtension(extension: string, force: boolean, doNotSync: boolean): Promise<IExtensionManifest | null> {
154154
if (/\.vsix$/i.test(extension)) {
155155
extension = path.isAbsolute(extension) ? extension : path.join(process.cwd(), extension);
156156

157157
const manifest = await getManifest(extension);
158158
const valid = await this.validate(manifest, force);
159159

160160
if (valid) {
161-
return this.extensionManagementService.install(URI.file(extension), donotSync).then(id => {
161+
return this.extensionManagementService.install(URI.file(extension), doNotSync).then(id => {
162162
console.log(localize('successVsixInstall', "Extension '{0}' was successfully installed.", getBaseLabel(extension)));
163163
return manifest;
164164
}, error => {
@@ -205,7 +205,7 @@ export class Main {
205205
}
206206
console.log(localize('updateMessage', "Updating the extension '{0}' to the version {1}", id, extension.version));
207207
}
208-
await this.installFromGallery(id, extension, donotSync);
208+
await this.installFromGallery(id, extension, doNotSync);
209209
return manifest;
210210
}));
211211
}
@@ -227,11 +227,11 @@ export class Main {
227227
return true;
228228
}
229229

230-
private async installFromGallery(id: string, extension: IGalleryExtension, donotSync: boolean): Promise<void> {
230+
private async installFromGallery(id: string, extension: IGalleryExtension, doNotSync: boolean): Promise<void> {
231231
console.log(localize('installing', "Installing extension '{0}' v{1}...", id, extension.version));
232232

233233
try {
234-
await this.extensionManagementService.installFromGallery(extension, donotSync);
234+
await this.extensionManagementService.installFromGallery(extension, doNotSync);
235235
console.log(localize('successInstall', "Extension '{0}' v{1} was successfully installed.", id, extension.version));
236236
} catch (error) {
237237
if (isPromiseCanceledError(error)) {

src/vs/platform/environment/node/argv.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export interface ParsedArgs {
7272
remote?: string;
7373
'disable-user-env-probe'?: boolean;
7474
'force'?: boolean;
75-
'donot-sync'?: boolean;
75+
'do-not-sync'?: boolean;
7676
'force-user-env'?: boolean;
7777
'sync'?: 'on' | 'off';
7878

@@ -188,7 +188,7 @@ export const OPTIONS: OptionDescriptions<Required<ParsedArgs>> = {
188188
'file-chmod': { type: 'boolean' },
189189
'driver-verbose': { type: 'boolean' },
190190
'force': { type: 'boolean' },
191-
'donot-sync': { type: 'boolean' },
191+
'do-not-sync': { type: 'boolean' },
192192
'trace': { type: 'boolean' },
193193
'trace-category-filter': { type: 'string' },
194194
'trace-options': { type: 'string' },

0 commit comments

Comments
 (0)