Skip to content

What's the condition for DocumentLink target to be undefined? #106308

@usernamehw

Description

@usernamehw

I would like to use api to get links from the document:

const links = await vscode.commands.executeCommand<DocumentLink[]>('vscode.executeLinkProvider', document.uri);

DocumentLink is guaranteed to have a range: Range;, but not the target?: Uri;. What are the cases when target is undefined, or am I using the wrong type?

Metadata

Metadata

Assignees

Labels

apiauthor-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugeditor-contribEditor collection of extrasinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions