MCPcopy
hub / github.com/microsoft/typescript-go / Write

Method Write

internal/lsp/server.go:136–142  ·  view source on GitHub ↗
(msg *lsproto.Message)

Source from the content-addressed store, hash-verified

134}
135
136func (w *lspWriter) Write(msg *lsproto.Message) error {
137 data, err := json.Marshal(msg)
138 if err != nil {
139 return fmt.Errorf("failed to marshal message: %w", err)
140 }
141 return w.w.Write(data)
142}
143
144func ToWriter(w io.Writer) Writer {
145 return &lspWriter{w: lsproto.NewBaseWriter(w)}

Callers

nothing calls this directly

Calls 3

MarshalFunction · 0.92
ErrorfMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected