Atelier File Label
Status bar items for layouts that hide the tab bar ("workbench.editor.showTabs": "none") and the title bar, so you still see what they used to tell you:
proj master* … app.ts M Ln 12, Col 4 +12 −3 Spaces: 4 …
| Item |
Where |
Click |
File name of the active editor, styled like the editor title with "workbench.editor.showTabs": "single" |
Right, just left of Ln/Col |
Quick Open |
Lines added / removed in the active file since the last commit, unsaved edits included, counted like git diff --numstat HEAD. A file not committed yet counts as all added |
Right, just after Ln/Col |
Open Changes |
| Workspace name, which the title bar used to show |
Left, just before the branch |
Open Recent |
Any of them can be hidden by right-clicking the status bar.
File name: what it copies from a tab
| Tab behavior |
Here |
Name (app.ts, Settings, app.ts (Working Tree)) |
Same text |
Git colors and letters (M, U, A, D, R, C, T, I, ! for conflicts) |
Same colors and letters, from the built-in Git extension |
Problem count (2, 9+) in red (errors) or yellow (warnings) |
Left out: the status bar already shows problems |
| Several at once: color from the most important one, and the read-only lock replaces the letters |
Same rules as VS Code |
| Red and struck through when the file was deleted on disk |
Red here; the strike-through needs the CSS below |
| Lock for read-only files |
Same lock icon |
| Italic for preview editors |
Needs the CSS below |
| Hover: full path, "(preview)", and the decoration text |
Same |
| Click: Quick Open |
Same |
workbench.editor.decorations.colors / .badges |
Respected |
Not copied (no API for them): decorations from other extensions, a file made read-only for the session with Toggle Active Editor Read-only, the tab's right-click menu, double-click to pin, middle-click to close, and dragging.
Italic and strike-through (optional CSS)
Status bar items can't be styled by an extension. With a custom CSS loader such as Custom CSS and JS Loader, these rules add them. The extension ends the name item's accessibility label with (preview), (deleted) or (preview, deleted) for them to match:
.monaco-workbench .part.statusbar [id="jayaswalprateek.atelier-file-label.name"][aria-label$="(preview)"] .statusbar-item-label,
.monaco-workbench .part.statusbar [id="jayaswalprateek.atelier-file-label.name"][aria-label$="(preview, deleted)"] .statusbar-item-label {
font-style: italic;
}
.monaco-workbench .part.statusbar [id="jayaswalprateek.atelier-file-label.name"][aria-label$="deleted)"] .statusbar-item-label {
text-decoration: line-through;
}
/* Badge right next to the name. */
.monaco-workbench .part.statusbar [id="jayaswalprateek.atelier-file-label.badge"] {
margin-left: -4px;
}
They depend on VS Code's internal DOM, so a VS Code release can break them; the label itself keeps working.
License
MIT