microsoft / vscode-makecode

A vscode.dev compatible extension for Microsoft MakeCode
MIT License
33 stars 5 forks source link

Extension won't be reinstalled after deleting it manually under pxt_modules #157

Open Sheila111 opened 1 year ago

Sheila111 commented 1 year ago

Describe the bug Extension won't be reinstalled after deleting it manually under pxt_modules

Steps to reproduce the behavior

  1. Navigate to https://arcade.makecode.com/beta#
  2. Create a project and switch to JavaScript editor
  3. Click "Open in VS Code" under simulator
  4. Delete an extension file manually (eg. delete "darts") under pxt_modules
  5. Access the MakeCode Asset Explorer by clicking on the MakeCode icon in the Visual Studio Code action bar
  6. Click "Install Project Dependencies"
  7. Back to check whether this extension is reinstalled under pxt_modules

Actual behavior Extension won't be reinstalled after deleting it manually under pxt_modules

Expect behavior Extension will be reinstalled after deleting it manually under pxt_modules

Screenshot 1

Additional context 1.OS: Windows11 2.arcade version: 1.13.11 3.Microsoft MakeCode version: 8.6.14

riknoll commented 1 year ago

This only repros on projects that are opened via the "open in vscode" button. In other words, just projects that are stored in the virtual file system. Works just fine when you've opened a project in a folder and on desktop.

I'm guessing this is something to do with the virtual file system not properly checking if a file exists or something like that. I'll try and debug it locally!