Skip to content

Commit

Permalink
dev: unfocus document on changed to other files (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin authored Mar 15, 2024
1 parent 61be2f7 commit 4aa60c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editors/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function startClient(context: ExtensionContext): Promise<void> {

window.onDidChangeActiveTextEditor((editor: TextEditor | undefined) => {
if (editor?.document.languageId !== "typst") {
return;
return commandActivateDoc(undefined);
}
return commandActivateDoc(editor);
});
Expand Down

0 comments on commit 4aa60c5

Please sign in to comment.