Skip to content

Commit 2ac3e00

Browse files
authored
Don't send references for changes tool (#2803)
Fix #286950
1 parent c473644 commit 2ac3e00

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/extension/prompts/node/git/gitChanges.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
5-
import { BasePromptElementProps, PromptElement, PromptReference } from '@vscode/prompt-tsx';
5+
import { BasePromptElementProps, PromptElement } from '@vscode/prompt-tsx';
66
import { Diff } from '../../../../platform/git/common/gitDiffService';
77
import { basename } from '../../../../util/vs/base/common/path';
88
import { FilePathMode, FileVariable } from '../panel/fileVariable';
@@ -18,8 +18,7 @@ export class GitChanges extends PromptElement<GitChangesProps> {
1818
<>
1919
{this.props.diffs.map((diff) => (
2020
<>
21-
<references value={diff.uri ? [new PromptReference(diff.uri)] : []} />
22-
<FileVariable passPriority={true} variableName={basename(diff.uri.toString())} variableValue={diff.uri} filePathMode={FilePathMode.AsComment} />
21+
<FileVariable passPriority={true} variableName={basename(diff.uri.toString())} variableValue={diff.uri} filePathMode={FilePathMode.AsComment} omitReferences />
2322
<UnsafeCodeBlock passPriority={true} code={diff.diff} languageId='diff' /><br />
2423
</>
2524
))}

0 commit comments

Comments
 (0)