File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export const EditReasons = {
90
90
inlineChatApplyEdit ( data : { modelId : string | undefined } ) {
91
91
return createEditReason ( {
92
92
source : 'inlineChat.applyEdits' ,
93
- $modelId : data . modelId ,
93
+ $modelId : avoidRedaction ( data . modelId ) ,
94
94
} as const ) ;
95
95
} ,
96
96
@@ -115,3 +115,11 @@ export const EditReasons = {
115
115
116
116
type Values < T > = T [ keyof T ] ;
117
117
type ITextModelEditReasonMetadata = Values < { [ TKey in keyof typeof EditReasons ] : ReturnType < typeof EditReasons [ TKey ] > [ 'metadataT' ] } > ;
118
+
119
+ function avoidRedaction ( str : string | undefined ) : string | undefined {
120
+ if ( str === undefined ) {
121
+ return undefined ;
122
+ }
123
+ // To avoid false-positive file path redaction.
124
+ return str . replaceAll ( '/' , '|' ) ;
125
+ }
You can’t perform that action at this time.
0 commit comments