Skip to content

Add missing window.title completion items#323456

Open
NaufalK25 wants to merge 2 commits into
microsoft:mainfrom
NaufalK25:fix/window-title-missing-completions
Open

Add missing window.title completion items#323456
NaufalK25 wants to merge 2 commits into
microsoft:mainfrom
NaufalK25:fix/window-title-missing-completions

Conversation

@NaufalK25

@NaufalK25 NaufalK25 commented Jun 29, 2026

Copy link
Copy Markdown

${activeEditorLanguageId}, ${profileName}, and ${focusedView} are documented in the window.title setting description workbench.contribution.ts and resolved at runtime in windowTitle.ts, but were missing from the completion list in settingsDocumentHelper.ts, so they never showed up as IntelliSense suggestions when editing window.title in settings.json.

This adds the three missing entries so the suggestion list matches the full
set of variables the setting actually supports.

Verified manually: built from source, opened settings.json, and confirmed all
three now appear via Ctrl+Space inside the window.title string value.

${activeEditorLanguageId}, ${profileName}, and ${focusedView} are
documented in the window.title setting description and resolved at
runtime in windowTitle.ts, but were never added to the suggestion
list in settingsDocumentHelper.ts.
Copilot AI review requested due to automatic review settings June 29, 2026 10:03

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.

Pull request overview

This PR updates the configuration-editing extension’s settings.json IntelliSense for the window.title setting so the completion list includes all variables that are already documented and supported at runtime.

Changes:

  • Add ${activeEditorLanguageId} to the window.title completion items.
  • Add ${profileName} to the window.title completion items.
  • Add ${focusedView} to the window.title completion items.

Comment thread extensions/configuration-editing/src/settingsDocumentHelper.ts
Guards against any window.title variable silently disappearing from
the suggestion list - not just the three added in the previous
commit, but all of them, since none of the existing tests checked
for variable presence.
@NaufalK25

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants