mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
25 lines
674 B
Python
Executable File
25 lines
674 B
Python
Executable File
from pathlib import Path
|
|
import sys
|
|
|
|
sys.path.append(str(Path(__file__).parent.parent))
|
|
|
|
from AbstractBuildServer import AbstractBuildServer
|
|
|
|
|
|
class BuildServer(AbstractBuildServer):
|
|
def register_for_changes(self, notification: dict[str, object]):
|
|
if notification["action"] == "register":
|
|
self.send_notification(
|
|
"build/sourceKitOptionsChanged",
|
|
{
|
|
"uri": notification["uri"],
|
|
"updatedOptions": {
|
|
"options": ["a", "b"],
|
|
"workingDirectory": "/some/dir",
|
|
},
|
|
},
|
|
)
|
|
|
|
|
|
BuildServer().run()
|