There was an error while loading. Please reload this page.
2 parents a977ebd + dd31fda commit 8d0f686Copy full SHA for 8d0f686
src/extension.ts
@@ -60,7 +60,18 @@ function activate(context: vscode.ExtensionContext) {
60
61
// Command to show panel if it is hidden
62
const showPanel: vscode.Disposable = vscode.commands.registerCommand('myExtension.showPanel', () => {
63
-panel.reveal(columnToShowIn);
+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
72
73
+}
74
75
});
76
77
context.subscriptions.push(pickFile, showPanel);
0 commit comments