File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Service/SuggestionCommandHandler
Tool/Sources/GitIgnoreCheck Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -206,9 +206,9 @@ struct Chat {
206
206
" /bin/bash " ,
207
207
arguments: [
208
208
" -c " ,
209
- " xed -l \( reference. startLine ?? 0 ) \" \( reference . uri ) \" " ,
209
+ " xed -l \( reference. startLine ?? 0 ) ${TARGET_FILE} " ,
210
210
] ,
211
- environment: [ : ]
211
+ environment: [ " TARGET_FILE " : reference . uri ]
212
212
)
213
213
} catch {
214
214
print ( error)
Original file line number Diff line number Diff line change @@ -505,9 +505,9 @@ struct PseudoCommandHandler: CommandHandler {
505
505
" /bin/bash " ,
506
506
arguments: [
507
507
" -c " ,
508
- " xed -l \( line) \" \( fileURL . path ) \" " ,
508
+ " xed -l \( line) ${TARGET_FILE} " ,
509
509
] ,
510
- environment: [ : ]
510
+ environment: [ " TARGET_FILE " : fileURL . path ] ,
511
511
)
512
512
} catch {
513
513
print ( error)
Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ public struct DefaultGitIgnoredChecker: GitIgnoredChecker {
54
54
do {
55
55
let result = try await terminal. runCommand (
56
56
" /bin/bash " ,
57
- arguments: [ " -c " , " git check-ignore \" \( fileURL . path ) \" " ] ,
57
+ arguments: [ " -c " , " git check-ignore ${TARGET_FILE} " ] ,
58
58
currentDirectoryURL: gitFolderURL,
59
- environment: [ : ]
59
+ environment: [ " TARGET_FILE " : fileURL . path ]
60
60
)
61
61
if result. isEmpty { return false }
62
62
return true
@@ -76,9 +76,9 @@ public struct DefaultGitIgnoredChecker: GitIgnoredChecker {
76
76
do {
77
77
let result = try await terminal. runCommand (
78
78
" /bin/bash " ,
79
- arguments: [ " -c " , " git check-ignore \( filePaths ) " ] ,
79
+ arguments: [ " -c " , " git check-ignore ${TARGET_FILE} " ] ,
80
80
currentDirectoryURL: gitFolderURL,
81
- environment: [ : ]
81
+ environment: [ " TARGET_FILE " : filePaths ]
82
82
)
83
83
return result
84
84
. split ( whereSeparator: \. isNewline)
You can’t perform that action at this time.
0 commit comments