We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ebab44 commit cc7fe60Copy full SHA for cc7fe60
1 file changed
src/appDiscovery.ts
@@ -62,7 +62,13 @@ async function findAllFastAPIFiles(
62
fileName === "conftest.py"
63
)
64
continue
65
- const content = await vscode.workspace.fs.readFile(uri)
+ let content: Uint8Array
66
+ try {
67
+ content = await vscode.workspace.fs.readFile(uri)
68
+ } catch {
69
+ log(`Skipping unreadable file: ${uri.toString()}`)
70
+ continue
71
+ }
72
if (new TextDecoder().decode(content).includes("FastAPI(")) {
73
results.push(uri.toString())
74
}
0 commit comments