Skip to content

Commit

Permalink
Fix up return
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Nov 6, 2024
1 parent e3b7c92 commit a99f8f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/vscode/src/host/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,12 @@ class EmbeddedHelpTopicProvider implements HostHelpTopicProvider {
if (vdoc) {
const vdocUri = await virtualDocUri(vdoc, document.uri, "helpTopic");
try {
const res = await vscode.commands.executeCommand<string>(
return await vscode.commands.executeCommand<string>(
"positron.executeHelpTopicProvider",
vdocUri.uri,
adjustedPosition(vdoc.language, position),
vdoc.language
);
return res;
} catch (error) {
return undefined;
} finally {
Expand Down

0 comments on commit a99f8f6

Please sign in to comment.