You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tests): "Unable to read file 's3-read-test:..." #4252
Problem:
Lots of "Unable to read file" noise in the test logs:
FileViewerManager
✔ prompts if file size is greater than 4MB
✔ throws if the user cancels a download
opens text files
No file system provider found for resource 's3-edit-test:/us-west-2/bucket-name/big-image.jpg'
✔ opens a new editor if no document exists
✔ closes the read-only tab when opening in edit mode (70ms)
Unable to read file 's3-read-test:/us-west-2/bucket-name/test1.txt' (Error): Error: Unable to read file 's3-read-test:/us-west-2/bucket-name/test1.txt' (Error)
at h.doReadFileStream (vscode-file://…)
at async p.doRead (vscode-file://…)
at async p.readStream (vscode-file://…)
at async wr.resolveFromFile (vscode-file://…)
✔ re-uses tabs in edit mode when opening as read-only
✔ can open in edit mode, showing a warning with two options
Unable to read file 's3-edit-test:/us-west-2/bucket-name/test1.txt' (Error): Error: Unable to read file 's3-edit-test:/us-west-2/bucket-name/test1.txt' (Error)
at h.doReadFileStream (vscode-file://…)
at async p.doRead (vscode-file://…)
at async p.readStream (vscode-file://…)
at async wr.resolveFromFile (vscode-file://…)
✔ re-uses an editor if already opened, focusing it (75ms)
Unable to read file 's3-read-test:/us-west-2/bucket-name/test1.txt' (Error): Error: Unable to read file 's3-read-test:/us-west-2/bucket-name/test1.txt' (Error)
at h.doReadFileStream (vscode-file://…)
at async p.doRead (vscode-file://…)
at async p.readStream (vscode-file://…)
at async wr.resolveFromFile (vscode-file://…)
Solution:
- Use one VirualFileSystem provider instead of re-creating for each test.
- Use `fileViewerManager.closeEditors()` instead of `closeAllEditors()`
(which is unreliable).
- Remove the "case-insensitive" test because it's a vscode feature, we
don't enhance it.
0 commit comments