The Type Server Protocol (TSP) is a JSON-RPC protocol for asking a type server for Python analysis data. A type server maintains the type-analysis state for a workspace and answers requests for the protocol version, snapshots, Python search paths, import resolution, and type queries (computed, declared, and expected types). The protocol uses Language Server Protocol (LSP) data shapes and conventions where they are useful, such as Position and Range, and it represents URIs as strings the same way LSP does. TSP methods use the typeServer/ prefix. The protocol artifacts in this folder are the authoritative definitions: typeServerProtocol.ts defines the TypeScript interfaces and request types. tsp.json is the machine-readable protocol model. tsp.schema.json is the JSON…
Type Server Protocol
Advertisement