-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Regression - 1.34 Insiders tries to open non-existent files in /.vscode folder #72891
Comments
@sandy081 possibly related to using the file service for configuration? |
@gjsjohnmurray that should be fine though as both |
My Maybe related, when Insiders opens files served by my extension it appears to succeed (i.e. no errors) but the files display as though they are 0-byte ones. I can reproduce this with the RemoteFS extension connecting using FTP to a couple of different public sites. No such problems with the current 1.33.1 release. I'm about to open a new issue about this. |
@gjsjohnmurray you do not need to notify the user about errors, this is taken care of by the file service in VSCode and in most cases even better because it can put the error in context (e.g. when you follow a link to a file that does not exist we can show an error with a button to create this file). Do you have a sample I can try to reproduce the second issue you are talking about? |
I can reproduce the many errors popping up on startup: via the steps in #72909 This is not a very nice user experience, I have to agree. |
IMO, it is totally fine to read the files even if they do not exist.. extension do not need to log or notify such as the caller of the API (in this case me) should handle it. @bpasero May I know who are logging/prompting these errors? |
@sandy081 actually turns out this is coming from the extension itself and not from us: |
I'm closing this. I have revised my extension so it no longer outputs these messages. The author of Remote FS might do likewise in the future. |
A FileSystemProvider extension that provides a /.vscode folder containing only a settings.json file also gets asked by 1.34.0-insider to readFile non-existent files named tasks.json and launch.json from that folder. This does not happen on 1.33.1
Steps to Reproduce:
stat
method of theMemFS
class in src/fileSystemProvider.ts (code pointer) add a logpoint with the following message:stat {uri.path}
readFile
method (code pointer) add a logpoint with the following message:readFile {uri.path}
MemFS: Setup Workspace
followed by the commandMemFS: Create Files
Debug Console output from 1.34.0-insider is:
Using 1.33.1 the same procedure gives:
Notice how 1.33.1 stats the .vscode folder and its settings.json file before reading the file, whereas 1.34-insider reads that file (twice) and attempts to read the non-existent files tasks.json and launch.json (again, twice), only issuing stat calls on the files afterwards.
VS Code version: Code - Insiders 1.34.0-insider (0fde661, 2019-04-25T05:24:52.804Z)
OS version: Windows_NT x64 10.0.16299
The text was updated successfully, but these errors were encountered: