Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@Krzysztof-Cieslak
Copy link
Contributor

CC: @hediet

@hediet hediet added this to the July 2024 milestone Jul 1, 2024
Comment on lines +61 to +66
const instance = this.instantiationService.createInstance(GhostTextWidget, this.editor, {
ghostText: constObservable(ghostText),
minReservedLineCount: constObservable(0),
targetTextModel: constObservable(this.editor.getModel() ?? undefined),
range: constObservable(edit.range)
});
Copy link
Member

Choose a reason for hiding this comment

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

This potentially causes performance issues, as you re-create the widget on every edit change.
Better only create the widget once and pass in the data as observable!

@Krzysztof-Cieslak Krzysztof-Cieslak force-pushed the inline-edit-side-by-side branch from bcf3c36 to e4070ae Compare July 5, 2024 16:58
@Krzysztof-Cieslak Krzysztof-Cieslak force-pushed the inline-edit-side-by-side branch from e4070ae to 2cce8a0 Compare July 8, 2024 14:23
@hediet hediet enabled auto-merge (squash) July 8, 2024 17:10
@hediet hediet merged commit 1e6b497 into microsoft:main Jul 8, 2024
aaronchucarroll pushed a commit to aaronchucarroll/vscode that referenced this pull request Jul 10, 2024
…oft#219444)

* Make widget derived out of edit value

* initial side-by-side rendering of suggestions

* Keep old UI in some scenarios

* Handle scrolling

* Use embedded text editor to display suggestions

* Add diff decorations

* Apply decorations on the original code in side-by-side rendering

* try to solve flickering... and fail at it

* Make background colouring always enabled for inner-line suggestions, and remove strike-through
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Aug 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.