Download packages/core/src/config/lsp.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 690 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/config/lsp.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/config/lsp.ts
-
curl -L -o lsp.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/config/lsp.ts
690 Bytes
| export * as ConfigLSP from "./lsp" | |
| import { Schema } from "effect" | |
| export const Disabled = Schema.Struct({ | |
| disabled: Schema.Literal(true), | |
| }) | |
| export class Server extends Schema.Class<Server>("ConfigV2.LSP.Server")({ | |
| command: Schema.String.pipe(Schema.Array), | |
| extensions: Schema.String.pipe(Schema.Array, Schema.optional), | |
| disabled: Schema.Boolean.pipe(Schema.optional), | |
| env: Schema.Record(Schema.String, Schema.String).pipe(Schema.optional), | |
| initialization: Schema.Record(Schema.String, Schema.Unknown).pipe(Schema.optional), | |
| }) {} | |
| export const Entry = Schema.Union([Disabled, Server]) | |
| export const Info = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry)]) | |