Skip to content

Commit

Permalink
fix(client): call bridgeRpc on demand in openInEditor function
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Feb 1, 2024
1 parent e10b952 commit 3da9850
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/client/src/composables/open-in-editor.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { useDevToolsBridgeRpc } from '@vue/devtools-core'

const bridgeRpc = useDevToolsBridgeRpc()

export function openInEditor(file: string) {
const bridgeRpc = useDevToolsBridgeRpc()
return bridgeRpc.openInEditor({
file,
})
Expand Down

0 comments on commit 3da9850

Please sign in to comment.