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
After a binary file is renamed, a dialog box 'The file is either binary or uses an unsupported text encoding' appears out of the blue, if typescript-language-features is active:
Steps to Reproduce:
Make sure that typescript-language-features is active, e.g. by opening a .ts file.
Rename a binary file in Theia, such as a .jpg file.
The dialog box is opened immediately after the file is successfully renamed.
Nothing happens after choosing either 'Yes' or 'No' in the dialog.
Additional Information
Operating System: macOS Ventura, also confirmed on Windows 11 Pro, both Browser/Electron
Theia Version: 1.50, current master
The text was updated successfully, but these errors were encountered:
After the file is renamed, vscode.workspace.openTextDocument is called as a result of a call to UpdateImportsOnFileRenameHandler.getJsTsFileBeingMoved in typescript-language-features.
This eventually triggers the following code in Theia, which shows the dialog box:
if(awaitthis.shouldOpenAsText(nls.localize('theia/filesystem/fileResource/binaryTitle','The file is either binary or uses an unsupported text encoding.'))){
Bug Description:
After a binary file is renamed, a dialog box 'The file is either binary or uses an unsupported text encoding' appears out of the blue, if
typescript-language-features
is active:Steps to Reproduce:
typescript-language-features
is active, e.g. by opening a.ts
file..jpg
file.The dialog box is opened immediately after the file is successfully renamed.
Nothing happens after choosing either 'Yes' or 'No' in the dialog.
Additional Information
The text was updated successfully, but these errors were encountered: