You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will need to add a variable to the HTML files to set the title to the app name (login.html, error.html).
And will need to patch for the VS Code HTML (workbench.html, workbench-dev.html) although not entirely sure how the titles there are set. see below, we just need to set appName somehow
Good point, if we do just the suffix we might get away with not even having to patch anything, but if we want to change the order we will have to patch for sure.
I am not sure if we should make that change here though, it sounds useful enough to go into VS Code core, if they are willing to accept such a patch. Generally we want to avoid drifting from VS Code too far, especially for things that are not bugfixes.
I went to file a feature request with VSCode and learned they have an entire setting suite for setting the title bar!
I think that armed with this knowledge and the change to make --app-name apply everywhere my problem will be fixed. Thanks for the push to file upstream.
It looks like right now when you use the ${appName} variable it is hard coded to code-server which I now understand in hindsight what was being discussed in #5935 (comment)
So we just need this appName variable to be configurable. It might require patching, not entirely sure where it comes from. Maybe it pulls it from the product.json and we need to patch it to use a flag instead, so we can then pass it in from code-server.
localize('appName', "`${appName}`: e.g. VS Code.")
Summary:
The ${appName} variable is not an environment variable or CLI option. It's a build-time constant from the product configuration (product.json) that gets injected into the application during the build process. The value represents the full product name (e.g., "Visual Studio Code", "Code - OSS Dev", etc.) and is accessed through the IProductService service.
Due to increases in supply chain attacks and vulnerability discoveries, I am now doing all of my dev work inside docker containers using code-server, but now my browser tab bar is full of tabs that are all named exactly the same which is quite problematic for productivity (I spend a lot of time searching for the right tab).
This feels like an easy fix, but maybe it is more complicated than it looks at first glance?
Activity
MicahZoltu commentedon Mar 3, 2026
code-asher commentedon Mar 4, 2026
Good point, if we do just the suffix we might get away with not even having to patch anything, but if we want to change the order we will have to patch for sure.
I am not sure if we should make that change here though, it sounds useful enough to go into VS Code core, if they are willing to accept such a patch. Generally we want to avoid drifting from VS Code too far, especially for things that are not bugfixes.
MicahZoltu commentedon Mar 5, 2026
MicahZoltu commentedon Mar 5, 2026
I went to file a feature request with VSCode and learned they have an entire setting suite for setting the title bar!
I think that armed with this knowledge and the change to make
--app-nameapply everywhere my problem will be fixed. Thanks for the push to file upstream.It looks like right now when you use the
${appName}variable it is hard coded tocode-serverwhich I now understand in hindsight what was being discussed in #5935 (comment)code-asher commentedon Mar 11, 2026
Ohh that is really good to know! Nice find. Now I understand the
appNamecomment as well hahahacode-asher commentedon Mar 11, 2026
So we just need this
appNamevariable to be configurable. It might require patching, not entirely sure where it comes from. Maybe it pulls it from theproduct.jsonand we need to patch it to use a flag instead, so we can then pass it in from code-server.MicahZoltu commentedon Mar 11, 2026
According to my LLM:
Source of ${appName}
The
${appName}variable is derived from the product configuration, specifically fromproductService.nameLong.Key findings:
Definition in code (
src/vs/workbench/browser/parts/titlebar/windowTitle.ts:361):Interface definition (
src/vs/base/common/product.ts:73-74):Product configuration source (
src/vs/platform/product/common/product.ts):nameLongvalue comes from theIProductConfigurationinterfaceproduct.jsonat build timeCode - OSS Dev'Settings UI documentation (
src/vs/workbench/browser/workbench.contribution.ts:807):Summary:
The
${appName}variable is not an environment variable or CLI option. It's a build-time constant from the product configuration (product.json) that gets injected into the application during the build process. The value represents the full product name (e.g., "Visual Studio Code", "Code - OSS Dev", etc.) and is accessed through theIProductServiceservice.MicahZoltu commentedon May 9, 2026
Is there any progress on this?
Due to increases in supply chain attacks and vulnerability discoveries, I am now doing all of my dev work inside docker containers using code-server, but now my browser tab bar is full of tabs that are all named exactly the same which is quite problematic for productivity (I spend a lot of time searching for the right tab).
This feels like an easy fix, but maybe it is more complicated than it looks at first glance?
code-asher commentedon May 12, 2026
It did appear pretty simple but the PR seems to have been abandoned and I have not had a chance to pick it up: #7725