Closed LangLangBart closed 8 months ago
@LangLangBart Both of the things you have mentioned here are part of a migration away from the Python server, so the real solution will involve better education of the transition. Full details are in this Discord thread here
But abridged version to address this issue: config.py is replaced by config.ts, which has extremely similar syntax, and is then bundled into config.js. So config.ts is the one you want to edit. And continue.log also does not exist since all logs are naturally put into the developer tools console (cmd+shift+p, "Toggle Developer Tools").
If I recall, your slash command was the generation of a commit message? I actually made a built-in slash command for this if you'd like to use it as an example: https://github.com/continuedev/continue/blob/preview/core/commands/slash/commit.ts
Full details are in this Discord thread here
Thank you. The thread explained my dilema.
If I recall, your slash command was the generation of a commit message?
Yes, I was using the CommitMessageStep
below, it placed the command on the terminal. It allowed for a quick review - I only had to press ⏎ Enter.
I will try to move it to config.ts
and close the ticket upon success.
I will try to move it to
config.ts
and close the ticket upon success.
The transition to the new format has been successful, but the new config.ts
file doesn't allow running arbitrary child processes like config.py
did. I will open a new feature request to see if the maintainer is interested in implementing this. In my case, it was about accessing the git diff
and git diff --staged
commands.
The underlying issue described in the report was invalid because the reason was the transition to the new config.ts
format, thus closing this ticket.
Before submitting your bug report
Relevant environment info
Description
My custom slash command in version
0.7.54
(2023-12-16T05:19:30.77Z) no longer appears in the dropdown. This bug report is somewhat similar to #632 in that the command doesn't show in the dropdown, but it's otherwise unrelated.The custom slash command functions well in version
0.6.15
(2023-12-08T21:46:59.053Z).Should users switch from
config.py
toconfig.{ts,js}
if they find a new.ts/.js
file in their~/.continue/
directory?To reproduce
~/.continue/config.py
and write a custom slash command, for example, the one you see in #632.Log output
No response