Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(chat-ui): add smart apply to chat panel (#3112)
* 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