Register the Editor.getActiveLocation() service method with DTD#5720
Register the Editor.getActiveLocation() service method with DTD#5720
Conversation
|
@codex review |
There was a problem hiding this comment.
Pull Request Overview
This PR implements support for the Editor.getActiveLocation() service method in the Dart Tooling Daemon (DTD), addressing issue #5718. The change allows external tools to query the current active location in the VS Code editor.
- Adds the
editorGetActiveLocationservice method registration and implementation - Refactors active location handling to maintain state and support both events and queries
- Updates type definitions to separate
ActiveLocationinterface from event-specific properties
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/shared/services/tooling_daemon_services.ts | Adds new service method enum and refactors ActiveLocation interface |
| src/shared/services/tooling_daemon.ts | Updates method signatures and adds service registration overload |
| src/extension/dart/tooling_daemon.ts | Implements the getActiveLocation service and maintains active location state |
| src/test/dart/tooling_daemon/tooling_daemon.test.ts | Adds comprehensive tests for the new service method |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Thanks for the review request, @DanTup! I've thoroughly reviewed the changes in this pull request. This PR introduces a new service method, Here's a summary of my findings: General FeedbackOverall, the changes are well-structured and logically sound. The introduction of the Detailed Review
ConclusionThe pull request effectively implements the new |
|
Codex Review: Didn't find any major issues. Keep it up! About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback". |
Fixes #5718