948 Commits

Author SHA1 Message Date
小石头
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
bobo.yang
256c214213 feat: Add logger and log info in CodeLensProvider
- Add logger and log info to log the number of functionDefinitions, innerFunctionDefinitions, and registered codeLenses in the document
- Modify the loadConfig method to initialize config if registrations array is empty
- Check for document languageId before providing codeLenses
- Update fs.readFileSync method to use "utf-8" instead of "utf8"
2024-01-29 17:04:57 +08:00
Rankin Zheng
94c45654b9 Commented out apiKeyInvalidMessage() function call in historyMessagesBase.ts 2024-01-25 16:07:36 +08:00
Rankin Zheng
a86cc78398 Add async keyword to handleUri function and add delay before reloading webview 2024-01-25 10:35:14 +08:00
Rankin Zheng
73a3acc531
Merge pull request #416 from devchat-ai/feat/uri
Feat/uri
2024-01-24 18:03:34 +08:00
Rankin Zheng
9d5dc071a4 Add chat panel and reload webview 2024-01-24 17:58:08 +08:00
bobo.yang
37e0cc8440 fix: Ensure sidebar activation on 'Add Tests' click
- Introduced a delay to ensure the sidebar is activated
- Fixed issue where initial 'Add Tests' click was unresponsive
- Enhanced user experience by removing need for double-clicking
2024-01-23 16:10:23 +08:00
bobo.yang
181fe2ea2a fix: Resolve command execution error in DevChat
- Reordered the registration of CodeLens provider for correctness
2024-01-23 16:09:17 +08:00
bobo.yang
20b29484d4 fix: Improve error handling to log warnings
- Conditional checks added to log stderr as warnings instead of errors
- Ensured incidental stderr output doesn't imply execution failure
- Refactored error handling consistent with devchat-core behavior expectations

Closes #200
2024-01-23 10:23:22 +08:00
smallstone
f2ab969f88 Add registerHandleUri command 2024-01-18 17:52:55 +08:00