Skip to content

Commit 8f530f7

Browse files
committed
fix(vscode): should replace ${port} in dev command
1 parent e5fb34e commit 8f530f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vscode/src/composables/useDevServer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function useDevServer(project: SlidevProject) {
3737
env.remoteName != null ? '--remote' : '',
3838
].filter(Boolean).join(' ')
3939
// eslint-disable-next-line no-template-curly-in-string
40-
sendText(devCommand.value.replaceAll('${args}', args))
40+
sendText(devCommand.value.replaceAll('${args}', args).replaceAll('${port}', `${port.value}`))
4141
}
4242

4343
function stop() {

0 commit comments

Comments
 (0)