-
-
Notifications
You must be signed in to change notification settings - Fork 8
refactor: improve code maintainability #233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
58b5919
781722c
d2bd60e
65f0a82
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -184,4 +184,17 @@ export async function getFileNotFoundErrorMessageForWebView(relativeFilePath: st | |||||||||||||||||||||||||||||||||||||||||
| `; | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| return errorMessage; | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| export const defaultCdnLinks = { | ||||||||||||||||||||||||||||||||||||||||||
| highlightJsCssUri: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css", | ||||||||||||||||||||||||||||||||||||||||||
| highlightJsUri: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js", | ||||||||||||||||||||||||||||||||||||||||||
| highlightJsOneDarkThemeUri: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css", | ||||||||||||||||||||||||||||||||||||||||||
| highlightJsOneLightThemeUri: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-light.min.css", | ||||||||||||||||||||||||||||||||||||||||||
| highlightJsLineNoExtUri: "https://cdn.jsdelivr.net/npm/highlightjs-line-numbers.js/dist/highlightjs-line-numbers.min.js", | ||||||||||||||||||||||||||||||||||||||||||
| tabulatorDarkCssUri: "https://unpkg.com/tabulator-tables@6.2.5/dist/css/tabulator_midnight.min.css", | ||||||||||||||||||||||||||||||||||||||||||
| tabulatorLightCssUri: "https://unpkg.com/tabulator-tables@6.2.5/dist/css/tabulator_simple.min.css", | ||||||||||||||||||||||||||||||||||||||||||
| tabulatorUri: "https://unpkg.com/tabulator-tables@6.3.0/dist/js/tabulator.min.js", | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+191
to
200
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix Tabulator version mismatch between CSS and JavaScript. The Tabulator CSS files reference version Apply this diff to align all Tabulator resources to the same version: - tabulatorDarkCssUri: "https://unpkg.com/tabulator-tables@6.2.5/dist/css/tabulator_midnight.min.css",
- tabulatorLightCssUri: "https://unpkg.com/tabulator-tables@6.2.5/dist/css/tabulator_simple.min.css",
- tabulatorUri: "https://unpkg.com/tabulator-tables@6.3.0/dist/js/tabulator.min.js",
+ tabulatorDarkCssUri: "https://unpkg.com/tabulator-tables@6.3.0/dist/css/tabulator_midnight.min.css",
+ tabulatorLightCssUri: "https://unpkg.com/tabulator-tables@6.3.0/dist/css/tabulator_simple.min.css",
+ tabulatorUri: "https://unpkg.com/tabulator-tables@6.3.0/dist/js/tabulator.min.js",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents🧩 Analysis chain🌐 Web query:
💡 Result: As of Nov 27, 2025 the official highlight.js repository shows the latest release as v11.11.1. [1] Softpedia lists v11.11.2 (Mar 5, 2025) but the upstream GitHub releases page (the authoritative source) lists v11.11.1 as the latest. [1][2] Sources:
🌐 Web query:
💡 Result: The latest Tabulator (tabulator-tables) release is v6.3.1 (released Jan 19, 2025). [1][2] Sources:
🌐 Web query:
💡 Result: Short answer: There are no publicly reported, direct security vulnerabilities specific to highlight.js v11.9.0. Current advisories / databases list older issues (prototype pollution and ReDoS) that affect pre-10.x / early 10.x releases and were fixed in later 10.x+ and 11.x releases. [1][2][3][4] Details and sources:
If you want, I can:
🌐 Web query:
💡 Result: Short answer: There are no public 2025 CVEs for the tabulator-tables npm package itself. Security scanners (Snyk) list no direct vulnerabilities in tabulator-tables (latest v6.3.1). [1] Notable related issue: a 2024 XSS (CVE-2024-23995) affected Beekeeper Studio via its use of Tabulator's tabulator-popup-container (column-name XSS). That CVE is recorded by NVD and multiple vulnerability databases; it is a product-specific XSS rather than a reported CVE against the tabulator-tables package itself. [2][3] If you rely on Tabulator in production: keep dependencies updated, subscribe to project advisories / Snyk/GitHub alerts, and treat third-party apps that embed Tabulator (like Beekeeper Studio) as potential sources of downstream vulnerabilities. Sources:
Update CDN library versions to latest releases; align tabulator-tables CSS and JS versions. The versions specified are outdated:
Additionally, tabulator-tables has a version mismatch between CSS (6.2.5) and JS (6.3.0) resources, which may cause compatibility issues. While no direct security vulnerabilities were found in these versions, updating to the latest releases ensures access to recent security patches and bug fixes. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: ashish10alex/vscode-dataform-tools
Length of output: 2441
🏁 Script executed:
Repository: ashish10alex/vscode-dataform-tools
Length of output: 480
🏁 Script executed:
Repository: ashish10alex/vscode-dataform-tools
Length of output: 865
Commands have critical registration/declaration mismatches that must be resolved before the activation event changes are safe.
The verification reveals three issues:
Orphaned command:
vscode-dataform-tools.showCompiledQueryInWebViewis declared in package.json but the actual implementation usesvscode-dataform-tools.ninsrc/views/register-preview-compiled-panel.ts. Commands invoked with the wrong ID will fail.Missing declarations:
vscode-dataform-tools.fixError(line 177) andvscode-dataform-tools.runAssertions(line 129) are registered insrc/extension.tsbut not declared in package.json. These commands will not appear in the VS Code command palette.Inconsistency risk: With the new
workspaceContainsactivation events, the extension will only activate when.sqlx,workflow_settings.yaml, ordataform.jsonfiles are present. If users invoke undeclared or misnamed commands before these files exist, they will fail.Required fixes:
showCompiledQueryInWebViewtovscode-dataform-tools.nfixErrorandrunAssertionsto thecontributes.commandssection in package.json🤖 Prompt for AI Agents