Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>workspace-managerNew to Visual Studio Code? Get it now.
workspace-manager

workspace-manager

Maor Yosef

|
217 installs
| (0) | Free
workspace manager for yarn
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

workspace-manager

Add commands to manage your workspace

Commands

workspace-manager.getFilePackage returns the package base path of the current opened file

For example:

for the following structure,

|-- packages
|   |-- package-a
|   |   |-- index.ts
|   |   |-- package.json
|   |-- package-b
|   |   |-- index.ts
|   |   |-- package.json
|-- package.json

when the active editor is on packages/package-a/index.ts, the result of getFilePackage will be <workspaceRoot>/packages/package-a

This command is useful for adding lunch scripts that needs to run on the package base path

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft