Skip to content

Commit

Permalink
fix: should active extension by webview
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Oct 14, 2021
1 parent cee84f7 commit 4549fb8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ export async function activate(context: vscode.ExtensionContext) {

function tryActivate() {

if (!vscode.window.activeTextEditor)
if (!vscode.window.activeTextEditor) {
// onWebviewPanel:preview
doActivate(context);
stopCheck.dispose();
return;
}

const currentlangId = vscode.window.activeTextEditor.document.languageId;
if (currentlangId === 'vue') {
Expand Down

0 comments on commit 4549fb8

Please sign in to comment.