Skip to content

Fixes #319956: Enable editor.showUnused for .js files - #330867

Merged
Dirk Bäumer (dbaeumer) merged 1 commit into
mainfrom
dbaeumer/continuing-pinniped-gray
Aug 14, 2026
Merged

Fixes #319956: Enable editor.showUnused for .js files#330867
Dirk Bäumer (dbaeumer) merged 1 commit into
mainfrom
dbaeumer/continuing-pinniped-gray

Conversation

@dbaeumer

Copy link
Copy Markdown
Member

The changes address the issue where unused code in JavaScript files was not being grayed out. The implementation updates the handling of the checkJs configuration to ensure it can be properly read and utilized. Testing can be done by creating a new .js file with unused code and verifying that the unused code appears grayed out in the editor.

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

Restores unused-code highlighting in unconfigured JavaScript files by preserving an unset checkJs value.

Changes:

  • Makes checkJs optional.
  • Distinguishes explicit configuration from the default value.
Show a summary per file
File Description
extensions/typescript-language-features/src/configuration/configuration.ts Preserves undefined when checkJs is not explicitly configured.

Review details

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

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@dbaeumer
Dirk Bäumer (dbaeumer) merged commit 6ebcc0a into main Aug 14, 2026
28 checks passed
@dbaeumer
Dirk Bäumer (dbaeumer) deleted the dbaeumer/continuing-pinniped-gray branch August 14, 2026 14:50
@vs-code-engineering vs-code-engineering Bot added this to the 1.134.0 milestone Aug 14, 2026
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