- Calculate and check if inserted text range is within visible area
- Ensure newly inserted text is centered in viewport if previously hidden
- Refactor applyCode function to include visibility checks
- Update async/await in command handling for improved performance
- Refactor updateSysCommand and sendCommandListByDevChatRun functions
- Handle errors during updateSysCommand more efficiently
Closes#156
- Added fileHandler.ts for handling read and write file operations
- Registered readFile and writeFile handlers in handlerRegister.ts
- Imported readFile and writeFile in handlerRegister.ts
- Added new LSP functions for symbol conversion and execution provider command
- Updated diffHandler to handle webviewPanel or webviewView for code application
- Modified lsp.ts file to incorporate new functions for range conversions
Closes#1234
- In runVSCodeCommand.ts, added a condition to convert the first argument to a Uri if the command is 'vscode.open'.
- In sendMessage.ts, added logic to prepend the previous command to the message text if the message starts with '/'.
- In commonUtil.ts, modified the spawnAsync function to replace arguments starting with '$' with their corresponding environment variable values.
- In handler.py, added code to create parent directories for a new file if they don't exist.
- Modified the getSetting function in updateConfig.ts to include key1 and key2 in the outgoing message.
- Adjusted the registration of the incoming message for getUserAccessKey in userAccessKey.ts to not expect key1 and key2.
- Imported getUserAccessKey in loadHandlers.ts and registered it as a message handler.
- Created a new file userAccessKey.ts to handle getting user access keys.
- The getUserAccessKey function retrieves the API key, determines its type (DevChat or OpenAI), and gets the endpoint.
- If no API key is found, a message is sent with empty values.
- Added a new command "InstallCommands" to the package.json file.
- Created a new function "registerInstallCommandsCommand" in commands.ts to handle the execution of the new command.
- The function checks for a directory in the user's home directory, if it exists it performs a git pull, if not it clones a git repository.
- The function is registered in the extension.ts file.
- Added a function "sendCommandListByDevChatRun" in regCommandList.ts to send the command list.
- The new command is executed in the statusBarView.ts file.
- Updated the InputMessage component to register a handler for the 'regCommandList' message.
- Updated the InputStore to handle the new commands and removed the old "regCommandMenus" function.
- Imported DevChat and created a new method to get commands from DevChat.
- Modified processText method to use the new getCommandListByDevChatRun method.
- Updated loadHandlers and regCommandList to use the new method.
- Added new methods in DevChat to get a list of commands and run a specific command.
- Added feature toggles for beta commands in the package.json file.
- Implemented dynamic registration of commands based on feature toggles.
- Added error messages for users trying to access beta commands without the correct permissions.
- Updated the version of the devchat-ask package based on the feature toggles.
- Created a new featureToggle handler to manage feature toggles.
- Imported MessageHandler in updateConfig.ts.
- Updated getSetting function to send the fetched configuration value using MessageHandler.
- Registered an outgoing message for 'getSetting' command.
- Added getSetting function in updateConfig.ts to fetch configuration values.
- Registered getSetting in loadHandlers.ts.
- Updated the import statement in loadHandlers.ts to include getSetting.