We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45f6530 commit 8164f18Copy full SHA for 8164f18
2 files changed
packages/polydev/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "polydev",
3
- "version": "1.4.0",
+ "version": "1.5.0",
4
"bin": "./bin/polydev",
5
"main": "./src/index.js",
6
"repository": "git@github.com:ericclemmons/polydev.git",
packages/polydev/src/middleware/notFound/index.js
@@ -1,3 +1,4 @@
+const { execSync } = require("child_process")
const { stripIndent } = require("common-tags")
const express = require("express")
const jetpack = require("fs-jetpack")
@@ -117,7 +118,7 @@ module.exports = express()
117
118
await waitOn({ resources: [filepath] }, undefined)
119
120
// Wait for the file to open
- await opn(`vscode://file/${filepath}`, { wait: false })
121
+ execSync(`code . -g ${filepath}`)
122
123
// Reload the requested URL
124
// ! Hopefully the router has been re-created by this point!
0 commit comments