mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Fix issue where file diff could fail; minor style changes; update README; update version to 0.0.4
This commit is contained in:
@@ -62,7 +62,7 @@ Claude Dev even offered to run a command that would open it in Chrome for me.
|
|||||||
|
|
||||||
From idea to functional website in seconds. Thanks, Claude Dev!
|
From idea to functional website in seconds. Thanks, Claude Dev!
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "claude-dev",
|
"name": "claude-dev",
|
||||||
"displayName": "Claude Dev",
|
"displayName": "Claude Dev",
|
||||||
"description": "Claude Dev goes beyond simple code completion by reading & writing files, creating projects, and executing terminal commands with your permission.",
|
"description": "Claude Dev goes beyond simple code completion by reading & writing files, creating projects, and executing terminal commands with your permission.",
|
||||||
"version": "0.0.3",
|
"version": "0.0.4",
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.82.0"
|
"vscode": "^1.82.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -95,8 +95,7 @@ const tools: Tool[] = [
|
|||||||
properties: {
|
properties: {
|
||||||
path: {
|
path: {
|
||||||
type: "string",
|
type: "string",
|
||||||
description:
|
description: "The path of the directory to list contents for.",
|
||||||
"The path of the directory to list contents for.",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
required: ["path"],
|
required: ["path"],
|
||||||
@@ -111,8 +110,7 @@ const tools: Tool[] = [
|
|||||||
properties: {
|
properties: {
|
||||||
path: {
|
path: {
|
||||||
type: "string",
|
type: "string",
|
||||||
description:
|
description: "The path of the file to read.",
|
||||||
"The path of the file to read.",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
required: ["path"],
|
required: ["path"],
|
||||||
@@ -127,8 +125,7 @@ const tools: Tool[] = [
|
|||||||
properties: {
|
properties: {
|
||||||
path: {
|
path: {
|
||||||
type: "string",
|
type: "string",
|
||||||
description:
|
description: "The path of the file to write to.",
|
||||||
"The path of the file to write to.",
|
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
type: "string",
|
type: "string",
|
||||||
@@ -317,14 +314,14 @@ export class ClaudeDev {
|
|||||||
const completeDiffStringConverted = completeDiffStringRaw
|
const completeDiffStringConverted = completeDiffStringRaw
|
||||||
.map((part, index) => {
|
.map((part, index) => {
|
||||||
const prefix = part.added ? "+ " : part.removed ? "- " : " "
|
const prefix = part.added ? "+ " : part.removed ? "- " : " "
|
||||||
return part.value
|
return (part.value ?? [])
|
||||||
.split("\n")
|
.split("\n")
|
||||||
.map((line, lineIndex) => {
|
.map((line, lineIndex) => {
|
||||||
// avoid adding an extra empty line at the very end of the diff output
|
// avoid adding an extra empty line at the very end of the diff output
|
||||||
if (
|
if (
|
||||||
line === "" &&
|
line === "" &&
|
||||||
index === completeDiffStringRaw.length - 1 &&
|
index === completeDiffStringRaw.length - 1 &&
|
||||||
lineIndex === part.value.split("\n").length - 1
|
lineIndex === (part.value ?? []).split("\n").length - 1
|
||||||
) {
|
) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ const CodeBlock = ({ code, diff, language, path }: CodeBlockProps) => {
|
|||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
textOverflow: "ellipsis",
|
textOverflow: "ellipsis",
|
||||||
marginRight: "8px",
|
marginRight: "8px",
|
||||||
|
fontSize: "11px",
|
||||||
// trick to get ellipsis at beginning of string
|
// trick to get ellipsis at beginning of string
|
||||||
direction: "rtl",
|
direction: "rtl",
|
||||||
textAlign: "left",
|
textAlign: "left",
|
||||||
|
|||||||
Reference in New Issue
Block a user