Skip to content

Commit

Permalink
🌱 throw warning if we see multi-root setup (#17)
Browse files Browse the repository at this point in the history
Signed-off-by: David Zager <dzager@redhat.com>
  • Loading branch information
djzager authored Sep 25, 2024
1 parent f5d702d commit 8c76e8d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vscode/src/VsCodeExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ export class VsCodeExtension {
this.extensionContext,
);

// Check for multi-root workspace
if (vscode.workspace.workspaceFolders && vscode.workspace.workspaceFolders.length > 1) {
vscode.window.showWarningMessage(
"Konveyor does not currently support multi-root workspaces. Only the first workspace folder will be analyzed."

Check warning on line 23 in vscode/src/VsCodeExtension.ts

View workflow job for this annotation

GitHub Actions / vscode-tests

Insert `,`

Check warning on line 23 in vscode/src/VsCodeExtension.ts

View workflow job for this annotation

GitHub Actions / package-tests

Insert `,`
);
}

// Sidebar
context.subscriptions.push(
vscode.window.registerWebviewViewProvider(

Check warning on line 29 in vscode/src/VsCodeExtension.ts

View workflow job for this annotation

GitHub Actions / vscode-tests

Replace `⏎········"konveyor.konveyorGUIView",⏎········this.sidebar,⏎·······` with `"konveyor.konveyorGUIView",·this.sidebar,`

Check warning on line 29 in vscode/src/VsCodeExtension.ts

View workflow job for this annotation

GitHub Actions / package-tests

Replace `⏎········"konveyor.konveyorGUIView",⏎········this.sidebar,⏎·······` with `"konveyor.konveyorGUIView",·this.sidebar,`
Expand Down

0 comments on commit 8c76e8d

Please sign in to comment.