This extension adds an entry to the status bar that shows the name of the currently active file. To exercise multi root APIs it:
- only enables itself when more than one
WorkspaceFolder
is opened usingworkspace.workspaceFolders
API - shows the name of the
WorkspaceFolder
the file is from (if any) usingworkspace.getWorkspaceFolder()
API - updates when there are changes to the number of
WorkspaceFolder
via theworkspace.onDidChangeWorkspaceFolders()
API - registers a setting
multiRootSample.statusColor
with a scope ofresource
to configure a color perWorkspaceFolder
to use for the status bar item
- Open this example in VS Code
npm install
npm run compile
F5
to start debugging