-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
Milestone
Description
Refs: #54721
Complexity: 2
You can now disable individual extension using from command line using the argument --disable-extension
code --disable-extension pub.ashould disable extensionpub.acode --disable-extension pub.a --disable-extension pub.bshould disablepub.aandpub.bextensions
You can also disable extensions by using the command _workbench.enterWorkspace.
- Write a simple extension with following code
import * as vscode from 'vscode';
export function activate(context: vscode.ExtensionContext) {
vscode.commands.registerCommand('test.openWorkspace', () => {
vscode.commands.executeCommand('_workbench.enterWorkspace', vscode.Uri.file(`${sampleWorkspace}`), ['pub.a', 'pub.b']);
});
}
// this method is called when your extension is deactivated
export function deactivate() {
}-
Above command opens the workspace you provided with the given extensions disabled.
Note: Workspace to be provided should becode-workspacefile -
If the extensions to disable are not running in the window you are running the command, then this will open the workspace without reloading the window.
Reactions are currently unavailable