Skip to content

Comments

Add missing language activation events for GraphQL, LESS, MDX, and SCSS#17811

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/add-language-activation-events
Closed

Add missing language activation events for GraphQL, LESS, MDX, and SCSS#17811
Copilot wants to merge 3 commits intomainfrom
copilot/add-language-activation-events

Conversation

Copy link
Contributor

Copilot AI commented Jan 8, 2026

Plan: Add Missing Language Activation Events for VSCode Extension

  • Understand the issue: Missing activation events for languages supported by oxfmt
  • Add missing extensions to supportedExtensions in formatter.ts
    • Add less extension after CSS extensions
    • Add scss extension after CSS extensions
    • Add mdx extension under Markdown comment block (not as separate section)
  • Add missing language activation events to package.json
    • Add onLanguage:graphql after onLanguage:css
    • Add onLanguage:less after onLanguage:jsonc
    • Add onLanguage:mdx after onLanguage:markdown
    • Add onLanguage:scss after onLanguage:svelte
  • Verify build succeeds
  • Address feedback to categorize mdx under Markdown block
Original prompt

#17717 (comment)

Additional supported languages are missing from activationEvents. Consider adding the following language activation events to match oxfmt's complete language support: "onLanguage:graphql" (after css), "onLanguage:less" (after jsonc), "onLanguage:mdx" (after markdown), and "onLanguage:scss" (after svelte). All these file types are supported by oxfmt through its prettier integration.

Create new PR for it,
Create after that for each new line a new comment to me, referencing the counterpart of editors/vscode/client/tools/formatter.ts


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add additional language activation events for oxfmt Add missing language activation events for GraphQL, LESS, MDX, and SCSS Jan 8, 2026
Copilot AI requested a review from Sysix January 8, 2026 23:00
@Sysix Sysix closed this Jan 8, 2026
@Sysix Sysix reopened this Jan 8, 2026
"onLanguage:jsonc",
"onLanguage:less",
"onLanguage:markdown",
"onLanguage:mdx",
Copy link
Member

Choose a reason for hiding this comment

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

@copilot mdx is supported under markdown

for the formatter.ts change, categories it under markdown comment block, line 167

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved mdx extension under the Markdown comment block in formatter.ts at line 183. (commit 2073373)

Copilot AI requested a review from Sysix January 8, 2026 23:22
@Sysix Sysix closed this Jan 8, 2026
@leaysgur leaysgur deleted the copilot/add-language-activation-events branch January 9, 2026 00:11
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.

2 participants