Skip to content

Commit ad17a1b

Browse files
committed
workaround for Python structuredText bug
1 parent f3bfbd1 commit ad17a1b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/classes/insightsConnection.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,8 @@ export class InsightsConnection {
430430
};
431431

432432
if (this.insightsVersion) {
433-
if (compareVersions(this.insightsVersion, 1.12)) {
433+
/* TODO: Workaround for Python structuredText bug */
434+
if (!isPython && compareVersions(this.insightsVersion, 1.12)) {
434435
body.returnFormat = isTableView ? "structuredText" : "text";
435436
} else {
436437
body.isTableView = isTableView;
@@ -475,6 +476,8 @@ export class InsightsConnection {
475476
if (!response.data.error) {
476477
if (isTableView) {
477478
if (
479+
/* TODO: Workaround for Python structuredText bug */
480+
!isPython &&
478481
this.insightsVersion &&
479482
compareVersions(this.insightsVersion, 1.12)
480483
) {

src/services/resultsPanelProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ export class KdbResultsViewProvider implements WebviewViewProvider {
241241

242242
if (
243243
(!isInsights && !isPython) ||
244-
(isInsights && connVersion && compareVersions(connVersion, 1.12))
244+
/* TODO: Workaround for Python structuredText bug */
245+
(!isPython && connVersion && compareVersions(connVersion, 1.12))
245246
) {
246247
rowData = this.updatedExtractRowData(results);
247248
columnDefs = this.updatedExtractColumnDefs(results);

0 commit comments

Comments
 (0)