sadesyllas / vscode-workspace-switcher

Easily switch between workspaces
GNU General Public License v3.0
28 stars 8 forks source link

Globs containing globstar (**) break extension #30

Open timlogemann opened 4 years ago

timlogemann commented 4 years ago

It's not possible to use some glob like ~/projects/**/ because it results in every command displaying the message: command 'vscodeWorkspaceSwitcher.switchWorkspace' not found.

Though it is possible to use multiple globs in the same root directory like the following example: ['~/projects/*', '~projects/*/*'. ~/projects/*/*/*']

Sadly each added nested path significantly increases the load time, which is very likely due to directories such as node_modules containing lots and lots of subdirectories. But I guess the option of ignoring specific globs is an separate issue in itself.

sadesyllas commented 3 years ago

My current setting is:

"vscodeWorkspaceSwitcher.paths": [
  "~/VSCodeWorkspaces/**"
]

and I never had any issues with it.

Yes, ignoring paths is feature that I will consider adding but for what you are reporting, could you please do the following?

  1. Open Help -> Toggle Developer Tools.
  2. Clear the console.
  3. Try to use whatever command is failing.
  4. In case any errors are shown, provide the log in this issue.

This could help me understand what is going on, as I have never encountered the reported behavior.