vscode-coder icon indicating copy to clipboard operation
vscode-coder copied to clipboard

If the selected folder (from recents) doesn't exist, extension says workspace doesn't exist

Open mafredri opened this issue 3 years ago • 4 comments

This error is a bit confusing, I think it should say folder does not exist (since workspace is up and running):

Screenshot 2023-01-18 at 12 22 22

mafredri avatar Jan 18 '23 10:01 mafredri

How do you reproduce this? Guessing this simply shows the error message from the API but would have to dig in

jsjoeio avatar Jan 18 '23 15:01 jsjoeio

I think this would reproduce it:

  • In workspace: mkdir ~/deleted
  • In VSCode, open workspace, select File -> Open folder -> ~/deleted
  • Close VSCode
  • In workspace: rm -rf ~/deleted
  • Connect via VSCode again, select the /home/coder/deleted path (if this is the only recent folder, you won't even be given an option to choose the path)

mafredri avatar Jan 18 '23 15:01 mafredri

Ahh, interesting

kylecarbs avatar Jan 18 '23 16:01 kylecarbs

Nice! I guess we could look at the error and then check if the folder doesn't exist before assuming the Workspace doesn't exist, right?

jsjoeio avatar Jan 18 '23 18:01 jsjoeio

closing because of age. Please reopen or file a new issue if the issue still exists.

matifali avatar Aug 30 '24 14:08 matifali