MCPcopy Index your code
hub / github.com/anomalyco/opencode / filterExperimentalServers

Function filterExperimentalServers

packages/opencode/src/lsp/lsp.ts:98–108  ·  view source on GitHub ↗
(servers: Record<string, LSPServer.Info>, flags: RuntimeFlags.Info)

Source from the content-addressed store, hash-verified

96]
97
98const filterExperimentalServers = (servers: Record<string, LSPServer.Info>, flags: RuntimeFlags.Info) => {
99 if (flags.experimentalLspTy) {
100 if (servers["pyright"]) {
101 delete servers["pyright"]
102 }
103 } else {
104 if (servers["ty"]) {
105 delete servers["ty"]
106 }
107 }
108}
109
110type LocInput = { file: string; line: number; character: number }
111

Callers 1

lsp.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected