Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement textDocument/openDocument #1704

Closed
wants to merge 5 commits into from

Conversation

pkukielka
Copy link
Contributor

Changes

Implement handing of the openDocument agent call.

Test plan

  1. Generate new unit test using Edit commands
  2. Browse other files
  3. Generate more tests for the same file
  4. Generate tests for other file

Also

  1. Test if autocompletion works
  2. Check if chat see context from custom files, also opened from outsisde of the workspace

@pkukielka pkukielka force-pushed the pkukielka/implement-didOpenDocument branch from ef98ff6 to c09e4f3 Compare May 30, 2024 19:11
if (onOpenUntitledDocument == null) {
return CompletableFuture.failedFuture(
new Exception("No callback registered for textDocument/openUntitledDocument"));
@JsonRequest("textDocument/openDocument")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I think we need clearer names to distinguish

  • textDocument/open
  • textDocument/openDocument

We can do this separately after GA.

@dominiccooney
Copy link
Contributor

@pkukielka , I'm unsure what the state of this is... could you rebase this, take a look at @olafurpg 's feedback, and we'll take a look at it?

Nit: spelling in the test plan, outsisde

@pkukielka
Copy link
Contributor Author

Replaced by #1903

@pkukielka pkukielka closed this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants