Skip to content

Commit

Permalink
chore: upgrade reactive-vscode to 0.2.0-beta.4
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Jul 13, 2024
1 parent 82af1e1 commit 2a31a3f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,6 @@
"@types/vscode": "~1.89.0",
"get-port-please": "^3.1.2",
"ovsx": "^0.9.1",
"reactive-vscode": "0.2.0-beta.3"
"reactive-vscode": "0.2.0-beta.4"
}
}
4 changes: 2 additions & 2 deletions packages/vscode/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ export function useCommands() {
}

const { start, showTerminal } = useDevServer(project)
await start()
await showTerminal()
start()
showTerminal()

const { retry } = usePreviewWebview()
setTimeout(retry, 3000)
Expand Down
9 changes: 6 additions & 3 deletions packages/vscode/src/configs.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { ConfigType } from 'reactive-vscode'
import { defineConfigs } from 'reactive-vscode'
import { defineConfigs, ref } from 'reactive-vscode'

export const {
'force-enabled': forceEnabled,
'port': configuredPort,
'port': configuredPortInitial,
'annotations': displayAnnotations,
'preview-sync': previewSync,
'preview-sync': previewSyncInitial,
include,
exclude,
} = defineConfigs('slidev', {
Expand All @@ -16,3 +16,6 @@ export const {
'include': Object as ConfigType<string[]>,
'exclude': String,
})

export const configuredPort = ref(configuredPortInitial)
export const previewSync = ref(previewSyncInitial)
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2a31a3f

Please sign in to comment.