Skip to content

lint - report layer issues in CSS#269671

Merged
bpasero merged 9 commits intomainfrom
ben/superb-loon
Oct 3, 2025
Merged

lint - report layer issues in CSS#269671
bpasero merged 9 commits intomainfrom
ben/superb-loon

Conversation

@bpasero
Copy link
Copy Markdown
Member

@bpasero bpasero commented Oct 3, 2025

No description provided.

@bpasero bpasero self-assigned this Oct 3, 2025
@bpasero bpasero marked this pull request as ready for review October 3, 2025 10:31
Copilot AI review requested due to automatic review settings October 3, 2025 10:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 implements layer validation in CSS files to enforce architectural boundaries within VS Code's codebase. The change prevents base, platform, and editor layer CSS files from using .monaco-workbench classes, which violates the layered architecture.

  • Adds layer-checker rule to stylelint that detects .monaco-workbench usage in restricted paths
  • Implements disable mechanism for files that need to bypass the rule
  • Removes unused linting parameter from hygiene function

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
build/stylelint.js Implements layer-checker rule with pattern matching and disable functionality
src/vs/editor/contrib/symbolIcons/browser/symbolIcons.css Adds layer-checker disable comment
src/vs/editor/browser/services/hoverService/hover.css Adds layer-checker disable comment
build/lib/stylelint/vscode-known-variables.json Adds new chat and inline chat CSS variables
build/hygiene.js Removes unused linting parameter and simplifies function signature
build/gulpfile.hygiene.js Updates hygiene function call to remove unused parameter

Comment thread build/stylelint.js Outdated
Comment thread build/hygiene.js Outdated
@bpasero bpasero marked this pull request as draft October 3, 2025 10:32
bpasero and others added 4 commits October 3, 2025 12:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bpasero bpasero marked this pull request as ready for review October 3, 2025 10:36
@bpasero bpasero enabled auto-merge (squash) October 3, 2025 10:36
@vs-code-engineering vs-code-engineering Bot added this to the October 2025 milestone Oct 3, 2025
@bpasero bpasero merged commit daf6052 into main Oct 3, 2025
28 checks passed
@bpasero bpasero deleted the ben/superb-loon branch October 3, 2025 10:50
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Nov 17, 2025
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.

3 participants