Workspace Flag
Workspace Flag shows a project-specific label in the left side of the VS Code status bar.
What It Does
Open a workspace and Workspace Flag shows a clickable status bar item in the lower-left corner:
点击设置项目标签 when no label exists yet
<your label> after you save one
Click the status bar item to edit the label. Submitting an empty value clears it.
Storage
Workspace Flag stores the label inside your workspace:
- Single-folder workspace:
<workspace-root>/WorkSpace/workspace-flag/label.json
- Saved multi-root workspace:
<workspace-file-directory>/WorkSpace/workspace-flag/label.json
The stored JSON is:
{
"label": "Agent Main Repo"
}
Run Locally
npm install
npm test
Then start an Extension Development Host from .vscode/launch.json or run the Run Workspace Flag launch target in VS Code.
Publish To VS Code Marketplace
This extension is configured for:
- Publisher ID:
MrLeilei
- Repository:
https://github.com/MrWLL/WorkspaceFlag.git
Typical publish flow:
npm install -g @vscode/vsce
vsce login MrLeilei
npm test
npm run package:vsix
vsce publish
If you prefer manual upload, package first and then upload the generated .vsix from the Marketplace publisher management page.
| |