Do not delete extensions, just disable them

This commit is contained in:
Shivam Mathur
2021-08-24 16:14:52 +05:30
parent f6b4601c63
commit 5402397d9f
10 changed files with 44 additions and 79 deletions

View File

@ -21,7 +21,7 @@ export async function addExtensionDarwin(
switch (true) {
// match :extension
case /^:/.test(ext_name):
remove_script += '\nremove_extension ' + ext_name.slice(1);
remove_script += '\ndisable_extension ' + ext_name.slice(1);
return;
// match extensions for compiling from source
case /.+-.+\/.+@.+/.test(extension):
@ -115,7 +115,7 @@ export async function addExtensionWindows(
switch (true) {
// Match :extension
case /^:/.test(ext_name):
remove_script += '\nRemove-Extension ' + ext_name.slice(1);
remove_script += '\nDisable-Extension ' + ext_name.slice(1);
break;
// match 5.3blackfire...8.0blackfire
// match 5.3blackfire-(semver)...8.0blackfire-(semver)
@ -227,7 +227,7 @@ export async function addExtensionLinux(
switch (true) {
// Match :extension
case /^:/.test(ext_name):
remove_script += '\nremove_extension ' + ext_name.slice(1);
remove_script += '\ndisable_extension ' + ext_name.slice(1);
return;
// match extensions for compiling from source
case /.+-.+\/.+@.+/.test(extension):