Repository navigation
Update window.title setting autocomplete - #337655
Merged
Dmitriy Vasyura (dmitrivMS) merged 2 commits intoSep 28, 2026
Merged
Dmitriy Vasyura (dmitrivMS) merged 2 commits into
Dmitriy Vasyura (dmitrivMS) merged 2 commits into
Conversation
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.
Contributor
There was a problem hiding this comment.
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
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)"))); |
Benjamin Christopher Simmonds (benibenj)
approved these changes
Sep 24, 2026
Nick Trogh (ntrogh)
approved these changes
Sep 24, 2026
Giuseppe Cianci (Giuspepe)
approved these changes
Sep 24, 2026
Dmitriy Vasyura (dmitrivMS)
enabled auto-merge (squash)
September 28, 2026 03:04
Dmitriy Vasyura (dmitrivMS)
merged commit Sep 28, 2026
b1ff87c
into
microsoft:main
36 of 38 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The
window.titlesetting 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.titlein settings.jsonScreen.Recording.2026-09-24.at.4.09.22.AM.mov