feat(gui): improve editor highlights
This commit is contained in:
parent
ab1ad0ae48
commit
7bffa2dbea
6 changed files with 17 additions and 22 deletions
6
extensions/vscode/package-lock.json
generated
6
extensions/vscode/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "continue",
|
||||
"version": "0.9.232",
|
||||
"version": "0.9.233",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "continue",
|
||||
"version": "0.9.232",
|
||||
"version": "0.9.233",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@electron/rebuild": "^3.2.10",
|
||||
|
|
@ -109,7 +109,7 @@
|
|||
"cheerio": "^1.0.0-rc.12",
|
||||
"commander": "^12.0.0",
|
||||
"comment-json": "^4.2.3",
|
||||
"dbinfoz": "^0.11.0",
|
||||
"dbinfoz": "^0.14.0",
|
||||
"diff": "^7.0.0",
|
||||
"dotenv": "^16.4.5",
|
||||
"fastest-levenshtein": "^1.0.16",
|
||||
|
|
|
|||
|
|
@ -5,14 +5,10 @@ class EditDecorationManager {
|
|||
|
||||
constructor(context: vscode.ExtensionContext) {
|
||||
this.decorationType = vscode.window.createTextEditorDecorationType({
|
||||
backgroundColor: "rgba(255, 255, 0, 0.1)",
|
||||
borderWidth: "0 0 0 1px",
|
||||
borderColor: "rgba(255, 255, 0)",
|
||||
borderStyle: "solid",
|
||||
backgroundColor: new vscode.ThemeColor(
|
||||
"editor.inactiveSelectionBackground",
|
||||
),
|
||||
isWholeLine: true,
|
||||
cursor: "pointer",
|
||||
// gutterIconPath: context.asAbsolutePath("media/gutterIcon.png"),
|
||||
gutterIconSize: "contain",
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
8
gui/package-lock.json
generated
8
gui/package-lock.json
generated
|
|
@ -56,7 +56,6 @@
|
|||
"socket.io-client": "^4.7.2",
|
||||
"styled-components": "^5.3.6",
|
||||
"table": "^6.8.1",
|
||||
"tailwind-scrollbar-hide": "^1.1.7",
|
||||
"tippy.js": "^6.3.7",
|
||||
"unist-util-visit": "^5.0.0",
|
||||
"uuid": "^9.0.1",
|
||||
|
|
@ -112,7 +111,7 @@
|
|||
"cheerio": "^1.0.0-rc.12",
|
||||
"commander": "^12.0.0",
|
||||
"comment-json": "^4.2.3",
|
||||
"dbinfoz": "^0.11.0",
|
||||
"dbinfoz": "^0.14.0",
|
||||
"diff": "^7.0.0",
|
||||
"dotenv": "^16.4.5",
|
||||
"fastest-levenshtein": "^1.0.16",
|
||||
|
|
@ -8984,11 +8983,6 @@
|
|||
"node": ">=10.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/tailwind-scrollbar-hide": {
|
||||
"version": "1.1.7",
|
||||
"resolved": "https://registry.npmjs.org/tailwind-scrollbar-hide/-/tailwind-scrollbar-hide-1.1.7.tgz",
|
||||
"integrity": "sha512-X324n9OtpTmOMqEgDUEA/RgLrNfBF/jwJdctaPZDzB3mppxJk7TLIDmOreEDm1Bq4R9LSPu4Epf8VSdovNU+iA=="
|
||||
},
|
||||
"node_modules/tailwindcss": {
|
||||
"version": "3.4.12",
|
||||
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.12.tgz",
|
||||
|
|
|
|||
|
|
@ -67,7 +67,10 @@ import { ComboBoxItem } from "./types";
|
|||
import useIsOSREnabled from "../../hooks/useIsOSREnabled";
|
||||
import { setShouldAddFileForEditing } from "../../redux/slices/uiStateSlice";
|
||||
import { AddCodeToEdit } from "./AddCodeToEditExtension";
|
||||
import { addCodeToEdit } from "../../redux/slices/editModeState";
|
||||
import {
|
||||
addCodeToEdit,
|
||||
clearCodeToEdit,
|
||||
} from "../../redux/slices/editModeState";
|
||||
|
||||
const InputBoxDiv = styled.div<{ border?: string }>`
|
||||
resize: none;
|
||||
|
|
@ -598,7 +601,7 @@ function TipTapEditor(props: TipTapEditorProps) {
|
|||
|
||||
if (isOSREnabled) {
|
||||
handleJetBrainsOSRMetaKeyIssues(e, editor);
|
||||
} else if (!isJetBrains()){
|
||||
} else if (!isJetBrains()) {
|
||||
await handleVSCMetaKeyIssues(e, editor);
|
||||
}
|
||||
};
|
||||
|
|
@ -657,6 +660,8 @@ function TipTapEditor(props: TipTapEditorProps) {
|
|||
useWebviewListener(
|
||||
"focusContinueInput",
|
||||
async (data) => {
|
||||
dispatch(clearCodeToEdit());
|
||||
|
||||
if (!props.isMainInput) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,14 +50,14 @@ export default function WorkingSet() {
|
|||
));
|
||||
|
||||
return (
|
||||
<div className="bg-vsc-editor-background border-vsc-input-border mx-1 flex flex-col rounded-t-lg border border-b-0 border-solid p-1">
|
||||
<div className="bg-vsc-editor-background border-vsc-input-border mx-1 flex flex-col rounded-t-lg border border-b-0 border-solid px-1">
|
||||
<div className="text-lightgray flex items-center justify-between gap-1.5 py-1.5 pl-3 pr-2 text-xs">
|
||||
<span>{title}</span>
|
||||
<AddFileButton />
|
||||
</div>
|
||||
|
||||
{codeToEdit.length > 0 && (
|
||||
<ul className="no-scrollbar mb-1.5 mt-1 max-h-[50vh] list-outside list-none overflow-y-auto pl-0">
|
||||
<ul className="no-scrollbar my-0 mb-1.5 max-h-[50vh] list-outside list-none overflow-y-auto pl-0">
|
||||
{codeToEditItems}
|
||||
</ul>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export default function CodeToEditListItem({
|
|||
onClick={() => setShowCodeSnippet((showCodeSnippet) => !showCodeSnippet)}
|
||||
>
|
||||
<div
|
||||
className={`hover:bg-lightgray hover:text-vsc-foreground flex justify-between rounded px-2 py-1 transition-colors hover:bg-opacity-20 ${showCodeSnippet && "text-vsc-foreground bg-lightgray bg-opacity-20"}`}
|
||||
className={`hover:bg-lightgray hover:text-vsc-foreground flex justify-between rounded px-2 py-0.5 transition-colors hover:bg-opacity-20 ${showCodeSnippet && "text-vsc-foreground bg-lightgray bg-opacity-20"}`}
|
||||
>
|
||||
<div className="flex items-center gap-0.5">
|
||||
{showCodeSnippet ? (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue