mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
28 lines
742 B
Python
Executable File
28 lines
742 B
Python
Executable File
from pathlib import Path
|
|
import sys
|
|
from typing import Dict
|
|
|
|
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(
|
|
"buildTarget/didChange",
|
|
{
|
|
"changes": [
|
|
{
|
|
"target": {"uri": "build://target/a"},
|
|
"kind": 1,
|
|
"data": {"key": "value"},
|
|
}
|
|
]
|
|
},
|
|
)
|
|
|
|
|
|
BuildServer().run()
|