From a99f8f6deed5c8d199e54fcccb311ec8d43a8266 Mon Sep 17 00:00:00 2001 From: Julia Silge Date: Wed, 6 Nov 2024 16:29:43 -0700 Subject: [PATCH] Fix up return --- apps/vscode/src/host/hooks.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/vscode/src/host/hooks.ts b/apps/vscode/src/host/hooks.ts index 71199312..d78da787 100644 --- a/apps/vscode/src/host/hooks.ts +++ b/apps/vscode/src/host/hooks.ts @@ -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( + return await vscode.commands.executeCommand( "positron.executeHelpTopicProvider", vdocUri.uri, adjustedPosition(vdoc.language, position), vdoc.language ); - return res; } catch (error) { return undefined; } finally {