ruff/crates/ty_server/tests/e2e/snapshots
Dhruv Manilawala 7b6abfb030
[ty] Add `ty.experimental.rename` server setting (#19800)
## Summary

This PR is a follow-up from https://github.com/astral-sh/ruff/pull/19551
and adds a new `ty.experimental.rename` setting to conditionally
register for the rename capability. The complementary PR in ty VS Code
extension is https://github.com/astral-sh/ty-vscode/pull/111.

This is done using dynamic registration after the settings have been
resolved. The experimental group is part of the global settings because
they're applied for all workspaces that are managed by the client.

## Test Plan

Add E2E tests.

In VS Code, with the following setting:
```json
{
	"ty.experimental.rename": "true",
	"python.languageServer": "None"
}
```

I get the relevant log entry:
```
2025-08-07 16:05:40.598709000 DEBUG client_response{id=3 method="client/registerCapability"}: Registered rename capability
```

And, I'm able to rename a symbol. Once I set it to `false`, then I can
see this log entry:

```
2025-08-07 16:08:39.027876000 DEBUG Rename capability is disabled in the client settings
```

And, I don't see the "Rename Symbol" open in the VS Code dropdown.


https://github.com/user-attachments/assets/501659df-ba96-4252-bf51-6f22acb4920b
2025-08-07 12:54:58 +00:00
..
e2e__initialize__initialization.snap [ty] Add `ty.experimental.rename` server setting (#19800) 2025-08-07 12:54:58 +00:00
e2e__initialize__initialization_with_workspace.snap [ty] Add `ty.experimental.rename` server setting (#19800) 2025-08-07 12:54:58 +00:00
e2e__publish_diagnostics__on_did_open.snap [ty] Move server tests as integration tests (#19522) 2025-07-24 16:10:17 +00:00
e2e__pull_diagnostics__on_did_open.snap [ty] Implement diagnostic caching (#19605) 2025-07-30 11:04:34 +01:00
e2e__pull_diagnostics__workspace_diagnostic_after_changes.snap [ty] Implement streaming for workspace diagnostics (#19657) 2025-08-04 09:34:29 +00:00
e2e__pull_diagnostics__workspace_diagnostic_initial_state.snap [ty] Implement diagnostic caching (#19605) 2025-07-30 11:04:34 +01:00
e2e__pull_diagnostics__workspace_diagnostic_long_polling_cancellation_result.snap [ty] Implement long-polling for workspace diagnsotics (#19670) 2025-08-04 10:26:38 +00:00
e2e__pull_diagnostics__workspace_diagnostic_long_polling_change_response.snap [ty] Implement long-polling for workspace diagnsotics (#19670) 2025-08-04 10:26:38 +00:00
e2e__pull_diagnostics__workspace_diagnostic_long_polling_shutdown_response.snap [ty] Implement long-polling for workspace diagnsotics (#19670) 2025-08-04 10:26:38 +00:00
e2e__pull_diagnostics__workspace_diagnostic_streaming_with_caching.snap [ty] Implement streaming for workspace diagnostics (#19657) 2025-08-04 09:34:29 +00:00
e2e__pull_diagnostics__workspace_diagnostic_suspend_change_suspend_first_response.snap [ty] Implement long-polling for workspace diagnsotics (#19670) 2025-08-04 10:26:38 +00:00
e2e__pull_diagnostics__workspace_diagnostic_suspend_change_suspend_second_response.snap [ty] Implement long-polling for workspace diagnsotics (#19670) 2025-08-04 10:26:38 +00:00