MCPcopy Create free account
hub / github.com/anomalyco/opencode / getSyncKind

Function getSyncKind

packages/opencode/src/lsp/client.ts:76–81  ·  view source on GitHub ↗
(capabilities?: ServerCapabilities)

Source from the content-addressed store, hash-verified

74}
75
76function getSyncKind(capabilities?: ServerCapabilities) {
77 if (!capabilities) return
78 const sync = capabilities.textDocumentSync
79 if (typeof sync === "number") return sync
80 return sync?.change
81}
82
83function endPosition(text: string) {
84 const lines = text.split(/\r\n|\r|\n/)

Callers 1

createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected