Merge branch 'preview' of https://github.com/continuedev/continue into preview
This commit is contained in:
commit
58111271e3
6 changed files with 11 additions and 9 deletions
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
### Answer coding questions
|
||||
|
||||
Highlight sections of code and ask Continue for another perspective
|
||||
Highlight (select and press `cmd+shift+M` (MacOS) / `ctrl+shift+M` (Windows)) sections of code and ask Continue for another perspective
|
||||
|
||||
- “what does this forRoot() static function do in nestjs?”
|
||||
- “why is the first left join in this query necessary here?”
|
||||
|
|
@ -40,7 +40,7 @@ Highlight sections of code and ask Continue for another perspective
|
|||
|
||||
### Edit in natural language
|
||||
|
||||
Highlight a section of code and instruct Continue to refactor it
|
||||
Highlight (select and press `cmd+shift+M` (MacOS) / `ctrl+shift+M` (Windows)) a section of code and instruct Continue to refactor it
|
||||
|
||||
- “/edit rewrite this to return a flattened list from a 3x3 matrix”
|
||||
- “/edit refactor these into an angular flex layout on one line"
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ const EditSlashCommand: SlashCommand = {
|
|||
);
|
||||
|
||||
if (!contextItemToEdit) {
|
||||
yield "Highlight the code that you want to edit first";
|
||||
yield "Highlight (select and press `cmd+shift+M` (MacOS) / `ctrl+shift+M` (Windows)) the code that you want to edit first";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ As you use Continue more, you will learn when to trust it. A great way to get st
|
|||
|
||||
If you are trying to use it for a new task and don’t have a sense of how much Continue can help you complete it, it can often be helpful to start like this:
|
||||
|
||||
'Highlight' refers to the act of selecting a text range in a file and pressing 'cmd+shift+M' (Macos) or 'ctrl+shift+M' (Windows) to include it in the Continue chat message.
|
||||
|
||||
1. Highlight the code section(s) that you don’t understand and type "tell me how this code works" in the input box
|
||||
2. If the explanation seems reasonable, then, while still highlighting the code section(s), type "how would you change this code to [INSERT TASK]?"
|
||||
3. If this explanation is also pretty good, then, while still highlighting the code section(s), type `/edit [INSERT TASK]`. If you like the suggested diff, use `cmd+shift+enter` to accept the changes.
|
||||
|
|
|
|||
4
extensions/vscode/package-lock.json
generated
4
extensions/vscode/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "continue",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.2",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "continue",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.2",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@electron/rebuild": "^3.2.10",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "continue",
|
||||
"icon": "media/icon.png",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.2",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/continuedev/continue"
|
||||
|
|
|
|||
|
|
@ -331,10 +331,10 @@ function TipTapEditor(props: TipTapEditorProps) {
|
|||
item,
|
||||
},
|
||||
})
|
||||
.focus("end")
|
||||
.run();
|
||||
await new Promise((resolve) => setTimeout(resolve, 100));
|
||||
editor.commands.focus("end");
|
||||
setTimeout(() => {
|
||||
editor.commands.focus("end");
|
||||
}, 100);
|
||||
}
|
||||
setIgnoreHighlightedCode(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue