MCPcopy Create free account
hub / github.com/SolaWing/xcode-build-server / buildTarget_sources

Function buildTarget_sources

server.py:449–466  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

447 }
448
449 def buildTarget_sources(message):
450 params: dict = message["params"]
451 items = []
452 for target in params["targets"]:
453 if target["uri"] == "dummy://dummy":
454 items.append({
455 "target": target,
456 "sources": [
457 {
458 # TODO: 换成真实的target和sources
459 "uri": Path(shared_state.root_path).as_uri(),
460 "kind": 2, # 1: file, 2: directory
461 "generated": False
462 }
463 ]
464 })
465
466 return {"jsonrpc": "2.0", "id": message["id"], "result": {"items": items }}
467
468 def textDocument_registerForChanges(message):
469 # empty response, ensure response before notification

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected