drop install-vsix altogether
This commit is contained in:
parent
b3f39bf739
commit
dc172cddf8
3 changed files with 2 additions and 11 deletions
|
@ -56,8 +56,8 @@ class Main {
|
|||
return this.listExtensions();
|
||||
} else if (argv['install-extension']) {
|
||||
const arg = argv['install-extension'];
|
||||
const ids: string[] = typeof arg === 'string' ? [arg] : arg;
|
||||
return this.installExtension(ids);
|
||||
const args: string[] = typeof arg === 'string' ? [arg] : arg;
|
||||
return this.installExtension(args);
|
||||
} else if (argv['uninstall-extension']) {
|
||||
const arg = argv['uninstall-extension'];
|
||||
const ids: string[] = typeof arg === 'string' ? [arg] : arg;
|
||||
|
|
|
@ -8,7 +8,6 @@ import * as platform from 'vs/base/common/platform';
|
|||
import product from 'vs/platform/product';
|
||||
import pkg from 'vs/platform/package';
|
||||
import { serve, Server, connect } from 'vs/base/parts/ipc/node/ipc.net';
|
||||
import { coalesce } from 'vs/base/common/arrays';
|
||||
import { TPromise } from 'vs/base/common/winjs.base';
|
||||
import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection';
|
||||
import { SyncDescriptor } from 'vs/platform/instantiation/common/descriptors';
|
||||
|
@ -104,18 +103,12 @@ function main(server: Server, initData: ISharedProcessInitData): void {
|
|||
const instantiationService2 = instantiationService.createChild(services);
|
||||
|
||||
instantiationService2.invokeFunction(accessor => {
|
||||
const environmentService = accessor.get(IEnvironmentService);
|
||||
const extensionManagementService = accessor.get(IExtensionManagementService);
|
||||
const channel = new ExtensionManagementChannel(extensionManagementService);
|
||||
server.registerChannel('extensions', channel);
|
||||
|
||||
// clean up deprecated extensions
|
||||
(extensionManagementService as ExtensionManagementService).removeDeprecatedExtensions();
|
||||
|
||||
// install vsix
|
||||
const vsixArg = environmentService.args['install-vsix'];
|
||||
const vsix = typeof vsixArg === 'string' ? [vsixArg] : vsixArg;
|
||||
coalesce(vsix || []).forEach(vsix => extensionManagementService.install(vsix));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -31,7 +31,6 @@ export interface ParsedArgs extends minimist.ParsedArgs {
|
|||
'list-extensions'?: boolean;
|
||||
'install-extension'?: string | string[];
|
||||
'uninstall-extension'?: string | string[];
|
||||
'install-vsix'?: string | string[];
|
||||
}
|
||||
|
||||
const options: minimist.Opts = {
|
||||
|
@ -43,7 +42,6 @@ const options: minimist.Opts = {
|
|||
'extensionTestsPath',
|
||||
'install-extension',
|
||||
'uninstall-extension',
|
||||
'install-vsix',
|
||||
'debugBrkPluginHost',
|
||||
'debugPluginHost'
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue