File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/data-extensions-editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -339,6 +339,7 @@ async function autoCreateExtensionPack(
339339 }
340340
341341 const existingExtensionPackPaths = extensionPacksInfo [ packName ] ;
342+ // If there is already an extension pack with this name, use it if it is valid
342343 if ( existingExtensionPackPaths ?. length === 1 ) {
343344 let extensionPack : ExtensionPack ;
344345 try {
@@ -358,7 +359,11 @@ async function autoCreateExtensionPack(
358359 }
359360
360361 return extensionPack ;
361- } else if ( existingExtensionPackPaths ?. length > 1 ) {
362+ }
363+
364+ // If there is already an existing extension pack with this name, but it resolves
365+ // to multiple paths, then we can't use it
366+ if ( existingExtensionPackPaths ?. length > 1 ) {
362367 void showAndLogErrorMessage (
363368 logger ,
364369 `Extension pack ${ packName } resolves to multiple paths` ,
You can’t perform that action at this time.
0 commit comments