Function
filterExperimentalServers
(servers: Record<string, LSPServer.Info>, flags: RuntimeFlags.Info)
Source from the content-addressed store, hash-verified
| 96 | ] |
| 97 | |
| 98 | const 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 | |
| 110 | type LocInput = { file: string; line: number; character: number } |
| 111 | |
Tested by
no test coverage detected