Skip to content

Commit

Permalink
feat(chat-ui): add smart apply to chat panel (#3112)
Browse files Browse the repository at this point in the history
* feat(chat-ui): add smart apply functionality to chat panel

* to: smart apply in editor also pass language id

a

* feat(tabby-agent): adding providing best fit range for smart apply function
add provideSmartApplyLineRange functionality to TabbyAgent and ChatEditProvider

a

* to(vscode): request fit line range

add ChatFeature to ChatViewProvider for smart apply functionality

* feat: add onSmartApplyInEditor function to ChatSideBar component

* to(tabby-agent): adding provideSmartApplyRequest base on chatEdit

* feat(vscode): add smart apply functionality to ChatViewProvider

* feat: remove onSmartApplyInEditor from ChatPanel and ChatSideBar components, adding smart bool to on apply edit

* feat(tabby-agent): add smart apply functionality to generate-smart-apply prompt

* refactor: Update parameter options in TabbyAgent.ts to include lineRange.undefined

* feat: add support for indentInfo in SmartApplyCodeParams.undefined

* docs: update smart apply instructions with indentation details.undefined

* fix(tabby-agent): update documentation and remove unused imports

fix(vscode): correct comment for line number range in ChatViewProviderundefined

* chore: remove unnecessary prompt filesundefined

* fix(lsp): add cancellation token handling for ChatLineRangeSmartApplyRequestundefined

* rebase: rebase chat web view client api to webviewhelper

also adding default data config

fix: remove test

* fix(ui): add support for wrapping long lines in CodeBlock component

* refactor: update chatPanelViewProvider constructor parameters in Commands.ts and extension.ts files.

* refactor: Update imports and remove unused code in chat inline edit feature.

* feat: add fuzzyApplyRange function for applying ranges with fuzzy matching.

* refactor(Commands): Modify the creation of ChatPanelViewProvider to include additional parameters.

* refactor(chat): add SmartApplyFeature to the chat functionality.

- move some chat status to chat global
- move smart apply function to smart apply feature
- update prompt

* refactor(chat): remove smart apply code

* refactor(vscode): remove provide line range method, also update new protocol params

* refactor: rename fuzzyApplyRange.ts to SmartRange.ts and update functions, also remove indent param

* refactor(chat): update SmartApplyFeature to handle apply range with fuzzy matching

* refactor: update chat feature to include revealing editor range functionality.

* refactor(client): remove global chat status

* refactor(vscode): separate the workspace lsp server request from the chat feature

* chore: remove unused logger

* refactor(smart-apply): still using diff llms to apply code

* docs: add comments for explaining the return value of getSmartApplyRange function.

* refactor(chat): refactor SmartApply.ts with revealEditorRange function and logger updates.

* chore: update code insertion guidelines.

* chore: remove RevealEditorRangeRequest and using existing LSP API

* chore: move smartApply to single section

* chore: remove unused dynamic feature interface

* chore: remove lsp client ShowDocRequest implementation

* chore: adding rule avoid generate \n for first line for smart apply prompt

* fix: update code style for pr 3112.

* fix(vscode): update smart apply api.

---------

Co-authored-by: Zhiming Ma <[email protected]>
  • Loading branch information
Sma1lboy and icycodes authored Oct 26, 2024
1 parent 7385067 commit 7656965
Show file tree
Hide file tree
Showing 27 changed files with 1,268 additions and 494 deletions.
2 changes: 2 additions & 0 deletions clients/tabby-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@types/fast-levenshtein": "^0.0.4",
"@types/fs-extra": "^11.0.1",
"@types/glob": "^7.2.0",
"@types/js-levenshtein": "^1.1.3",
"@types/mocha": "^10.0.1",
"@types/node": "18.x",
"@types/object-hash": "^3.0.0",
Expand All @@ -68,6 +69,7 @@
"file-stream-rotator": "^1.0.0",
"fs-extra": "^11.1.1",
"glob": "^7.2.0",
"js-levenshtein": "^1.1.6",
"jwt-decode": "^3.1.2",
"lru-cache": "^9.1.1",
"mac-ca": "^2.0.3",
Expand Down
Loading

0 comments on commit 7656965

Please sign in to comment.