957 Commits

Author SHA1 Message Date
boob.yang
2a5fb709fb
Merge pull request #467 from devchat-ai/bugfix/chat-output-jumble-#293
Fix output disruption by preventing duplicate chat command execution
2024-03-15 11:51:15 +08:00
bobo.yang
0a74fd6dd5 fix: Prevent duplicate chat command execution
- Added a check to prevent sending a new command if one is already in progress
- Utilized UiUtilWrapper to display an error message when a second command is attempted
- Ensured that the check is reset after the command execution completes
2024-03-15 11:47:02 +08:00
小石头
7e64e1e234 Fix typo in objectName value 2024-03-14 23:06:34 +08:00
小石头
dda0ec3207 Update Devchat commands and titles 2024-03-12 21:20:03 +08:00
bobo.yang
fa03786854 refactor: Adjust selection range for function docstrings
- Ensured selection range now includes the last line
- Fixed an issue causing line duplication during refactoring
- Improves accuracy for function extraction in docstrings
2024-03-12 16:49:21 +08:00
bobo.yang
33a4ee14f1 refactor: Remove usage of deprecated contexts and APIs
- Comment out refDefsContext and defRefsContext usage in loadContexts
- Replace accessKey logic with defaultModel in several files
- Remove unused functions related to API key handling

Closes #286
2024-03-10 16:35:10 +08:00
bobo.yang
70ea72fabe refactor: Optimize file content retrieval
- Removed redundant getFileContent function from diffHandler
- Centralized getFileContent into commonUtil for shared usage
- Adjusted imports in devchat to reflect the new location
2024-03-10 16:34:07 +08:00
bobo.yang
655a9e52f8 feat: Integrate Claude3 models into vscode extension
- Updated package.json to include support for claude-3 models
- Removed references to claude-2 models in extension and ApiKeyManager
- Added API functionality and configured default settings for new models
2024-03-10 16:32:16 +08:00
小石头
5be13ca16c Update DevChat commands and add comment generation 2024-03-08 16:11:57 +08:00
小石头
19b1280222 Update submodules in gui and workflowsCommands 2024-03-07 18:50:38 +08:00
bobo.yang
8b020ec700 fix: Handle VSCode initialization failure gracefully
- Wrap configuration update calls in try-catch to catch and log errors
- Ensure plugin initialization continues despite non-existent model data
- Log errors using `logger.channel()` for easier debugging and monitoring
2024-03-02 13:10:42 +08:00
kagami
ed8a3779d3 Implement /find_def_locations in IDE Service 2024-02-27 16:14:01 +08:00
Rankin Zheng
d07a8e0c86 chore: Add comments to improve code readability
- Added detailed comments to the isProviderHasSetted function to enhance understandability.
- Ensured comments include a brief description and the return type expectation.
- Aimed to address feedback on code documentation for better maintenance.

Closes #275
2024-02-23 13:02:43 +08:00
bobo.yang
98423e2ad3 fix: Trim API key whitespace
- Trim leading/trailing whitespace from OPENAI_API_KEY
- Prevent misleading 'APIConnectionError' due to key format
- Ensure API keys are in a valid format before network requests

Closes #265
2024-02-18 20:51:01 +08:00
bobo.yang
a6cc1b8221 fix: Improve config checks to prevent launch failures
- Added null checks to configuration retrieval to prevent failures
- Ensured default configurations are provided for missing settings
- Modified activation sequence to prevent errors with uninitiated UI utils
2024-02-18 16:33:07 +08:00
bobo.yang
2e607f3bad fix: Ensure devchat subprocesses terminate on IDE close
- Added a deactivate function to handle IDE shutdown events
- Utilize stopDevChatBase to terminate devchat subprocesses
- Included necessary import for the constants module
2024-02-09 09:54:03 +08:00
bobo.yang
9ed798e1e1 feat: Streamline DevChat log insertion and retrieval
- Combine log insertion and retrieval steps into a single action
- Modify logInsert method to return an array of LogEntry objects
- Ensure backward compatibility by adapting existing code to new returns
2024-02-09 09:31:38 +08:00
bobo.yang
9dcc0220d9 fix: Normalize file path case for pairing
- Convert file1 and file2 to lowercase before adding to filePairs
- Look up file pairs using lowercase file paths
- This addresses case sensitivity issues in file path on Windows
2024-02-08 20:53:21 +08:00
bobo.yang
e52188815e feat: Add /ide_name endpoint to services
- Added a new endpoint /ide_name to return the IDE name
- Implemented handler to return hardcoded "vscode" as the IDE name
- Moved "/diff_apply" endpoint definition within functionRegistry
2024-02-08 13:11:21 +08:00
bobo.yang
d87b7c5801 feat: Implement shortcut for DevChat input focus
- Added keybindings for DevChat input focus shortcut
- Implemented focusHandler to focus on DevChat input upon shortcut
2024-02-07 17:37:02 +08:00
bobo.yang
2bd5d3ebf8 feat: Implement model default parameter settings
- Define model specific max_input_tokens to prevent overflow errors
- Ensure default token limits are set for each model configuration
- Integrate the default parameter setup within the activation process
2024-02-06 11:31:44 +08:00
bobo.yang
4697eba908 refactor: Remove deprecated topicView components
- Deleted old topicView.ts as part of phasing out the view
- Removed the associated topicManager.ts which exclusively served topicView
- This commit will clean up the code after full transition to webview
2024-02-05 16:30:02 +08:00
bobo.yang
dd01e78da4 refactor: Remove legacy TopicView components
- Deleted obsolete TopicManager & TopicTreeDataProvider classes
- Cleaned up Topic related logic across several modules
- Replaced TopicManager usage with new methods after webview migration
2024-02-05 16:29:00 +08:00
bobo.yang
f3f0e0be48 Add import for os module and handle case when workspaceDir is not available 2024-02-05 15:02:07 +08:00
bobo.yang
ec5e780b58 fix: Enforce max token limits for GPT-4 configurations
- Added "max_input_tokens" property to configuration settings
- Adjusted default values for "max_tokens" to ensure proper limit
- Renamed "gpt-4-1106-preview" to "gpt-4-turbo-preview" for consistency
2024-02-05 14:47:20 +08:00
bobo.yang
a76e74cd7a fix: Correct topic deletion logic for VSCode plugin
- Simplified deletion logic in topicManager
- Now correctly records topic IDs in .deletedTopics
- Ensures topics are removed as intended from the application state
2024-02-05 11:43:18 +08:00
bobo.yang
eb9fcdede9 filter topics which are deleted. 2024-02-05 11:19:01 +08:00
bobo.yang
9174110805 use TopicEntry as getTopics result 2024-02-05 11:19:01 +08:00
bobo.yang
2beb8e34da feat: Add topic management and update message history retrieval
- Implement new topicHandler with getTopics and deleteTopic functions
- Refactor historyMessagesHandler to accept topicId for message retrieval
- Adjust historyMessagesBase function signature to take topicId as an argument
2024-02-05 11:19:01 +08:00
bobo.yang
81c0e8be73 refactor: Simplify topic interaction in UI
- Remove topic-related views, commands, and handlers from the codebase
- Refactor code to align with the new unified topic interaction method
- Streamline UI by eliminating unnecessary elements and consolidating views
2024-02-05 11:19:01 +08:00
bobo.yang
0f36d8a855 feat: Add support for new LLM models in VSCode plugin
- Add Model.CodeLlama-70b config settings support
- Implement Model.Mixtral-8x7B and Model.Minimax-abab6 support
- Modify UI and API integration to facilitate new model selections
2024-02-05 11:12:03 +08:00
bobo.yang
7f8694ff26 feat: Add path property to command struct
- Include 'path' field in Command interface for directory awareness
- Add 'path' to command object creation for devchat run listing
- Update CommandEntry interface in devchat tool wrapper to hold 'path'
2024-02-03 16:12:37 +08:00
kagami
fe6cd9ec84 Add return type annotation for getDocumentSymbols 2024-02-02 23:08:19 +08:00
kagami
3e011c8a1d Implement find_type_def_locations 2024-02-02 23:08:19 +08:00
bobo.yang
20cde3b8f9 Update default model in saveModelSettings function 2024-02-02 10:28:46 +08:00
boob.yang
b935da2746
Merge pull request #430 from devchat-ai/ide-logging
Implement ide_logging to handle different log levels
2024-02-02 08:52:23 +08:00
bobo.yang
59ad9088cd feat: Update devchat-api with latest LLMs
- Remove deprecated 1106 and 16k GPT-3.5 model configs
- Update GPT-3.5 config to latest stable version
- Update Claude, Xinghuo, GLM, ERNIEbot to latest versions
- Adjust default model to Claude 2.1
- Validate and test latest model integrations
2024-02-01 22:39:56 +08:00
kagami
80161a1367 Implement ide_logging to handle different log levels 2024-02-01 22:29:57 +08:00
bobo.yang
9144da9154 refactor: Streamline UnofficialEndpoints codebase
- Remove unnecessary endpoint functions related to editor actions
- Simplify the JSON serialization process for VSCode data objects
- Add `runCode` function to facilitate executing code snippets

Closes #234
2024-02-01 17:50:50 +08:00
kagami
3e31a168ea Implement get_document_symbols 2024-02-01 12:01:01 +08:00
kagami
c632dbd57a Add type definitions for ide service protocol 2024-02-01 12:00:28 +08:00
kagami
4aa196ff80 Sort service endpoints and format the file 2024-01-31 23:59:02 +08:00
kagami
bfa0fe0c39 Relocate conversion functions for unofficial endplints 2024-01-31 23:51:58 +08:00
kagami
09d8c56fa5 Mark endpoints of language-bridge as legacy and deprecated 2024-01-31 23:43:33 +08:00
kagami
cc0aeeafd2 Move implementation of endpoints to its own file 2024-01-31 23:32:57 +08:00
kagami
dbcb252df8 Group unofficial ide service endpoints 2024-01-31 23:10:20 +08:00
bobo.yang
ab25a6936b fix: Correct substructure info in document symbols
- Change condition for DocumentSymbol substructure processing
- Use symbol.children instead of instance type check
- Ensures complete information is returned by interface
2024-01-31 12:42:49 +08:00
bobo.yang
042a3ec308 fix error 2024-01-31 11:56:31 +08:00
bobo.yang
704963e47f add get_symbol_defines_in_selected_code for add_tests workflow 2024-01-31 11:52:52 +08:00
bobo.yang
165fafa7ba Fix contextInfo handling in sendMessage.ts 2024-01-30 17:51:02 +08:00