confluentinc / confluentinc/vscode

timeout-guard WriteableTmpDir.determine()

Open Beginner friendly
#3,417 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
34
Forks
17
Avg merge
1d 22h
Merged PRs (30d)
8

Description

Add a timeout to WriteableTmpDir.determine()'s per-directory probe (utils/file.ts:97-101)
— wrap the writeFile/deleteFile pair in a bounded timeout (e.g. Promise.race against a 1-2s
cap) so one bad candidate can't block activation indefinitely; treat a timeout the same as any
other per-directory failure and move on to the next candidate.

Contributor guide

Open the contributing guide

Research direction

Start in utils/file.ts at WriteableTmpDir.determine(), especially the per-directory probe at lines 97-101, and trace how writeFile and deleteFile failures advance to the next candidate. Bound that pair to the requested 1–2 second limit, treat expiry like other probe failures, and verify that activation continues when a candidate does not respond.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.