check file type& file size in remote before fetching (large) files #158317
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
file-io
File I/O
remote
Remote system operations issues
vscode will fetch the remote file once you select it, but if the file is very large vscode will hang during the downloading process, and only results in a warning of "The file will not be displayed in the editor because it is either binary or uses an unsupported text encoding.", this behavour may not be what user want as described in microsoft/vscode-remote-release#6517 and microsoft/vscode-remote-release#4696. And even worse the downloading thread will not be canceled even if user close the file tab.
vscode should check the file type&size in the server side, and start fetch file only after user choose to "open it anyway"
The text was updated successfully, but these errors were encountered: