summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--continuedev/src/continuedev/core/config.py39
-rw-r--r--continuedev/src/continuedev/libs/constants/default_config.py.txt31
-rw-r--r--extension/package-lock.json4
-rw-r--r--extension/package.json2
4 files changed, 34 insertions, 42 deletions
diff --git a/continuedev/src/continuedev/core/config.py b/continuedev/src/continuedev/core/config.py
index e367e06c..9fbda824 100644
--- a/continuedev/src/continuedev/core/config.py
+++ b/continuedev/src/continuedev/core/config.py
@@ -54,45 +54,6 @@ class ContinueConfig(BaseModel):
context_providers: List[ContextProvider] = []
- # Want to force these to be the slash commands for now
- @validator('slash_commands', pre=True)
- def default_slash_commands_validator(cls, v):
- from ..plugins.steps.open_config import OpenConfigStep
- from ..plugins.steps.clear_history import ClearHistoryStep
- from ..plugins.steps.feedback import FeedbackStep
- from ..plugins.steps.comment_code import CommentCodeStep
- from ..plugins.steps.main import EditHighlightedCodeStep
-
- DEFAULT_SLASH_COMMANDS = [
- SlashCommand(
- name="edit",
- description="Edit code in the current file or the highlighted code",
- step=EditHighlightedCodeStep,
- ),
- SlashCommand(
- name="config",
- description="Open the config file to create new and edit existing slash commands",
- step=OpenConfigStep,
- ),
- SlashCommand(
- name="comment",
- description="Write comments for the current file or highlighted code",
- step=CommentCodeStep,
- ),
- SlashCommand(
- name="feedback",
- description="Send feedback to improve Continue",
- step=FeedbackStep,
- ),
- SlashCommand(
- name="clear",
- description="Clear step history",
- step=ClearHistoryStep,
- )
- ]
-
- return DEFAULT_SLASH_COMMANDS + v
-
@validator('temperature', pre=True)
def temperature_validator(cls, v):
return max(0.0, min(1.0, v))
diff --git a/continuedev/src/continuedev/libs/constants/default_config.py.txt b/continuedev/src/continuedev/libs/constants/default_config.py.txt
index 2210667d..1a66c847 100644
--- a/continuedev/src/continuedev/libs/constants/default_config.py.txt
+++ b/continuedev/src/continuedev/libs/constants/default_config.py.txt
@@ -13,6 +13,12 @@ from continuedev.core.config import CustomCommand, SlashCommand, ContinueConfig
from continuedev.plugins.context_providers.github import GitHubIssuesContextProvider
from continuedev.plugins.context_providers.google import GoogleContextProvider
+from continuedev.plugins.steps.open_config import OpenConfigStep
+from continuedev.plugins.steps.clear_history import ClearHistoryStep
+from continuedev.plugins.steps.feedback import FeedbackStep
+from continuedev.plugins.steps.comment_code import CommentCodeStep
+from continuedev.plugins.steps.main import EditHighlightedCodeStep
+
class CommitMessageStep(Step):
"""
@@ -69,6 +75,31 @@ config = ContinueConfig(
# description="This is an example slash command. Use /config to edit it and create more",
# step=CommitMessageStep,
# )
+ SlashCommand(
+ name="edit",
+ description="Edit code in the current file or the highlighted code",
+ step=EditHighlightedCodeStep,
+ ),
+ SlashCommand(
+ name="config",
+ description="Open the config file to create new and edit existing slash commands",
+ step=OpenConfigStep,
+ ),
+ SlashCommand(
+ name="comment",
+ description="Write comments for the current file or highlighted code",
+ step=CommentCodeStep,
+ ),
+ SlashCommand(
+ name="feedback",
+ description="Send feedback to improve Continue",
+ step=FeedbackStep,
+ ),
+ SlashCommand(
+ name="clear",
+ description="Clear step history",
+ step=ClearHistoryStep,
+ )
],
# Context providers let you quickly select context by typing '@'
diff --git a/extension/package-lock.json b/extension/package-lock.json
index 5d0b0c56..5e2a7e2a 100644
--- a/extension/package-lock.json
+++ b/extension/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "continue",
- "version": "0.0.222",
+ "version": "0.0.223",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "continue",
- "version": "0.0.222",
+ "version": "0.0.223",
"license": "Apache-2.0",
"dependencies": {
"@electron/rebuild": "^3.2.10",
diff --git a/extension/package.json b/extension/package.json
index 942c844c..507e00b8 100644
--- a/extension/package.json
+++ b/extension/package.json
@@ -14,7 +14,7 @@
"displayName": "Continue",
"pricing": "Free",
"description": "The open-source coding autopilot",
- "version": "0.0.222",
+ "version": "0.0.223",
"publisher": "Continue",
"engines": {
"vscode": "^1.67.0"