Skip to content

Commit 8a6551f

Browse files
updating graph when file change detected also for web extension
1 parent 88ae96c commit 8a6551f

File tree

1 file changed

+1
-1
lines changed
  • packages/foam-vscode/src/features/panels

1 file changed

+1
-1
lines changed

packages/foam-vscode/src/features/panels/dataviz.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default async function activate(
3939
});
4040

4141
vscode.window.onDidChangeActiveTextEditor(e => {
42-
if (e?.document?.uri?.scheme === 'file') {
42+
if (e?.document?.uri?.scheme !== 'untitled') {
4343
const note = foam.workspace.get(fromVsCodeUri(e.document.uri));
4444
if (isSome(note)) {
4545
panel.webview.postMessage({

0 commit comments

Comments
 (0)