Skip to content

Commit bbb4801

Browse files
Minor tweak in graph panel creation
1 parent 80b1537 commit bbb4801

File tree

1 file changed

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

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ export default async function activate(
2323
if (panel) {
2424
panel.reveal();
2525
} else {
26-
const columnToShowIn = vscode.window.activeTextEditor
27-
? vscode.ViewColumn.Beside
28-
: vscode.ViewColumn.Two;
2926
const foam = await foamPromise;
30-
panel = await createGraphPanel(foam, context, columnToShowIn);
27+
panel = await createGraphPanel(foam, context);
3128
const onFoamChanged = _ => {
3229
updateGraph(panel, foam);
3330
};
@@ -119,7 +116,7 @@ async function createGraphPanel(
119116
const panel = vscode.window.createWebviewPanel(
120117
'foam-graph',
121118
'Foam Graph',
122-
viewColumn ?? vscode.ViewColumn.Two,
119+
viewColumn ?? vscode.ViewColumn.Beside,
123120
{
124121
enableScripts: true,
125122
retainContextWhenHidden: true,

0 commit comments

Comments
 (0)