Skip to content

test(lsp): add tests for removing folders in workspace/didChangeWorkspaceFolders notification#16308

Merged
graphite-app[bot] merged 1 commit intomainfrom
11-30-test_lsp_add_tests_for_removing_folders_in_workspace_didchangeworkspacefolders_notification
Dec 1, 2025
Merged

test(lsp): add tests for removing folders in workspace/didChangeWorkspaceFolders notification#16308
graphite-app[bot] merged 1 commit intomainfrom
11-30-test_lsp_add_tests_for_removing_folders_in_workspace_didchangeworkspacefolders_notification

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Nov 30, 2025

No description provided.

@github-actions github-actions bot added A-editor Area - Editor and Language Server C-test Category - Testing. Code is missing test cases, or a PR is adding them labels Nov 30, 2025
Copy link
Member Author

Sysix commented Nov 30, 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.

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

This PR adds test coverage for the workspace/didChangeWorkspaceFolders notification when folders are removed, complementing the existing tests for adding folders. The changes extract common helper functions to reduce code duplication and introduce a constant for the workspace URI.

Key changes:

  • Added WORKSPACE constant to centralize the workspace URI string
  • Extracted shutdown() method for tests without watchers
  • Extracted acknowledge_unregistrations() helper function
  • Added two new test cases: test_workspace_removed (without watchers) and test_workspace_removed_watchers (with watchers)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@camc314 camc314 self-assigned this Dec 1, 2025
@graphite-app graphite-app bot changed the base branch from 11-30-fix_lsp_watch_for_files_when_workspace_folder_is_added_workspace_configuration_is_not_supported to graphite-base/16308 December 1, 2025 16:14
@graphite-app graphite-app bot force-pushed the graphite-base/16308 branch from 8b6830d to 114665d Compare December 1, 2025 16:20
@graphite-app graphite-app bot force-pushed the 11-30-test_lsp_add_tests_for_removing_folders_in_workspace_didchangeworkspacefolders_notification branch from 9c90815 to 1d3994d Compare December 1, 2025 16:20
@graphite-app graphite-app bot changed the base branch from graphite-base/16308 to main December 1, 2025 16:20
@graphite-app graphite-app bot force-pushed the 11-30-test_lsp_add_tests_for_removing_folders_in_workspace_didchangeworkspacefolders_notification branch from 1d3994d to 64b59d9 Compare December 1, 2025 16:21
@Sysix Sysix force-pushed the 11-30-test_lsp_add_tests_for_removing_folders_in_workspace_didchangeworkspacefolders_notification branch from 64b59d9 to 3eaddb8 Compare December 1, 2025 17:25
@Sysix Sysix added the 0-merge Merge with Graphite Merge Queue label Dec 1, 2025
Copy link
Member Author

Sysix commented Dec 1, 2025

Merge activity

@graphite-app graphite-app bot force-pushed the 11-30-test_lsp_add_tests_for_removing_folders_in_workspace_didchangeworkspacefolders_notification branch from 3eaddb8 to 5ffc042 Compare December 1, 2025 17:30
@graphite-app graphite-app bot merged commit 5ffc042 into main Dec 1, 2025
21 checks passed
@graphite-app graphite-app bot deleted the 11-30-test_lsp_add_tests_for_removing_folders_in_workspace_didchangeworkspacefolders_notification branch December 1, 2025 17:35
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 1, 2025
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
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-test Category - Testing. Code is missing test cases, or a PR is adding them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants