Skip to content

Commit eac78df

Browse files
authored
1 parent 799dc33 commit eac78df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/editor/common/textModelEditReason.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const EditReasons = {
6464
chatApplyEdits(data: { modelId: string | undefined }) {
6565
return createEditReason({
6666
source: 'Chat.applyEdits',
67-
$modelId: data.modelId,
67+
$modelId: avoidPathRedaction(data.modelId),
6868
} as const);
6969
},
7070

@@ -90,7 +90,7 @@ export const EditReasons = {
9090
inlineChatApplyEdit(data: { modelId: string | undefined }) {
9191
return createEditReason({
9292
source: 'inlineChat.applyEdits',
93-
$modelId: avoidRedaction(data.modelId),
93+
$modelId: avoidPathRedaction(data.modelId),
9494
} as const);
9595
},
9696

@@ -116,7 +116,7 @@ export const EditReasons = {
116116
type Values<T> = T[keyof T];
117117
type ITextModelEditReasonMetadata = Values<{ [TKey in keyof typeof EditReasons]: ReturnType<typeof EditReasons[TKey]>['metadataT'] }>;
118118

119-
function avoidRedaction(str: string | undefined): string | undefined {
119+
function avoidPathRedaction(str: string | undefined): string | undefined {
120120
if (str === undefined) {
121121
return undefined;
122122
}

0 commit comments

Comments
 (0)