Add overflowWrap anywhere to force wrap long words (file paths) to avoid overflowing container

This commit is contained in:
Saoud Rizwan
2024-07-31 14:24:04 -04:00
parent dc97689836
commit c70e14c298
3 changed files with 105 additions and 72 deletions

View File

@@ -383,6 +383,7 @@ export class ClaudeDev {
})
.join("")
vscode.window.showTextDocument(vscode.Uri.file(filePath), { preview: false })
const { response, text } = await this.ask(
"tool",
JSON.stringify({
@@ -415,6 +416,7 @@ export class ClaudeDev {
}
await fs.mkdir(path.dirname(filePath), { recursive: true })
await fs.writeFile(filePath, newContent)
vscode.window.showTextDocument(vscode.Uri.file(filePath), { preview: false })
return `New file created and content written to ${filePath}`
}
} catch (error) {