Skip to content

Releases: devchat-ai/devchat-vscode

v0.1.18

04 Aug 08:32
bc10fc5

Choose a tag to compare

Highlights

  • Added a feature to display a message at the top of the chat history when scrolled to the top (#227)
  • Adjusted margin in MessageHeader component for better UI (#228)
  • Added devchat png (#229)
  • Separate handling for OpenAI and DevChat API keys (#226)
  • Updated API key validation and handling (#225)
  • Refactored symbol definition and reference retrieval (#224)

Change Log

Improvements

Bug Fixes

  • Adjusted margin in MessageHeader component for better UI (96bef7f)
  • Changed location of temporary file in pip_cmd_run function (999edb5)
  • Updated pip command functions in install.py (a3ccb0d)

API Changes

  • Separate handling for OpenAI and DevChat API keys (e2e761f)
  • Updated API key validation and handling (bef66fb)

Documentation

v0.1.17

25 Jul 09:42
475b04d

Choose a tag to compare

Highlights

  • Refactored DevChat installation error handling
  • Fixed symbol reference bug
  • Improved symbol reference detection in SymbolRefAction
  • Refactored select context action into select text and select block actions
  • Added CurrentDocumentAction and SelectContextAction

Change Log

Improvements

  • Refactored DevChat installation error handling, removed unnecessary if-else condition for errorInstall, moved devchatCommandEnv extraction outside the if-else block, added condition to check if devchatCommandEnv exists before updating configuration and setting devchatStatus, and added else block to handle case when devchatCommandEnv is undefined (8566b37)
  • Improved symbol reference detection in SymbolRefAction, added a function to check if the symbol at a given index is the correct symbol, adjusted the getSymbolPosition function to use the new check function, enhanced the findSymbolInWorkspace function to handle more edge cases, and added more logging for better debugging and traceability (6681ed6)
  • Refactored select context action into select text and select block actions, split the SelectContextAction into two separate actions: SelectTextAction and SelectBlockAction, updated the ActionManager to register these new actions, SelectTextAction retrieves the selected text in the active document, SelectBlockAction retrieves the entire block of code in the active document, such as a function, when a part of it is selected (2fa11df)

Bug Fixes

  • Fixed symbol reference bug (b35fd5d)
  • Fixed string interpolation in devchat version logging, corrected the syntax for string interpolation in the log message that displays the devchat version and the expected version (a1b1241)

New Features

  • Added CurrentDocumentAction and SelectContextAction to ActionManager, created new files for CurrentDocumentAction and SelectContextAction, CurrentDocumentAction retrieves the current active document, SelectContextAction retrieves the selected information in the current document (9074b57)

v0.1.16: Merge pull request #217 from devchat-ai/fix_symbole_ref_error

24 Jul 13:17
5dbf71f

Choose a tag to compare

Highlights

  • Fixed symbol reference error
  • Enhanced SymbolDefAction and SymbolRefAction classes
  • Improved error handling in symbol reference action

Change Log

Bug Fixes

  • Fixed symbol reference error (5dbf71f)

Improvements

  • Enhanced SymbolDefAction and SymbolRefAction classes with the following changes:
    • Added new imports and removed unused ones (bf8a4b1)
    • Refactored findSymbolInWorkspace function in SymbolDefAction to include symbol line and file (bf8a4b1)
    • Added checks for absolute path for symbol file in handlerAction method of SymbolDefAction (bf8a4b1)
    • Updated args in SymbolDefAction constructor to include line and file (bf8a4b1)
    • Made getSymbolPosition function in SymbolRefAction exportable and updated its usage in SymbolDefAction (bf8a4b1)
    • Minor changes in SymbolRefAction to improve code readability and efficiency (bf8a4b1)
  • Improved error handling in symbol reference action with the following changes:
    • Added null checks before processing reference locations and symbols (6342c6e)
    • Ensured that symbol children are processed only if they exist (6342c6e)
    • Added a check to continue the loop if a symbol is not found (6342c6e)

v0.1.15

24 Jul 05:53
701c0d7

Choose a tag to compare

Highlights

  • Implemented delete message functionality in chat panel
  • Refactored CurrentMessage component in chat feature
  • Updated condition in deleteMessage method
  • Refactored ActionManager class initialization
  • Refactored CodeBlock.tsx to extract CodeButtons component
  • Improved symbol search in workspace
  • Implemented system message handling in chat panel
  • Updated DevChat version and refactor log handling
  • Added new action to retrieve symbols in a file
  • Enhanced symbol reference action functionality
  • Refactored symbol definition data structure
  • Implemented auto execution of commands in MessageHandler
  • Enhanced symbol definition and reference actions
  • Updated message deletion and topic management
  • Added functionality to find last non-empty hash
  • Added delete icon to MessageHeader component
  • Added edit message functionality to MessageHeader

Change Log

Improvements

  • Refactored CurrentMessage component in chat feature (f42e0f6)
  • Refactored ActionManager class initialization (070695b)
  • Refactored CodeBlock.tsx to extract CodeButtons component (8ab647f)
  • Improved symbol search in workspace (218d578)
  • Added new action to retrieve symbols in a file (f389a7b)
  • Enhanced symbol reference action functionality (5a6da1c)
  • Refactored symbol definition data structure (69373a4)
  • Enhanced symbol definition and reference actions (8c67b7f)
  • Added functionality to find last non-empty hash (38598d1)
  • Added delete icon to MessageHeader component (90d0064)
  • Added edit message functionality to MessageHeader (9e056e2)

Bug Fixes

  • Updated condition in deleteMessage method (a7b1953)
  • Updated message deletion and topic management (c1b8ee2)

Documentation

Other Changes

  • Implemented delete message functionality in chat panel (1957ddd)
  • Implemented system message handling in chat panel (81fc4be)
  • Updated DevChat version and refactor log handling (45e4af7)
  • Implemented auto execution of commands in MessageHandler (dbdf67d)

v0.1.14

06 Jul 03:55
e1d939c

Choose a tag to compare

Highlights

  • Added a new configuration 'DevChat.PythonPath' in package.json to specify the location of the Python binary.
  • Updated the locateCommand function to split the output of the 'where' and 'which' commands and return the first line.
  • Modified the DevChat installation command to include the '--force' flag to ensure the installation proceeds even if DevChat is already installed.
  • Added a check in commands.ts to validate the API key when setting it.

Change Log

Improvements

  • Added a new configuration 'DevChat.PythonPath' in package.json to specify the location of the Python binary. Also added a new command 'DevChat.PythonPath' to the command palette. (4290a78)
  • Updated commandsBase.ts to use the Python Path from the configuration. If the Python Path is not set in the configuration, it will use the default Python command. (4290a78)
  • Updated the locateCommand function to split the output of the 'where' and 'which' commands and return the first line. (726d5ad)
  • Modified the DevChat installation command to include the '--force' flag to ensure the installation proceeds even if DevChat is already installed. (c7997b7)
  • Added a check in commands.ts to validate the API key when setting it. If the API key is invalid, an error message is displayed to the user. (02de072)

Bug Fixes

  • Fixed the DevChat installation command to include the path in quotes to handle paths with spaces. (726d5ad)
  • Handled exceptions in the version comparison logic in a try-catch block to handle potential exceptions. If an exception occurs, the isVersionChangeCompare flag is set to false. (8e58f2f)
  • Prevented the message from being sent when the Enter key is pressed during IME composition. (0f58038)

Documentation

  • Updated README.md (b54c425)
  • Changed the tooltip label from 'Replace' to 'Replace File' in CodeBlock.tsx. This provides a clearer indication of the button's functionality. (9f222f7)

v0.1.13

06 Jul 03:52
7ee2b02

Choose a tag to compare

Highlights

  • Added a new configuration 'DevChat.PythonPath' in package.json to specify the location of the Python binary.
  • Updated the locateCommand function to split the output of the 'where' and 'which' commands and return the first line.
  • Modified the DevChat installation command to include the '--force' flag to ensure the installation proceeds even if DevChat is already installed.
  • Added a check in commands.ts to validate the API key when setting it.

Change Log

Improvements

  • Added a new configuration 'DevChat.PythonPath' in package.json to specify the location of the Python binary. Also added a new command 'DevChat.PythonPath' to the command palette. (4290a78)
  • Updated commandsBase.ts to use the Python Path from the configuration. If the Python Path is not set in the configuration, it will use the default Python command. (4290a78)
  • Updated the locateCommand function to split the output of the 'where' and 'which' commands and return the first line. (726d5ad)
  • Modified the DevChat installation command to include the '--force' flag to ensure the installation proceeds even if DevChat is already installed. (c7997b7)
  • Added a check in commands.ts to validate the API key when setting it. If the API key is invalid, an error message is displayed to the user. (02de072)

Bug Fixes

  • Fixed the DevChat installation command to include the path in quotes to handle paths with spaces. (726d5ad)
  • Handled exceptions in the version comparison logic in a try-catch block to handle potential exceptions. If an exception occurs, the isVersionChangeCompare flag is set to false. (8e58f2f)
  • Prevented the message from being sent when the Enter key is pressed during IME composition. (0f58038)

Documentation

  • Updated README.md (b54c425)
  • Changed the tooltip label from 'Replace' to 'Replace File' in CodeBlock.tsx. This provides a clearer indication of the button's functionality. (9f222f7)

v0.1.12

16 Jun 02:32
1722286

Choose a tag to compare

Highlights

  • Prevent duplicate binPath in PATH environment variable
  • Improve error handling in DevChat dependency check
  • Refactor historyMessagesBase to accept topicId as parameter
  • Allow Tab key to select command in InputMessage
  • Improve chat history pagination and fetching

Change Log

Improvements

  • Prevent duplicate binPath in PATH environment variable (35215a7)
  • Improve DevChat dependency check and logging (9820571)
  • Refactor historyMessagesBase to accept topicId as parameter (1feb9dd)
  • Allow Tab key to select command in InputMessage (76ec8c0)
  • Improve chat history pagination and fetching (439838b)
  • Update import paths with alias (bcdc78d)
  • Update ChatPanel to handle scroll position and message fetching (9a906a1)
  • Refactor history messages fetching (ec440be)
  • Refactor command menu fetching (b4a8839)
  • Refactor context menu fetching (e594ef7)

Bug Fixes

  • Temporarily disable message loading logic (fdbe1d0)
  • Remove default message and simplify MessageContainer (799c87a)

Code Refactoring

  • Refactor directory structure (7f25e42)

v0.1.11

14 Jun 11:51
7258a41

Choose a tag to compare

Highlights

  • Added PYTHONUTF8 environment variable to DevChat for proper UTF-8 encoding handling
  • Improved error handling for secretStorageGet

Change Log

Improvements

  • Added PYTHONUTF8 environment variable to DevChat (f50e211)
    • Set PYTHONUTF8 to 1 in the DevChat class
    • Ensures proper handling of UTF-8 encoding

Bug Fixes

  • Handle secretStorageGet errors (baaaafa)
    • Wrapped secretStorageGet in a try-catch block
    • Logged errors to the logger channel
    • Returned undefined in case of an error

v0.1.10

13 Jun 10:07
403ed32

Choose a tag to compare

Highlights

  • Refactor checkDevChatDependency to accept pythonCommand
  • Update welcome message to include SVN repositories
  • Add getValidPythonCommand function and improve dependency check
  • Improve statusBarView tooltip and command handling

Change Log

Improvements

  • Refactor checkDevChatDependency to accept pythonCommand (5fc21c1)
  • Update welcome message to include SVN repositories (8ccf73b)
  • Replace 'path' with 'fsPath' in registerAddContextCommand (ae15158)
  • Add getValidPythonCommand function and improve dependency check (abba2c7)
  • Improve statusBarView tooltip and command handling (d349ea4)
  • Add terminal disposal before running new command (22a5705)

Bug Fixes

  • Load topics only when a workspace is open (eba9fa9)
  • Don't focus on output while devchat check fails (659e35e)

Other Changes

  • Load topics even when no folder is opened (e65bef0)
  • Replace covespace with devchat-ai (bd248f1)
  • Update log text (3fc21b9)
  • Update logger output (4e24944)
  • Merge pull request #179 from covespace/log_devchat_fail_reason (427f27c)
  • Update DevChat installation command (2503da5)
  • Improve DevChat dependency check and error handling (13f1615)

v0.1.9

09 Jun 05:52
857f73a

Choose a tag to compare

Highlights

  • Improved message handling with Redux integration
  • Fixed versionChanged assignment in statusBarViewBase.ts
  • Added edit functionality to custom contexts

Change Log

Improvements

  • Integrated Redux for state management in InputMessage, ChatPanel, and MessageContainer components (042fa27, 51a2e66, 7ebf801, 1771e87, 6a07445, b8e53f6)
  • Introduced custom hooks for Redux store (4b5279c)
  • Refactored InputMessage and inputSlice for menu handling (a58d558)
  • Added text truncation to InputMessage and MessageContainer (76e1f94)
  • Added keys to mapped elements in ChatPanel components (c608605)
  • Updated instructions in code and commit_message workflows (adec218)

Bug Fixes

  • Fixed versionChanged assignment in statusBarViewBase.ts (dde0ff2)
  • Fixed context mapping in ChatPanel (dd6146f)
  • Fixed tree command in tree context setting.json (ad9ec22)
  • Fixed stopDevChat message sending (8d27136)
  • Fixed svg DOM property invalid (056f6da)

Refactoring

  • Refactored topicManager.ts to use firstMessageHash (4d483a2)
  • Explicitly defined array types in sendMessageBase.ts (f510d1d)
  • Removed unused imports from App.tsx (62a7542)

Documentation