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

chore(vscode): use codelens for inline edit actions / decorations #3000

Merged
merged 19 commits into from
Aug 29, 2024

Conversation

wsxiaoys
Copy link
Member

@wsxiaoys wsxiaoys commented Aug 27, 2024

@wsxiaoys wsxiaoys marked this pull request as draft August 27, 2024 22:03
@wsxiaoys wsxiaoys force-pushed the refactor-inline-edit branch from 53c23bb to 4989150 Compare August 28, 2024 02:21
@wsxiaoys wsxiaoys changed the title improve inline edit decorations chore(vscode): use codelens for inline edit actions / decorations Aug 28, 2024
@wsxiaoys wsxiaoys requested a review from icycodes August 28, 2024 03:35
@wsxiaoys wsxiaoys marked this pull request as ready for review August 28, 2024 03:35
@@ -26,7 +26,8 @@
"types": "./dist/protocol.d.ts",
"scripts": {
"build": "tsup --minify",
"watch": "tsup --watch",
"watch": "tsup --watch --onSuccess \"echo '' >> dist/protocol.d.ts\"",
Copy link
Member Author

Choose a reason for hiding this comment

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

@icycodes this is a hack to trigger pnpm watch for vscode

@wsxiaoys wsxiaoys merged commit 08a326c into main Aug 29, 2024
5 checks passed
@wsxiaoys wsxiaoys deleted the refactor-inline-edit branch August 29, 2024 04:53
icycodes pushed a commit that referenced this pull request Sep 2, 2024
)

* refactor(vscode): disable noUnusedLocals and update build script. Extract InlineEditController

* refactor(inline-edit): reorganize InlineChatEdit

* restructure tsconfig.json

* build(clients/tabby-agent): update watch script to modify dist/protocol.d.ts on success, to help trigger watch mode of vscode extension

* streaming at line break

* Let CodeLensProvider using footer's markers

* turn off background color of header / footer to avoid flickering

* support cancel from codelens

* update

* update

* update

* update

* [autofix.ci] apply automated fixes

* fix

* chore(agent): when apply inline edit, apply the first edit as soon as possible so codelens can display immediately

* add highlight for in progress edit

* update

* [autofix.ci] apply automated fixes

* update

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
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