MCPcopy
hub / github.com/microsoft/vscode-languageserver-node / ensure

Function ensure

client/src/client.ts:559–564  ·  view source on GitHub ↗
(target: T, key: K)

Source from the content-addressed store, hash-verified

557];
558
559function ensure<T, K extends keyof T>(target: T, key: K): T[K] {
560 if (target[key] === void 0) {
561 target[key] = {} as any;
562 }
563 return target[key];
564}
565
566interface ResolvedTextDocumentSyncCapabilities {
567 resolvedTextDocumentSync?: TextDocumentSyncOptions;

Callers 15

Calls

no outgoing calls

Tested by

no test coverage detected