MCPcopy Index your code
hub / github.com/microsoft/vscode-languageserver-node / asTextEdits

Function asTextEdits

client/src/protocolConverter.ts:328–333  ·  view source on GitHub ↗
(items: ls.TextEdit[] | undefined | null)

Source from the content-addressed store, hash-verified

326 function asTextEdits(items: undefined | null): undefined;
327 function asTextEdits(items: ls.TextEdit[] | undefined | null): code.TextEdit[] | undefined;
328 function asTextEdits(items: ls.TextEdit[] | undefined | null): code.TextEdit[] | undefined {
329 if (!items) {
330 return undefined;
331 }
332 return items.map(asTextEdit);
333 }
334
335 function asSignatureHelp(item: undefined | null): undefined;
336 function asSignatureHelp(item: ls.SignatureHelp): code.SignatureHelp;

Callers 2

asCompletionItemFunction · 0.70
asWorkspaceEditFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected