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

Function asCommand

client/src/protocolConverter.ts:470–474  ·  view source on GitHub ↗
(item: ls.Command)

Source from the content-addressed store, hash-verified

468 }
469
470 function asCommand(item: ls.Command): code.Command {
471 let result: code.Command = { title: item.title, command: item.command };
472 if (item.arguments) { result.arguments = item.arguments; }
473 return result;
474 }
475
476 function asCommands(items: ls.Command[]): code.Command[];
477 function asCommands(items: undefined | null): undefined

Callers 2

asCompletionItemFunction · 0.70
asCodeLensFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected