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

Add CodyInlineCompletionProvider as an alternative for inlay completions #2304

Merged
merged 11 commits into from
Oct 4, 2024

Conversation

mkondratek
Copy link
Contributor

@mkondratek mkondratek commented Sep 16, 2024

Fixes https://linear.app/sourcegraph/issue/CODY-3742.

Based on PR #2303

Full chain of PRs as of 2024-09-16

Test plan

AUTOMATIC

  1. Run IDE in Remote Development mode
  2. Open a project, open a file
  3. Hit Enter to trigger autocomplete
    Expected: autocompletion suggested

INVOKE

  1. shift + option + \ on macOS
    Expected: autocompletion suggested

@mkondratek mkondratek self-assigned this Sep 16, 2024
@mkondratek mkondratek marked this pull request as draft September 16, 2024 12:27
pkukielka pushed a commit that referenced this pull request Sep 16, 2024
A prerequisite for #2304. 

## Test plan
1. Verify Settings UI
Base automatically changed from mkondratek/chore/ui-fixes to main September 16, 2024 12:41
@mkondratek mkondratek force-pushed the mkondratek/feat/completion-provider branch from fae67b6 to 24c90e1 Compare September 16, 2024 13:44
@mkondratek mkondratek changed the title Init CodyInlineCompletionProvider Add CodyInlineCompletionProvider as an alternative for inlay completions Sep 16, 2024
@mkondratek mkondratek force-pushed the mkondratek/feat/completion-provider branch 2 times, most recently from 7ece535 to a465643 Compare September 17, 2024 13:21
@mkondratek mkondratek mentioned this pull request Sep 26, 2024
@mkondratek mkondratek force-pushed the mkondratek/feat/completion-provider branch 2 times, most recently from 8d81671 to e4042a0 Compare October 2, 2024 09:08
@mkondratek mkondratek force-pushed the mkondratek/feat/completion-provider branch from e4042a0 to 587af90 Compare October 3, 2024 10:19
@mkondratek mkondratek marked this pull request as ready for review October 4, 2024 11:49
@@ -580,19 +590,6 @@ tasks {

test { dependsOn(project.tasks.getByPath("buildCody")) }

configurations {
Copy link
Contributor

Choose a reason for hiding this comment

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

Was that not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks so. the test are passing without it. Note that configuration creation is redundant. SourceSets persist.

build.gradle.kts Outdated
@@ -499,6 +507,8 @@ tasks {

buildPlugin {
dependsOn(project.tasks.getByPath("buildCody"))
val get = composedJar.get()
Copy link
Contributor

Choose a reason for hiding this comment

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

get does not sound like nice name ^^
Maybe just inline it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@@ -25,6 +25,7 @@ class CodyDocumentListener(val project: Project) : BulkAwareDocumentListener {
}
}

// todo: documentChanged
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove or make it more meaningful please.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

@pkukielka pkukielka left a comment

Choose a reason for hiding this comment

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

I left few comments, otherwise LGTM

@mkondratek mkondratek force-pushed the mkondratek/feat/completion-provider branch from 070ff95 to 3798bdc Compare October 4, 2024 13:25
@mkondratek mkondratek merged commit e84c6ce into main Oct 4, 2024
6 of 7 checks passed
@mkondratek mkondratek deleted the mkondratek/feat/completion-provider branch October 4, 2024 16:05
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.

2 participants