Skip to content

feat(language_server): tell clients to watch for .oxlintrc.json files#11078

Merged
graphite-app[bot] merged 1 commit intomainfrom
feat_language_server_tell_clients_to_watch_for_.oxlintrc.json_files
May 18, 2025
Merged

feat(language_server): tell clients to watch for .oxlintrc.json files#11078
graphite-app[bot] merged 1 commit intomainfrom
feat_language_server_tell_clients_to_watch_for_.oxlintrc.json_files

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented May 16, 2025

Now it is the job of the server to watch / unwatch for files.
The watching will still do the client, but the logic is now under the server's control.

Changing configuration or workspaces still needs a restart because there needs to be an Identifier-Structure for all specific watcher. This will be done in the next weeks ;)

Copy link
Member Author

Sysix commented May 16, 2025


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-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels May 16, 2025
@Sysix Sysix changed the title refactor(language_server): prepare for dynamicRegistration of fileWatchers feat(language_server): tell clients to watch for .oxlintrc.json files May 16, 2025
@github-actions github-actions bot added the C-enhancement Category - New feature or request label May 16, 2025
@Sysix Sysix removed the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label May 16, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented May 16, 2025

CodSpeed Instrumentation Performance Report

Merging #11078 will not alter performance

Comparing feat_language_server_tell_clients_to_watch_for_.oxlintrc.json_files (1675b2c) with main (ff8f519)

Summary

✅ 38 untouched benchmarks

@Sysix Sysix force-pushed the 05-16-refactor_language_server_restructure_initialized_function branch from 706d05f to 63d72a7 Compare May 17, 2025 08:21
@Sysix Sysix force-pushed the feat_language_server_tell_clients_to_watch_for_.oxlintrc.json_files branch from 332b8ed to 9643147 Compare May 17, 2025 08:21
@Sysix Sysix force-pushed the 05-16-refactor_language_server_restructure_initialized_function branch from 63d72a7 to b1dae1c Compare May 17, 2025 08:26
@Sysix Sysix force-pushed the feat_language_server_tell_clients_to_watch_for_.oxlintrc.json_files branch 4 times, most recently from c69436f to e5f3184 Compare May 17, 2025 10:05
@Sysix Sysix marked this pull request as ready for review May 17, 2025 10:08
@Sysix Sysix requested a review from camc314 as a code owner May 17, 2025 10:08
@Sysix Sysix force-pushed the feat_language_server_tell_clients_to_watch_for_.oxlintrc.json_files branch from e5f3184 to 9c1a273 Compare May 17, 2025 12:05
graphite-app bot pushed a commit that referenced this pull request May 18, 2025
…dFiles.dynamicRegistration` (#11075)

Current State: The client initializes the file watchers and tells the client for changes.
Goal: The Server should tell clients to watch for specific files.
This will help for other editors which does not have a custom implementation like VSCode does.

See #11078 how to use this capability.
@graphite-app graphite-app bot changed the base branch from 05-16-refactor_language_server_restructure_initialized_function to graphite-base/11078 May 18, 2025 12:11
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label May 18, 2025 — with Graphite App
Copy link
Contributor

camc314 commented May 18, 2025

Merge activity

  • May 18, 8:11 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • May 18, 8:12 AM EDT: camc314 added this pull request to the Graphite merge queue.
  • May 18, 12:18 PM UTC: The Graphite merge queue couldn't merge this PR because it had conflicts with the trunk branch.
  • May 18, 8:21 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • May 18, 8:31 AM EDT: Merged by the Graphite merge queue.

@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label May 18, 2025
@graphite-app graphite-app bot changed the base branch from graphite-base/11078 to main May 18, 2025 12:16
@Sysix Sysix force-pushed the feat_language_server_tell_clients_to_watch_for_.oxlintrc.json_files branch from 9c1a273 to 26fd043 Compare May 18, 2025 12:20
@Sysix Sysix added the 0-merge Merge with Graphite Merge Queue label May 18, 2025
…#11078)

Now it is the job of the server to watch / unwatch for files.
The watching will still do the client, but the logic is now under the server's control.

Changing configuration or workspaces still needs a restart because there needs to be an Identifier-Structure for all specific watcher. This will be done in the next weeks ;)
@graphite-app graphite-app bot force-pushed the feat_language_server_tell_clients_to_watch_for_.oxlintrc.json_files branch from 26fd043 to 1675b2c Compare May 18, 2025 12:28
@graphite-app graphite-app bot merged commit 1675b2c into main May 18, 2025
24 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label May 18, 2025
@graphite-app graphite-app bot deleted the feat_language_server_tell_clients_to_watch_for_.oxlintrc.json_files branch May 18, 2025 12:31
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-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants