We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 048195b commit 632953cCopy full SHA for 632953c
scripts/lspArtifact.ts
@@ -59,9 +59,11 @@ export async function downloadLanguageServer(): Promise<void> {
59
60
// clear previous cached language server
61
try {
62
- fs.rmdirSync(resourcesDir, { recursive: true })
+ if (fs.existsSync(resourcesDir)) {
63
+ fs.rmdirSync(resourcesDir, { recursive: true })
64
+ }
65
} catch (e) {
- throw Error(`Failed to clean up language server`)
66
+ throw Error(`Failed to clean up language server ${resourcesDir}`)
67
}
68
69
await ensureDirectoryExists(tempDir)
0 commit comments