🩹 tweak /edit solution
This commit is contained in:
parent
4894f2e7e3
commit
6d02469005
4 changed files with 9 additions and 13 deletions
4
extensions/vscode/package-lock.json
generated
4
extensions/vscode/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "continue",
|
||||
"version": "0.9.92",
|
||||
"version": "0.8.22",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "continue",
|
||||
"version": "0.9.92",
|
||||
"version": "0.8.22",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@electron/rebuild": "^3.2.10",
|
||||
|
|
|
|||
|
|
@ -691,11 +691,6 @@
|
|||
resolved "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz"
|
||||
integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==
|
||||
|
||||
"@lancedb/vectordb-darwin-arm64@*":
|
||||
version "0.4.13"
|
||||
resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.13.tgz"
|
||||
integrity sha512-JfroNCG8yKIU931Y+x8d0Fp8C9DHUSC5j+CjI+e5err7rTWtie4j3JbsXlWAnPFaFEOg0Xk3BWkSikCvhPGJGg==
|
||||
|
||||
"@lancedb/vectordb-darwin-arm64@0.4.12":
|
||||
version "0.4.12"
|
||||
resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.12.tgz"
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import useHistory from "../../hooks/useHistory";
|
|||
import useUpdatingRef from "../../hooks/useUpdatingRef";
|
||||
import { useWebviewListener } from "../../hooks/useWebviewListener";
|
||||
import { defaultModelSelector } from "../../redux/selectors/modelSelectors";
|
||||
import { addHighlightedCode, setEditingContextItemAtIndex } from "../../redux/slices/stateSlice";
|
||||
import { setEditingContextItemAtIndex } from "../../redux/slices/stateSlice";
|
||||
import { RootState } from "../../redux/store";
|
||||
import { isMetaEquivalentKeyPressed } from "../../util";
|
||||
import { isJetBrains, postToIde } from "../../util/ide";
|
||||
|
|
@ -497,7 +497,6 @@ function TipTapEditor(props: TipTapEditorProps) {
|
|||
editor.commands.blur();
|
||||
editor.commands.focus("end");
|
||||
}, 20);
|
||||
dispatch(addHighlightedCode({rangeInFileWithContents: rif, edit: true}));
|
||||
}
|
||||
setIgnoreHighlightedCode(false);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -239,7 +239,8 @@ export const stateSlice = createSlice({
|
|||
contextItems: [],
|
||||
});
|
||||
|
||||
state.contextItems = state.contextItems;
|
||||
// https://github.com/continuedev/continue/pull/1021
|
||||
// state.contextItems = [];
|
||||
state.active = true;
|
||||
},
|
||||
initNewActiveMessage: (
|
||||
|
|
@ -262,7 +263,8 @@ export const stateSlice = createSlice({
|
|||
},
|
||||
contextItems: [],
|
||||
});
|
||||
state.contextItems = state.contextItems;
|
||||
// https://github.com/continuedev/continue/pull/1021
|
||||
// state.contextItems = [];
|
||||
state.active = true;
|
||||
},
|
||||
setMessageAtIndex: (
|
||||
|
|
@ -402,7 +404,7 @@ export const stateSlice = createSlice({
|
|||
const lineNums = `(${
|
||||
payload.rangeInFileWithContents.range.start.line + 1
|
||||
}-${payload.rangeInFileWithContents.range.end.line + 1})`;
|
||||
contextItems = [{
|
||||
contextItems.push({
|
||||
name: `${base} ${lineNums}`,
|
||||
description: payload.rangeInFileWithContents.filepath,
|
||||
id: {
|
||||
|
|
@ -412,7 +414,7 @@ export const stateSlice = createSlice({
|
|||
content: payload.rangeInFileWithContents.contents,
|
||||
editing: true,
|
||||
editable: true,
|
||||
}];
|
||||
});
|
||||
|
||||
return { ...state, contextItems };
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue