Skip to content

Commit 8d0f686

Browse files
authored
Merge pull request #46 from oslabs-beta/FL/Show-Panel-Bug
Fixed bug for Show Panel command
2 parents a977ebd + dd31fda commit 8d0f686

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/extension.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,18 @@ function activate(context: vscode.ExtensionContext) {
6060

6161
// Command to show panel if it is hidden
6262
const showPanel: vscode.Disposable = vscode.commands.registerCommand('myExtension.showPanel', () => {
63-
panel.reveal(columnToShowIn);
63+
if (!panel) {
64+
65+
showNotification({message: 'Please select root file of app', timeout: 3000});
66+
return;
67+
68+
} else {
69+
70+
panel.reveal(columnToShowIn);
71+
return;
72+
73+
}
74+
6475
});
6576

6677
context.subscriptions.push(pickFile, showPanel);

0 commit comments

Comments
 (0)