Skip to content

Commit 65aaf64

Browse files
fix(overmind-devtools-vscode): handle existing panel
1 parent ac02c0e commit 65aaf64

File tree

1 file changed

+5
-2
lines changed
  • packages/node_modules/overmind-devtools-vscode/src

1 file changed

+5
-2
lines changed

packages/node_modules/overmind-devtools-vscode/src/extension.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ export function activate(context: vscode.ExtensionContext) {
9393
</style>
9494
</head>
9595
`
96-
)
96+
),
97+
panel
9798
)
9899
})
99100
.catch(() => {
@@ -126,7 +127,9 @@ export function activate(context: vscode.ExtensionContext) {
126127
}
127128

128129
context.subscriptions.push(
129-
vscode.commands.registerCommand('overmind-devtools.start', startDevtools)
130+
vscode.commands.registerCommand('overmind-devtools.start', () =>
131+
startDevtools()
132+
)
130133
)
131134

132135
if (vscode.window.registerWebviewPanelSerializer) {

0 commit comments

Comments
 (0)