Skip to content

Commit d9b57b5

Browse files
author
Richard Howell
committed
use SourceKitOptionsResult for options update
1 parent cb7d758 commit d9b57b5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Sources/BuildServerProtocol/RegisterForChangeNotifications.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,5 @@ public struct FileOptionsChangedNotification: NotificationType {
4747
public var uri: URL
4848

4949
/// The updated options for the registered file.
50-
public var options: [String]
51-
52-
/// The working directory for the compile command.
53-
public var workingDirectory: String?
50+
public var updatedOptions: SourceKitOptionsResult
5451
}

Tests/INPUTS/BuildServerBuildSystemTests.testFileRegistration/server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ def send(data):
6161
"method": "build/sourceKitOptionsChanged",
6262
"params": {
6363
"uri": message["params"]["uri"],
64-
"options": [ "-a", "-b" ],
65-
"workingDirectory": "/some/dir",
64+
"updatedOptions": {
65+
"options": ["a", "b"],
66+
"workingDirectory": "/some/dir"
67+
}
6668
}
6769
}
6870

0 commit comments

Comments
 (0)