Skip to content

Commit

Permalink
Real concurrency support
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Jun 28, 2023
1 parent cae0117 commit 5b53171
Show file tree
Hide file tree
Showing 50 changed files with 1,101 additions and 1,346 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,28 @@ on:
branches:
- '**'

env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer

jobs:
test:
apple_test:
name: Test
runs-on: macOS-latest
runs-on: macOS-13
strategy:
matrix:
destination:
- "platform=macOS"
- "platform=iOS Simulator,name=iPhone 12"

steps:
- uses: actions/checkout@v3
- name: Test platform ${{ matrix.destination }}
run: set -o pipefail && xcodebuild -scheme LanguageServerProtocol -destination "${{ matrix.destination }}" test | xcpretty

linux_test:
name: Test Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: swift test
run: swift test
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/ChimeHQ/JSONRPC",
"state": {
"branch": null,
"revision": "aa785ad404bdcf7ec692908b3905dd4c87e87141",
"version": "0.7.1"
"revision": "306acbe0de2e87e4f6c1dc3901613aa9df293754",
"version": null
}
}
]
Expand Down
14 changes: 10 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,29 @@

import PackageDescription

let settings: [SwiftSetting] = [
// .unsafeFlags(["-Xfrontend", "-strict-concurrency=complete"])
]

let package = Package(
name: "LanguageServerProtocol",
platforms: [.macOS(.v10_12), .iOS(.v10), .tvOS(.v10), .watchOS(.v3)],
platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6)],
products: [
.library(
name: "LanguageServerProtocol",
targets: ["LanguageServerProtocol"]),
],
dependencies: [
.package(url: "https://github.com/ChimeHQ/JSONRPC", "0.7.0"..."0.7.1"),
.package(url: "https://github.com/ChimeHQ/JSONRPC", revision: "306acbe0de2e87e4f6c1dc3901613aa9df293754"),
],
targets: [
.target(
name: "LanguageServerProtocol",
dependencies: ["JSONRPC"]),
dependencies: ["JSONRPC"],
swiftSettings: settings),
.testTarget(
name: "LanguageServerProtocolTests",
dependencies: ["LanguageServerProtocol"]),
dependencies: ["LanguageServerProtocol"],
swiftSettings: settings),
]
)
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ dependencies: [

For the most part, this library strives to be a straightforward version of the spec in Swift. There are a few places, however, where it just makes sense to pull in some extra functionality.

- `MockServer`: a stand-in that is useful for mocking a real server
- `Server`: a protocol that describes the essential server functionality
- `Snippet`: makes it easier to interpret the contents of completion results
- `SemanticTokensClient`: helps to consume Semantic Token information
- `TokenRepresentation`: maintains the state of a document's semantic tokens

## Supported Features

Expand Down
Loading

0 comments on commit 5b53171

Please sign in to comment.