Code not being opened when calling edit. No errors in the log 😱 #206
Answered
by
johnlindquist
kentcdodds
asked this question in
Errors
-
|
Really no idea what's going on, but here's my script: // Menu: Open Project
// Description: Opens a project in code
// Shortcut: cmd shift .
async function getProjects(parentDir) {
const codeDir = await ls(parentDir)
const choices = []
for (const dir of codeDir) {
if (dir.includes('node_modules')) continue
const fullPath = path.join(parentDir, dir)
if (await isFile(path.join(fullPath, 'package.json'))) {
choices.push({
name: dir,
value: fullPath,
description: fullPath,
})
} else {
choices.push(...(await getProjects(fullPath)))
}
}
return choices
}
const choice = await arg('Which project?', async () => [
...(await getProjects('~/code')),
...(await getProjects('~/Desktop')),
])
await edit(choice)This worked up until a day or two ago and now vscode isn't opening that project. The log has: Interestingly kit just stays open showing this indefinitely: |
Beta Was this translation helpful? Give feedback.
Answered by
johnlindquist
Apr 28, 2021
Replies: 1 comment 4 replies
-
|
I'll get that sorted this afternoon. I rushed out a build yesterday trying to fix an "Open with Atom" bug which touched on that logic. I'll figure it out |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
kentcdodds
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I'll get that sorted this afternoon. I rushed out a build yesterday trying to fix an "Open with Atom" bug which touched on that logic. I'll figure it out