Skip to content

docs(lsp): explain why language_id should be preferred#19976

Merged
graphite-app[bot] merged 1 commit intomainfrom
03-03-docs_lsp_explain_why_language_id_should_be_preffered
Mar 3, 2026
Merged

docs(lsp): explain why language_id should be preferred#19976
graphite-app[bot] merged 1 commit intomainfrom
03-03-docs_lsp_explain_why_language_id_should_be_preffered

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Mar 3, 2026

Pull request overview

Updates the language server’s LanguageId trait documentation to clarify how formatters should determine the language for a document, emphasizing use of the LSP-provided language_id.

Copy link
Member Author

Sysix commented Mar 3, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added A-editor Area - Editor and Language Server C-docs Category - Documentation. Related to user-facing or internal documentation labels Mar 3, 2026
@Sysix Sysix changed the title docs(lsp): explain why language_id should be preffered docs(lsp): explain why language_id should be preferred Mar 3, 2026
@Sysix Sysix requested a review from Copilot March 3, 2026 20:55
Copy link
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

Updates the language server’s Tool trait documentation to clarify how formatters should determine the language for a document, emphasizing use of the LSP-provided language_id.

Changes:

  • Document that language_id should be preferred over file extensions when selecting formatting/parsing behavior.
  • Note a fallback to file extension/heuristics when the language cannot be determined from language_id.
  • Call out config-like files (e.g. .oxlintrc.json) that may require JSON-with-comments handling.

@Sysix Sysix force-pushed the 03-03-docs_lsp_explain_why_language_id_should_be_preffered branch 2 times, most recently from 14fdd63 to 5a883c3 Compare March 3, 2026 21:40
@Sysix Sysix requested a review from Copilot March 3, 2026 21:40
Copy link
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@Sysix Sysix force-pushed the 03-03-docs_lsp_explain_why_language_id_should_be_preffered branch 2 times, most recently from a8d1845 to 03f4e2c Compare March 3, 2026 21:46
@Sysix Sysix requested a review from Copilot March 3, 2026 21:47
Copy link
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

@Sysix Sysix force-pushed the 03-03-docs_lsp_explain_why_language_id_should_be_preffered branch from 03f4e2c to 2be509c Compare March 3, 2026 21:51
@Sysix Sysix marked this pull request as ready for review March 3, 2026 21:51
@Sysix Sysix requested a review from camc314 as a code owner March 3, 2026 21:51
@Sysix Sysix added the 0-merge Merge with Graphite Merge Queue label Mar 3, 2026
Copy link
Member Author

Sysix commented Mar 3, 2026

Merge activity

> ## Pull request overview
>
> Updates the language server’s `LanguageId` trait documentation to clarify how formatters should determine the language for a document, emphasizing use of the LSP-provided `language_id`.
@graphite-app graphite-app bot force-pushed the 03-03-docs_lsp_explain_why_language_id_should_be_preffered branch from 2be509c to 6095cde Compare March 3, 2026 21:57
@graphite-app graphite-app bot merged commit 6095cde into main Mar 3, 2026
21 checks passed
@graphite-app graphite-app bot deleted the 03-03-docs_lsp_explain_why_language_id_should_be_preffered branch March 3, 2026 22:02
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-editor Area - Editor and Language Server C-docs Category - Documentation. Related to user-facing or internal documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants