Fix extensions disable/enable commands not awaiting handler (#12915)

This commit is contained in:
N. Taylor Mullen
2025-11-11 20:31:46 -08:00
committed by GitHub
parent d3cf28eb4b
commit cab9b1f370
2 changed files with 6 additions and 6 deletions
@@ -76,8 +76,8 @@ export const disableCommand: CommandModule = {
} }
return true; return true;
}), }),
handler: (argv) => { handler: async (argv) => {
handleDisable({ await handleDisable({
name: argv['name'] as string, name: argv['name'] as string,
scope: argv['scope'] as string, scope: argv['scope'] as string,
}); });
@@ -32,9 +32,9 @@ export async function handleEnable(args: EnableArgs) {
try { try {
if (args.scope?.toLowerCase() === 'workspace') { if (args.scope?.toLowerCase() === 'workspace') {
extensionManager.enableExtension(args.name, SettingScope.Workspace); await extensionManager.enableExtension(args.name, SettingScope.Workspace);
} else { } else {
extensionManager.enableExtension(args.name, SettingScope.User); await extensionManager.enableExtension(args.name, SettingScope.User);
} }
if (args.scope) { if (args.scope) {
debugLogger.log( debugLogger.log(
@@ -81,8 +81,8 @@ export const enableCommand: CommandModule = {
} }
return true; return true;
}), }),
handler: (argv) => { handler: async (argv) => {
handleEnable({ await handleEnable({
name: argv['name'] as string, name: argv['name'] as string,
scope: argv['scope'] as string, scope: argv['scope'] as string,
}); });