MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / getCodeLens

Function getCodeLens

src/test/helpers.ts:789–792  ·  view source on GitHub ↗
(document: vs.TextDocument)

Source from the content-addressed store, hash-verified

787}
788
789export async function getCodeLens(document: vs.TextDocument): Promise<vs.CodeLens[]> {
790 const fileCodeLens = await vs.commands.executeCommand<vs.CodeLens[]>("vscode.executeCodeLensProvider", document.uri, 500);
791 return fileCodeLens || [];
792}
793
794export async function getDefinition(position: vs.Position): Promise<vs.Location | vs.DefinitionLink> {
795 const defs = await getDefinitions(position);

Calls

no outgoing calls

Tested by 2

verifySampleLinkFunction · 0.72