Repository navigation
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.
|
sestinj
left a comment
There was a problem hiding this comment.
This works great for me, I'm just curious if the url -> path was the solution to something that was previously broken
| val input = mapOf( | ||
| "completionId" to completionId, | ||
| "filepath" to virtualFile?.url, | ||
| "filepath" to virtualFile?.path, |
There was a problem hiding this comment.
(was this the solution to a clear problem?)
There was a problem hiding this comment.
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.
Uh, maybe it's better to fix it than revert it.
|
Also, add directory checks and optimize token usage.
|
- Added check to skip directories when reading file content. - Optimized token usage by removing unnecessary `\r` characters.
|
Looks good! @Patrick-Erichsen for a second pass, then good to merge |
| } No newline at end of file | ||
| } | ||
|
|
||
| fun VirtualFile.toUriOrNull(): String? = fileSystem.getNioPath(this)?.toUri()?.toString()?.removeSuffix("/") No newline at end of file |
There was a problem hiding this comment.
@RomneyDa any thoughts here? I'm wondering if .removeSuffix("/") is going to not work properly for non-macOS users
|
LGTM 🫡 |
|
@lkk214 @Patrick-Erichsen @sestinj And at the same time, the log in the Run Extension window: |
|
From the log you provided, it seems that it is a response parsing error. It is not the same issue. |
Yes, I also found this code, and I saw that it made a "config/getSerializedProfileInfo" request to get the content of the config, |


Description
Screenshots
Testing