From 8a6c8536f5839ca0c63f7422b3eb32cc8017e55a Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Thu, 14 Jul 2022 14:10:41 -0700 Subject: [PATCH] Fix insight widgets not displaying (#20037) --- src/sql/workbench/services/insights/common/insightsUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/workbench/services/insights/common/insightsUtils.ts b/src/sql/workbench/services/insights/common/insightsUtils.ts index 6587e0d75a..ccb4abada4 100644 --- a/src/sql/workbench/services/insights/common/insightsUtils.ts +++ b/src/sql/workbench/services/insights/common/insightsUtils.ts @@ -34,7 +34,7 @@ export async function resolveQueryFilePath(services: ServicesAccessor, filePath? let workspaceFolders: IWorkspaceFolder[] = workspaceContextService.getWorkspace().folders; // Resolve the path using each folder in our workspace, or undefined if there aren't any // (so that non-folder vars such as environment vars still resolve) - const isRemote = fileService.canHandleResource(URI.from({ scheme: Schemas.vscodeRemote })); + const isRemote = await fileService.canHandleResource(URI.from({ scheme: Schemas.vscodeRemote })); let resolvedFileUriPromises = (workspaceFolders.length > 0 ? workspaceFolders : [undefined]) .map(async f => { const resolvedUri = await configurationResolverService.resolveAsync(f, filePath);