-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
refactor: Adjust inlay rendering and improve completion logic #3494
base: main
Are you sure you want to change the base?
refactor: Adjust inlay rendering and improve completion logic #3494
Conversation
- Replace `ContinueCustomElementRenderer` and `ContinueMultilineCustomElementRenderer` with `ContinueInlayRenderer`. - Add `Editor.addInlayElement` to handle inline and block inlay elements. - Refactor `AutocompleteService` to use new inlay renderer and improve completion rendering conditions. - Update `AcceptAutocompleteAction` to match new changes.
✅ Deploy Preview for continuedev canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works great for me, I'm just curious if the url -> path was the solution to something that was previously broken
val column = editor.caretModel.primaryCaret.logicalPosition.column | ||
val input = mapOf( | ||
"completionId" to completionId, | ||
"filepath" to virtualFile?.url, | ||
"filepath" to virtualFile?.path, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change url to path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(was this the solution to a clear problem?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just about to comment on it. I didn't pay attention to #3247, need to revert it here.
Because using File(URI(filepath))
will cause an error in Windows, I made temporary changes locally and submitted this by mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh, maybe it's better to fix it than revert it.
Description
Screenshots
Testing