-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switch to using temp file for test_ids #24054
Conversation
} catch (error) { | ||
// Handle the error when accessing the temp directory | ||
traceError('Error accessing temp directory:', error, ' Attempt to use extension root dir instead'); | ||
tempFileName = path.join(EXTENSION_ROOT_DIR, '.temp', tempName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to explicitly create the directory or does it automatically create on writeFile
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideas on how to test this manually or with a test case? Seems like I can't mock tmpdir to include it in a test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will show you a trick for a future PR
Co-authored-by: Karthik Nadig <[email protected]>
first step in work on microsoft#23279 --------- Co-authored-by: Karthik Nadig <[email protected]>
first step in work on #23279