Skip to content

Commit

Permalink
Set Language Server's executable permissions to -r-xr-xr-x (555)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkasila committed Apr 16, 2022
1 parent df51267 commit 8d178ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CodeEdit/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
</dict>
</array>
<key>GitHash</key>
<string>2d44f050802ae0058b149cac764295ba3a7a6352</string>
<string>df5126734cd5f8c976187eba5d43204046775769</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ public final class ExtensionsManager {
)
.appendingPathComponent("\(release.id.uuidString).tar")

// TODO: show progress
let (source, _) = try await URLSession.shared.download(from: tarball)

if FileManager.default.fileExists(atPath: cacheTar.path) {
Expand Down
1 change: 1 addition & 0 deletions CodeEditModules/Modules/LSP/src/LSPClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class LSPClient {
/// - arguments: Additional arguments from `CELSPArguments` in `Info.plist` of the Language Server bundle
public init(_ executable: URL, workspace: URL, arguments: [String]?) throws {
self.executable = executable
try FileManager.default.setAttributes([.posixPermissions: 0o555], ofItemAtPath: self.executable.path)
self.workspace = workspace
self.process = try Process.run(executable, arguments: arguments ?? ["--stdio"], terminationHandler: nil)
}
Expand Down

0 comments on commit 8d178ef

Please sign in to comment.