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

Function loadLspQuery

packages/app/src/context/server-sync.tsx:74–78  ·  view source on GitHub ↗
(scope: ServerScope, directory: string, sdk: OpencodeClient)

Source from the content-addressed store, hash-verified

72 })
73
74export const loadLspQuery = (scope: ServerScope, directory: string, sdk: OpencodeClient) =>
75 queryOptions({
76 queryKey: [scope, directory, "lsp"] as const,
77 queryFn: () => sdk.lsp.status().then((r) => r.data ?? []),
78 })
79
80function makeQueryOptionsApi(
81 scope: ServerScope,

Callers 1

makeQueryOptionsApiFunction · 0.85

Calls 1

statusMethod · 0.45

Tested by

no test coverage detected