vscode icon indicating copy to clipboard operation
vscode copied to clipboard

extension get wrong resource in context key when right click a folder with subfolder

Open jianyexi opened this issue 11 months ago • 2 comments

For below folder structure 'builtIn\res' , if you right click on the 'builtIn' not 'bulitIn\res', then you use the 'Inspect Context Key' command to show the context , the 'resource' in the context keys is always 'builtIn\res' not 'builtIn' .

Image
  • VS Code Version:
  • OS Version: Version: 1.96.2 (user setup) Commit: fabdb6a30b49f79a7aba0f2ad9df9b399473380f Date: 2024-12-19T10:22:47.216Z Electron: 32.2.6 ElectronBuildId: 10629634 Chromium: 128.0.6613.186 Node.js: 20.18.1 V8: 12.8.374.38-electron.0 OS: Windows_NT x64 10.0.26100

Steps to Reproduce:

  1. run 'Inspect Context Key' command
  2. right click on a folder which contains a subfolder in the same row in file explorer
  3. check the 'resource' in context keys

jianyexi avatar Jan 14 '25 09:01 jianyexi

I think there's a duplicate bug for this somewhere, but I cannot find it at the moment. Do you see this if you disable compact folder?

lramos15 avatar Jan 14 '25 15:01 lramos15

I think there's a duplicate bug for this somewhere, but I cannot find it at the moment. Do you see this if you disable compact folder?

Just confirmed that this issue only applies to the compact folder

jianyexi avatar Jan 15 '25 03:01 jianyexi