Skip to content

Use simple-datatables for data grid control instead of detailed html …#39

Merged
mattwar merged 1 commit into
mainfrom
user/mattwar/DataBinding
Mar 14, 2026
Merged

Use simple-datatables for data grid control instead of detailed html …#39
mattwar merged 1 commit into
mainfrom
user/mattwar/DataBinding

Conversation

@mattwar

@mattwar mattwar commented Mar 14, 2026

Copy link
Copy Markdown
Collaborator

This pull request refactors and renames several functions, commands, and context keys related to displaying Kusto query results and charts in the VS Code extension. The changes aim to clarify the distinction between results shown in a panel vs. a singleton (single-instance) view, improve naming consistency, and add a new search command for results views.

Key changes include:

Data Binding

Adds use of simple data grid control to avoid building large html tables for performance.

Refactoring and Renaming for Clarity:

  • Renamed functions in resultsViewer and their usages throughout the codebase to distinguish between displaying results in a panel (displayResultsInPanel) and in a singleton view (displayResultsInSingletonView). Related error display functions were also renamed for clarity. [1] [2] [3] [4] [5] [6]
  • Updated context keys and commands to use "singleton view" terminology instead of "chart panel" for tracking and controlling the results/chart display state.

Command and Menu Updates:

  • Renamed several commands in package.json to match the new naming convention, such as kusto.saveChartkusto.saveSingletonResults, kusto.saveResultskusto.savePanelResults, and kusto.chartResultskusto.chartPanelResults. [1] [2] [3] [4]
  • Changed the custom editor viewType from kusto.resultEditor to kusto.resultViewer for consistency.

Feature Addition:

  • Added a new kusto.toggleSearch command and corresponding menu entries to enable searching within results views. [1] [2] [3]

These changes improve code readability, maintainability, and user experience by making the distinction between different result display modes clearer and by adding search functionality.

…table elements.

Adds handling for large data sets, column ordering.
Add ability to select row.
Refactoring and cleanup within resultsViewer.ts
@mattwar mattwar merged commit 0b1be69 into main Mar 14, 2026
4 checks passed
@mattwar mattwar deleted the user/mattwar/DataBinding branch March 14, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant