Skip to content

Commit

Permalink
Check workspaceFolders before opening the chat
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxFSP committed Nov 8, 2024
1 parent 4ed949e commit ca01e8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion extensions/vscode/src/activation/activate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ export async function activateExtension(context: vscode.ExtensionContext) {
// Custom Layout settings that we want default for PearAPP
const setupPearAPPLayout = async (context: vscode.ExtensionContext) => {
// * always * move pearai extension to auxiliary bar (secondary side bar)
vscode.commands.executeCommand("workbench.action.movePearExtensionToAuxBar");
if(vscode.workspace.workspaceFolders){

await vscode.commands.executeCommand("workbench.action.movePearExtensionToAuxBar");

}

// set activity bar position to top
vscode.commands.executeCommand("workbench.action.activityBarLocation.top");
Expand Down

0 comments on commit ca01e8a

Please sign in to comment.