Skip to content

Commit 179ea79

Browse files
committed
update with comment in pr
1 parent 0fa6fd4 commit 179ea79

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/core/prompts/tools/insert-code-block.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Description: Inserts code blocks at specific line positions in a file. This is t
66
Parameters:
77
- path: (required) The path of the file to insert code into (relative to the current working directory ${args.cwd.toPosix()})
88
- operations: (required) A JSON array of insertion operations. Each operation is an object with:
9-
* start_line: (required) The line number where the code block should be inserted
9+
* start_line: (required) The line number where the code block should be inserted. The content currently at that line will end up below the inserted code block.
1010
* content: (required) The code block to insert at the specified position
1111
Usage:
1212
<insert_code_block>

src/shared/modes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export function isToolAllowedForMode(
205205
const filePath = toolParams?.path
206206
if (
207207
filePath &&
208-
(toolParams.diff || toolParams.content) &&
208+
(toolParams.diff || toolParams.content || toolParams.operations) &&
209209
!doesFileMatchRegex(filePath, options.fileRegex)
210210
) {
211211
throw new FileRestrictionError(mode.name, options.fileRegex, options.description, filePath)

webview-ui/src/components/settings/SettingsView.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
9797
apiConfiguration,
9898
})
9999

100-
console.log("Experiments", experiments)
101-
102100
vscode.postMessage({
103101
type: "updateExperimental",
104102
values: experiments,

0 commit comments

Comments
 (0)