- Introduce copiedDirectory flag to track directory creation
- Restructure conditional logic for better flow control
- Improve error handling and logging for directory operations
- Add fallback for relative path calculation
- Handle cases where workspaceDir is undefined
- Ensure fileSelected is used when no workspace folder exists
- Implement ensureChatPanel function call in command
- Enhance user experience by automatically opening plugin window
- Improve workflow efficiency for DevChat interactions
- Add trace logging for local service port in DevChatClient
- Implement logging in three methods: constructor, reset, and
setLocalServicePort
- Enhance debugging capabilities for local service connections
- Implement getCondaForgeUrl function to fetch URL from config
- Use configurable URL in Python installation process
- Add error handling and fallback to default URL if needed
- Added missing directory path for Merico scripts
- Updated directory existence check to use the new path
- Ensured workflow commands are correctly installed
- Added try-catch blocks to handle errors in creating task description context.
- Added logging for errors in creating call definition context, similar block context, symbol context, recent edit context, and neighbor file context.
- Wrapped the main function logic in a try-catch block to log errors in createPrompt.
Update the workflow command list automatically when new workflows are registered
or modified. This ensures the command list displayed to the user is always current
and accurate, eliminating the need for manual refreshes.
Add a new endpoint `/get_local_service_port` to ide_services for obtaining the port
number of the local service. This endpoint utilizes the `getLocalServicePort` function,
which logs the local service port and retrieves it from the environment variable
`DC_LOCALSERVICE_PORT`.
Modify the workflow update mechanism to include asynchronous updates for custom workflows
in addition to the standard workflows. This ensures that both default and custom workflows
are updated efficiently, improving the overall functionality and user experience within the
DevChat environment.
BREAKING CHANGE: Custom workflow updates now occur asynchronously alongside standard
workflow updates. This may affect downstream systems that rely on synchronous workflow
updates. Systems should now handle the asynchronous nature of custom workflow updates.
- Introduce "Fix using DevChat" as a preferred quick fix action
- Rename existing quick fix command to "Ask DevChat"
- Update package.json and TypeScript files to reflect new commands
- Implement selectRange function in UnofficialEndpoints
- Add select_range endpoint to functionRegistry
- Import vscode module for text editor operations
- Introduce conditional check for DC_LOCALSERVICE_PORT
- Call getWorkflowCommandList if local service port is set
- Enhance handleRegCommandList function with new logic
- Implement start and stop functionality for local service
- Register new command to start local service
- Add error handling for local service shutdown
- Add local service start/stop functionality
- Integrate local service port discovery and setup
- Update DevChatClient to use dynamic port from environment
- Implement applyDiffToCode function for code editing
- Add getCodeEditorPath to locate platform-specific binaries
- Integrate new functionality with existing diff display system
- Add handling for OPTIONS requests in RPC server
- Return 200 status with JSON response for OPTIONS
- Update diffApply function keys to include "autoedit"
- Introduce autoedit parameter in diffApply function
- Implement conditional logic for code application method
- Use applyEditCodeWithDiff when autoedit is true
- Refactor quick fix command to use document, range, and diagnostic
- Remove code collapsing and surrounding code extraction
- Update command arguments to pass document, range, and diagnostic
- Adjusted collapseCodeBlock function to respect complete_context_limit
- Implemented prefix and suffix length limiting to prevent exceeding limit
- Ensured code completion does not exceed context limit even with folded functions
Closes#403
- Removed messageHistory utility and related functions
- Updated loadTopicHistoryFromCurrentMessageHistory to fetch logs directly
- Removed addMessageToHistory and message deletion from messageHistory
- Modified registerQuickFixCommand to be an async function
- Updated generatePrompt to also be async and handle active editor context
- Improved error handling and context management in prompt generation