I'm not sure if this is possible.
Particularly adding custom CSS to VS Code via an extension. From the documentation, it seems like it might not be. https://code.visualstudio.com/api/extension-capabilities/overview says:
However, we also impose restrictions upon extensions to ensure the stability and performance of VS Code. For example, extensions cannot access the DOM of VS Code UI.
You could, however, take an approach similar to the vscode-custom-css extension and literally modify the installed VS Code files.
If you do that, then the next step is:
If the window.titleBarStyle
setting is set to "custom"
, then you can look into messing around with the CSS/HTML for the HTML element with id workbench.parts.titlebar
. For example, adding CSS like
#workbench\.parts\.titlebar {
display: none;
}
I'm not sure if it's possible for an extension to change the window.titleBarStyle
setting, but you can look into this part of the VS Code API docs: https://code.visualstudio.com/api/references/vscode-api#WorkspaceConfiguration (see also the workspace.getConfiguration
method).