Skip to content

Update window.title setting autocomplete - #337655

Merged
Dmitriy Vasyura (dmitrivMS) merged 2 commits into
microsoft:mainfrom
thesilican:bryan/window-title-autocomplete
Sep 28, 2026
Merged

Dmitriy Vasyura (dmitrivMS) merged 2 commits into
microsoft:mainfrom
thesilican:bryan/window-title-autocomplete

Conversation

@thesilican

Copy link
Copy Markdown
Contributor

The window.title setting has substitution variables (see src/vs/workbench/browser/workbench.contribution.ts), there are also corresponding autocomplete entries in settingsDocumentHelper.ts but some of the more recently added variables were missed. This commit adds the missing ones.

Resolves #337654

Test by editing window.title in settings.json

Screen.Recording.2026-09-24.at.4.09.22.AM.mov

The `window.title` setting has substitution variables (see
src/vs/workbench/browser/workbench.contribution.ts), there are also
corresponding autocomplete entries in settingsDocumentHelper.ts but some
of the more recently added variables were missed. This commit adds the
missing ones.
Copilot AI balanced review requested due to automatic review settings September 24, 2026 08:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The new completion entries lack regression test coverage.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds missing window.title autocomplete variables, resolving #337654.

Changes:

  • Adds completions for editor language, profile name, and focused view.
File Description
extensions/​configuration-editing/​src/​settingsDocumentHelper.ts Adds three supported title-variable completions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

completions.push(this.newSimpleCompletionItem(getText('activeEditorShort'), range, vscode.l10n.t("the file name (e.g. myFile.txt)")));
completions.push(this.newSimpleCompletionItem(getText('activeEditorMedium'), range, vscode.l10n.t("the path of the file relative to the workspace folder (e.g. myFolder/myFileFolder/myFile.txt)")));
completions.push(this.newSimpleCompletionItem(getText('activeEditorLong'), range, vscode.l10n.t("the full path of the file (e.g. /Users/Development/myFolder/myFileFolder/myFile.txt)")));
completions.push(this.newSimpleCompletionItem(getText('activeEditorLanguageId'), range, vscode.l10n.t("the language identifier of the active editor (e.g. typescript)")));
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) merged commit b1ff87c into microsoft:main Sep 28, 2026
36 of 38 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.140.0 milestone Sep 28, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Nov 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

window.title setting has missing variables for autocomplete

6 participants