From 2258ef5e79fe8c2c32f187c964492c3f703550b6 Mon Sep 17 00:00:00 2001 From: Philip Carneiro Date: Mon, 1 Jul 2024 09:25:21 +0100 Subject: [PATCH 1/2] solve python bug KXI-49915 --- src/services/resultsPanelProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/resultsPanelProvider.ts b/src/services/resultsPanelProvider.ts index 8fbe9459..ab7d1058 100644 --- a/src/services/resultsPanelProvider.ts +++ b/src/services/resultsPanelProvider.ts @@ -36,7 +36,7 @@ export class KdbResultsViewProvider implements WebviewViewProvider { this._colorTheme = window.activeColorTheme; this.updateResults(this._results); }); - // this.resolveWebviewView(webviewView); + ext.isResultsTabVisible = true; } /* istanbul ignore next */ From 54207bc3680ebaa889e6e991f8c36aff5f54795a Mon Sep 17 00:00:00 2001 From: Philip Carneiro Date: Mon, 1 Jul 2024 09:31:10 +0100 Subject: [PATCH 2/2] fix tests --- test/suite/commands.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/suite/commands.test.ts b/test/suite/commands.test.ts index 317ca974..fbd7ed44 100644 --- a/test/suite/commands.test.ts +++ b/test/suite/commands.test.ts @@ -689,7 +689,7 @@ describe("dataSourceCommand2", () => { dummyFileContent.dataSource.selectedType = DataSourceTypes.API; getMetaStub.resolves(dummyMeta); getDataInsightsStub.resolves({ arrayBuffer: ab, error: "" }); - isVisibleStub.returns(false); + ext.isResultsTabVisible = false; await dataSourceCommand.runDataSource( dummyFileContent as DataSourceFiles, insightsConn.connLabel, @@ -708,7 +708,7 @@ describe("dataSourceCommand2", () => { dummyFileContent.dataSource.selectedType = DataSourceTypes.SQL; getMetaStub.resolves(dummyMeta); getDataInsightsStub.resolves({ arrayBuffer: ab, error: "" }); - isVisibleStub.returns(false); + ext.isResultsTabVisible = false; await dataSourceCommand.runDataSource( dummyFileContent as DataSourceFiles, insightsConn.connLabel,