Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Nov 6, 2024
1 parent 54bcb21 commit 9bc9c65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/SourceKitLSP/Swift/DocumentFormatting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ extension SwiftLanguageService {
swiftFormatConfiguration(for: textDocument.uri, options: options),
]
if let range {
args += ["--offsets", "\(snapshot.utf8Offset(of: range.lowerBound)):\(snapshot.utf8Offset(of: range.upperBound))"]
args += [
"--offsets",
"\(snapshot.utf8Offset(of: range.lowerBound)):\(snapshot.utf8Offset(of: range.upperBound))",
]
}
let process = TSCBasic.Process(arguments: args)
let writeStream = try process.launch()
Expand Down

0 comments on commit 9bc9c65

Please sign in to comment.