From 4b8508e737a6ecfb24cacd352345534c77b049e4 Mon Sep 17 00:00:00 2001 From: Christopher Suh Date: Wed, 11 Dec 2024 14:35:43 -0800 Subject: [PATCH 1/6] apply mssql font family & size settings to result grid --- .../queryResultWebViewController.ts | 12 ++++++++ .../queryResultWebviewPanelController.ts | 14 ++++++++- .../pages/QueryResult/queryResultPane.tsx | 30 +++++++++++++++++-- 3 files changed, 52 insertions(+), 4 deletions(-) diff --git a/src/queryResult/queryResultWebViewController.ts b/src/queryResult/queryResultWebViewController.ts index 03ecdf6459..a17817de02 100644 --- a/src/queryResult/queryResultWebViewController.ts +++ b/src/queryResult/queryResultWebViewController.ts @@ -170,6 +170,18 @@ export class QueryResultWebviewController extends ReactWebviewViewController< this.registerRequestHandler("getWebviewLocation", async () => { return qr.QueryResultWebviewLocation.Panel; }); + this.registerRequestHandler("getFontFamily", async () => { + console.log("getFontFamily"); + return this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get(Constants.extConfigResultKeys[3]); + }); + this.registerRequestHandler("getFontSize", async () => { + console.log("getFontSize"); + return this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get(Constants.extConfigResultKeys[2]); + }); registerCommonRequestHandlers(this, this._correlationId); } diff --git a/src/queryResult/queryResultWebviewPanelController.ts b/src/queryResult/queryResultWebviewPanelController.ts index a4dcb53159..14ed59d535 100644 --- a/src/queryResult/queryResultWebviewPanelController.ts +++ b/src/queryResult/queryResultWebviewPanelController.ts @@ -5,7 +5,7 @@ import * as vscode from "vscode"; import * as qr from "../sharedInterfaces/queryResult"; -// import * as Constants from "../constants/constants"; +import * as Constants from "../constants/constants"; import { randomUUID } from "crypto"; import VscodeWrapper from "../controllers/vscodeWrapper"; import { ReactWebviewPanelController } from "../controllers/reactWebviewPanelController"; @@ -74,6 +74,18 @@ export class QueryResultWebviewPanelController extends ReactWebviewPanelControll this.registerRequestHandler("getWebviewLocation", async () => { return qr.QueryResultWebviewLocation.Document; }); + this.registerRequestHandler("getFontFamily", async () => { + console.log("getFontFamily"); + return this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get(Constants.extConfigResultKeys[3]); + }); + this.registerRequestHandler("getFontSize", async () => { + console.log("getFontFamily"); + return this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get(Constants.extConfigResultKeys[2]); + }); registerCommonRequestHandlers(this, this._correlationId); } diff --git a/src/reactviews/pages/QueryResult/queryResultPane.tsx b/src/reactviews/pages/QueryResult/queryResultPane.tsx index 63d53e25b8..1c07f580b1 100644 --- a/src/reactviews/pages/QueryResult/queryResultPane.tsx +++ b/src/reactviews/pages/QueryResult/queryResultPane.tsx @@ -66,9 +66,7 @@ const useStyles = makeStyles({ width: "100%", position: "relative", display: "flex", - fontFamily: "Menlo, Monaco, 'Courier New', monospace", fontWeight: "normal", - fontSize: "12px", }, queryResultPaneOpenButton: { position: "absolute", @@ -110,8 +108,31 @@ function getAvailableHeight( } export const QueryResultPane = () => { - const classes = useStyles(); const state = useContext(QueryResultContext); + const [fontFamily, setFontFamily] = useState(""); + const [fontSize, setFontSize] = useState(""); + + useEffect(() => { + const getFontFamily = async () => { + let fontFamily = (await webViewState.extensionRpc.call( + "getFontFamily", + )) as string; + setFontFamily(fontFamily); + }; + + const getFontSize = async () => { + let fontSize = (await webViewState.extensionRpc.call( + "getFontSize", + )) as string; + setFontSize(fontSize); + }; + if (!fontFamily) { + void getFontFamily(); + } + if (!fontSize) { + void getFontSize(); + } + }); if (!state) { return; } @@ -119,6 +140,7 @@ export const QueryResultPane = () => { qr.QueryResultWebviewState, qr.QueryResultReducers >(); + const classes = useStyles(); var metadata = state?.state; const resultPaneParentRef = useRef(null); const ribbonRef = useRef(null); @@ -247,6 +269,8 @@ export const QueryResultPane = () => { gridCount, )}px` : "", + fontFamily: fontFamily, + fontSize: fontSize, }} > Date: Thu, 12 Dec 2024 11:13:44 -0800 Subject: [PATCH 2/6] wip update state with font family & size --- src/constants/constants.ts | 12 +++--- src/models/sqlOutputContentProvider.ts | 2 +- .../queryResultWebViewController.ts | 38 +++++++++++++------ .../queryResultWebviewPanelController.ts | 14 +------ .../pages/QueryResult/queryResultPane.tsx | 34 ++++------------- src/sharedInterfaces/queryResult.ts | 6 +++ 6 files changed, 48 insertions(+), 58 deletions(-) diff --git a/src/constants/constants.ts b/src/constants/constants.ts index 5c33f56d65..c94920a767 100644 --- a/src/constants/constants.ts +++ b/src/constants/constants.ts @@ -170,12 +170,12 @@ export const configMaxRecentConnections = "maxRecentConnections"; export const configCopyRemoveNewLine = "copyRemoveNewLine"; export const configSplitPaneSelection = "splitPaneSelection"; export const configShowBatchTime = "showBatchTime"; -export const extConfigResultKeys = [ - "shortcuts", - "messagesDefaultOpen", - "resultsFontSize", - "resultsFontFamily", -]; +export enum extConfigResultKeys { + ShortCuts = "shortcuts", + MessagesDefaultOpen = "messagesDefaultOpen", + ResultsFontSize = "resultsFontSize", + ResultsFontFamily = "resultsFontFamily", +} export const sqlToolsServiceInstallDirConfigKey = "installDir"; export const sqlToolsServiceExecutableFilesConfigKey = "executableFiles"; export const sqlToolsServiceVersionConfigKey = "version"; diff --git a/src/models/sqlOutputContentProvider.ts b/src/models/sqlOutputContentProvider.ts index 01f9a221e5..1feffb74c7 100644 --- a/src/models/sqlOutputContentProvider.ts +++ b/src/models/sqlOutputContentProvider.ts @@ -98,7 +98,7 @@ export class SqlOutputContentProvider { queryUri, ); let config = new ResultsConfig(); - for (let key of Constants.extConfigResultKeys) { + for (let key in Constants.extConfigResultKeys) { config[key] = extConfig[key]; } return Promise.resolve(config); diff --git a/src/queryResult/queryResultWebViewController.ts b/src/queryResult/queryResultWebViewController.ts index a17817de02..bd56ff0cf9 100644 --- a/src/queryResult/queryResultWebViewController.ts +++ b/src/queryResult/queryResultWebViewController.ts @@ -55,6 +55,7 @@ export class QueryResultWebviewController extends ReactWebviewViewController< }, executionPlanState: {}, filterState: {}, + fontSettings: {}, }); void this.initialize(); @@ -74,6 +75,7 @@ export class QueryResultWebviewController extends ReactWebviewViewController< isExecutionPlan: false, executionPlanState: {}, filterState: {}, + fontSettings: {}, }; } }); @@ -85,6 +87,29 @@ export class QueryResultWebviewController extends ReactWebviewViewController< this._queryResultStateMap.delete(uri); } }); + + this._vscodeWrapper.onDidChangeConfiguration((e) => { + if (e.affectsConfiguration("mssql.resultsFontFamily")) { + this.state.fontSettings.fontFamily = this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get(Constants.extConfigResultKeys.ResultsFontFamily); + this.updateState(); + console.log("fontFamily changed"); + } + if (e.affectsConfiguration("mssql.resultsFontSize")) { + console.log( + "new fontSize ", + this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get(Constants.extConfigResultKeys.ResultsFontSize), + ); + this.state.fontSettings.fontSize = this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get(Constants.extConfigResultKeys.ResultsFontSize); + this.updateState(); + console.log("fontSize changed"); + } + }); } } @@ -170,18 +195,6 @@ export class QueryResultWebviewController extends ReactWebviewViewController< this.registerRequestHandler("getWebviewLocation", async () => { return qr.QueryResultWebviewLocation.Panel; }); - this.registerRequestHandler("getFontFamily", async () => { - console.log("getFontFamily"); - return this._vscodeWrapper - .getConfiguration(Constants.extensionName) - .get(Constants.extConfigResultKeys[3]); - }); - this.registerRequestHandler("getFontSize", async () => { - console.log("getFontSize"); - return this._vscodeWrapper - .getConfiguration(Constants.extensionName) - .get(Constants.extConfigResultKeys[2]); - }); registerCommonRequestHandlers(this, this._correlationId); } @@ -237,6 +250,7 @@ export class QueryResultWebviewController extends ReactWebviewViewController< }, }), filterState: {}, + fontSettings: {}, }; this._queryResultStateMap.set(uri, currentState); } diff --git a/src/queryResult/queryResultWebviewPanelController.ts b/src/queryResult/queryResultWebviewPanelController.ts index 14ed59d535..e1e4c2b876 100644 --- a/src/queryResult/queryResultWebviewPanelController.ts +++ b/src/queryResult/queryResultWebviewPanelController.ts @@ -5,7 +5,6 @@ import * as vscode from "vscode"; import * as qr from "../sharedInterfaces/queryResult"; -import * as Constants from "../constants/constants"; import { randomUUID } from "crypto"; import VscodeWrapper from "../controllers/vscodeWrapper"; import { ReactWebviewPanelController } from "../controllers/reactWebviewPanelController"; @@ -37,6 +36,7 @@ export class QueryResultWebviewPanelController extends ReactWebviewPanelControll }, executionPlanState: {}, filterState: {}, + fontSettings: {}, }, { title: vscode.l10n.t({ @@ -74,18 +74,6 @@ export class QueryResultWebviewPanelController extends ReactWebviewPanelControll this.registerRequestHandler("getWebviewLocation", async () => { return qr.QueryResultWebviewLocation.Document; }); - this.registerRequestHandler("getFontFamily", async () => { - console.log("getFontFamily"); - return this._vscodeWrapper - .getConfiguration(Constants.extensionName) - .get(Constants.extConfigResultKeys[3]); - }); - this.registerRequestHandler("getFontSize", async () => { - console.log("getFontFamily"); - return this._vscodeWrapper - .getConfiguration(Constants.extensionName) - .get(Constants.extConfigResultKeys[2]); - }); registerCommonRequestHandlers(this, this._correlationId); } diff --git a/src/reactviews/pages/QueryResult/queryResultPane.tsx b/src/reactviews/pages/QueryResult/queryResultPane.tsx index d4e638d7b1..bdea8d4393 100644 --- a/src/reactviews/pages/QueryResult/queryResultPane.tsx +++ b/src/reactviews/pages/QueryResult/queryResultPane.tsx @@ -114,30 +114,6 @@ function getAvailableHeight( export const QueryResultPane = () => { const state = useContext(QueryResultContext); - const [fontFamily, setFontFamily] = useState(""); - const [fontSize, setFontSize] = useState(""); - - useEffect(() => { - const getFontFamily = async () => { - let fontFamily = (await webViewState.extensionRpc.call( - "getFontFamily", - )) as string; - setFontFamily(fontFamily); - }; - - const getFontSize = async () => { - let fontSize = (await webViewState.extensionRpc.call( - "getFontSize", - )) as string; - setFontSize(fontSize); - }; - if (!fontFamily) { - void getFontFamily(); - } - if (!fontSize) { - void getFontSize(); - } - }); if (!state) { return; } @@ -258,6 +234,8 @@ export const QueryResultPane = () => { gridCount: number, ) => { const divId = `grid-parent-${batchId}-${resultId}`; + console.log("fontSize: ", metadata.fontSettings.fontSize); + console.log("fontFamily: ", metadata.fontSettings.fontFamily); return (
{ gridCount, )}px` : "", - fontFamily: fontFamily, - fontSize: fontSize, + fontFamily: metadata.fontSettings.fontFamily + ? metadata.fontSettings.fontFamily + : "var(--vscode-editor-font-family)", + fontSize: metadata.fontSettings.fontSize + ? `${metadata.fontSettings.fontSize}px` + : "var(--vscode-editor-font-size)", }} > ; + fontSettings: FontSettings; } export interface QueryResultReducers From b4fb0e31c5769f329c2cb134b38df90c493cb662 Mon Sep 17 00:00:00 2001 From: Christopher Suh Date: Thu, 12 Dec 2024 13:48:38 -0800 Subject: [PATCH 3/6] fix state update call --- .../queryResultWebViewController.ts | 57 +++++++++++++------ .../pages/QueryResult/queryResultPane.tsx | 2 +- 2 files changed, 40 insertions(+), 19 deletions(-) diff --git a/src/queryResult/queryResultWebViewController.ts b/src/queryResult/queryResultWebViewController.ts index bd56ff0cf9..9703c38a6a 100644 --- a/src/queryResult/queryResultWebViewController.ts +++ b/src/queryResult/queryResultWebViewController.ts @@ -75,7 +75,20 @@ export class QueryResultWebviewController extends ReactWebviewViewController< isExecutionPlan: false, executionPlanState: {}, filterState: {}, - fontSettings: {}, + fontSettings: { + fontSize: this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get( + Constants.extConfigResultKeys + .ResultsFontSize, + ), + fontFamily: this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get( + Constants.extConfigResultKeys + .ResultsFontFamily, + ), + }, }; } }); @@ -87,27 +100,24 @@ export class QueryResultWebviewController extends ReactWebviewViewController< this._queryResultStateMap.delete(uri); } }); - this._vscodeWrapper.onDidChangeConfiguration((e) => { if (e.affectsConfiguration("mssql.resultsFontFamily")) { - this.state.fontSettings.fontFamily = this._vscodeWrapper - .getConfiguration(Constants.extensionName) - .get(Constants.extConfigResultKeys.ResultsFontFamily); - this.updateState(); - console.log("fontFamily changed"); + for (const [uri, state] of this._queryResultStateMap) { + state.fontSettings.fontFamily = this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get( + Constants.extConfigResultKeys.ResultsFontFamily, + ); + this._queryResultStateMap.set(uri, state); + } } if (e.affectsConfiguration("mssql.resultsFontSize")) { - console.log( - "new fontSize ", - this._vscodeWrapper + for (const [uri, state] of this._queryResultStateMap) { + state.fontSettings.fontSize = this._vscodeWrapper .getConfiguration(Constants.extensionName) - .get(Constants.extConfigResultKeys.ResultsFontSize), - ); - this.state.fontSettings.fontSize = this._vscodeWrapper - .getConfiguration(Constants.extensionName) - .get(Constants.extConfigResultKeys.ResultsFontSize); - this.updateState(); - console.log("fontSize changed"); + .get(Constants.extConfigResultKeys.ResultsFontSize); + this._queryResultStateMap.set(uri, state); + } } }); } @@ -250,7 +260,18 @@ export class QueryResultWebviewController extends ReactWebviewViewController< }, }), filterState: {}, - fontSettings: {}, + fontSettings: { + fontSize: this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get( + Constants.extConfigResultKeys.ResultsFontSize, + ) as number, + fontFamily: this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get( + Constants.extConfigResultKeys.ResultsFontFamily, + ) as string, + }, }; this._queryResultStateMap.set(uri, currentState); } diff --git a/src/reactviews/pages/QueryResult/queryResultPane.tsx b/src/reactviews/pages/QueryResult/queryResultPane.tsx index bdea8d4393..1dc9794571 100644 --- a/src/reactviews/pages/QueryResult/queryResultPane.tsx +++ b/src/reactviews/pages/QueryResult/queryResultPane.tsx @@ -113,6 +113,7 @@ function getAvailableHeight( } export const QueryResultPane = () => { + const classes = useStyles(); const state = useContext(QueryResultContext); if (!state) { return; @@ -121,7 +122,6 @@ export const QueryResultPane = () => { qr.QueryResultWebviewState, qr.QueryResultReducers >(); - const classes = useStyles(); var metadata = state?.state; const resultPaneParentRef = useRef(null); const ribbonRef = useRef(null); From c6ebff4132e90a79addcae0d5be5b98fdc951691 Mon Sep 17 00:00:00 2001 From: Christopher Suh Date: Thu, 12 Dec 2024 13:49:22 -0800 Subject: [PATCH 4/6] cleanup remove console logs --- src/reactviews/pages/QueryResult/queryResultPane.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/reactviews/pages/QueryResult/queryResultPane.tsx b/src/reactviews/pages/QueryResult/queryResultPane.tsx index 1dc9794571..bf283993c7 100644 --- a/src/reactviews/pages/QueryResult/queryResultPane.tsx +++ b/src/reactviews/pages/QueryResult/queryResultPane.tsx @@ -234,8 +234,6 @@ export const QueryResultPane = () => { gridCount: number, ) => { const divId = `grid-parent-${batchId}-${resultId}`; - console.log("fontSize: ", metadata.fontSettings.fontSize); - console.log("fontFamily: ", metadata.fontSettings.fontFamily); return (
Date: Thu, 19 Dec 2024 11:57:32 -0800 Subject: [PATCH 5/6] scale row height & column width with font size --- README.md | 4 +- package.json | 3153 +++++++++-------- .../queryResultWebViewController.ts | 44 +- .../pages/QueryResult/queryResultPane.tsx | 5 +- .../pages/QueryResult/resultGrid.tsx | 15 +- 5 files changed, 1624 insertions(+), 1597 deletions(-) diff --git a/README.md b/README.md index 75567a7d9f..040edd04e4 100644 --- a/README.md +++ b/README.md @@ -98,8 +98,8 @@ See [customize options] and [manage connection profiles] for more details. "mssql.intelliSense.enableSuggestions": true, "mssql.intelliSense.enableQuickInfo": true, "mssql.intelliSense.lowerCaseSuggestions": false, - "mssql.resultsFontFamily": "-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,Ubuntu,Droid Sans,sans-serif", - "mssql.resultsFontSize": 13, + "mssql.resultsFontFamily": null, + "mssql.resultsFontSize": null, "mssql.copyIncludeHeaders": false, "mssql.copyRemoveNewLine" : true, "mssql.splitPaneSelection": "next", diff --git a/package.json b/package.json index 7df6c68bdf..04c68433f1 100644 --- a/package.json +++ b/package.json @@ -1,1592 +1,1595 @@ { - "name": "mssql", - "displayName": "SQL Server (mssql)", - "version": "1.28.0", - "description": "Develop Microsoft SQL Server, Azure SQL Database and SQL Data Warehouse everywhere", - "publisher": "ms-mssql", - "preview": false, - "license": "SEE LICENSE IN LICENSE.txt", - "aiKey": "29a207bb14f84905966a8f22524cb730-25407f35-11b6-4d4e-8114-ab9e843cb52f-7380", - "icon": "images/sqlserver.png", - "galleryBanner": { - "color": "#2F2F2F", - "theme": "dark" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/vscode-mssql.git" - }, - "bugs": { - "url": "https://github.com/Microsoft/vscode-mssql/issues" - }, - "homepage": "https://github.com/Microsoft/vscode-mssql/blob/master/README.md", - "engines": { - "vscode": "^1.83.1" - }, - "categories": [ - "Programming Languages", - "Azure" - ], - "keywords": [ - "SQL", - "MSSQL", - "SQL Server", - "Azure SQL Database", - "Azure SQL Data Warehouse", - "multi-root ready" - ], - "activationEvents": [ - "onUri", - "onCommand:mssql.loadCompletionExtension" - ], - "main": "./out/src/extension", - "l10n": "./localization/l10n", - "extensionDependencies": [ - "vscode.sql" - ], - "extensionPack": [ - "ms-mssql.data-workspace-vscode", - "ms-mssql.sql-database-projects-vscode", - "ms-mssql.sql-bindings-vscode" - ], - "scripts": { - "build": "gulp build", - "compile": "gulp ext:compile", - "watch": "gulp watch", - "lint": "eslint --quiet --cache", - "localization": "gulp ext:extract-localization-strings", - "smoketest": "gulp ext:smoke", - "test": "node ./out/test/unit/runTest.js", - "package": "vsce package", - "prepare": "husky", - "lint-staged": "lint-staged --quiet", - "precommit": "run-p lint-staged localization", - "clean-package": "git clean -xfd && yarn install && yarn build && yarn gulp package:online", - "testWithCoverage": "yarn test && yarn gulp cover" - }, - "lint-staged": { - "*.ts": "eslint --quiet --cache", - "*.tsx": "eslint --quiet --cache", - "*.css": "prettier --check" - }, - "devDependencies": { - "@angular/common": "~2.1.2", - "@angular/compiler": "~2.1.2", - "@angular/core": "~2.1.2", - "@angular/forms": "~2.1.2", - "@angular/platform-browser": "~2.1.2", - "@angular/platform-browser-dynamic": "~2.1.2", - "@angular/router": "~3.1.2", - "@angular/upgrade": "~2.1.2", - "@azure/core-paging": "^1.6.2", - "@eslint/compat": "^1.1.0", - "@eslint/js": "^9.5.0", - "@fluentui/react-components": "^9.55.1", - "@fluentui/react-list-preview": "^0.3.6", - "@fluentui-contrib/react-data-grid-react-window": "^1.2.0", - "@istanbuljs/nyc-config-typescript": "^1.0.2", - "@jgoz/esbuild-plugin-typecheck": "^4.0.0", - "@monaco-editor/react": "^4.6.0", - "@playwright/test": "^1.45.0", - "@stylistic/eslint-plugin": "^2.8.0", - "@types/azdata": "^1.46.6", - "@types/ejs": "^3.1.0", - "@types/eslint__js": "^8.42.3", - "@types/jquery": "^3.3.31", - "@types/jqueryui": "^1.12.7", - "@types/keytar": "^4.4.2", - "@types/lockfile": "^1.0.2", - "@types/mocha": "^5.2.7", - "@types/node": "^20.14.8", - "@types/node-fetch": "^2.6.2", - "@types/react": "^18.3.3", - "@types/react-dom": "^18.3.0", - "@types/react-resizable": "^3.0.8", - "@types/sinon": "^10.0.12", - "@types/tmp": "0.0.28", - "@types/underscore": "1.8.3", - "@types/vscode": "1.83.1", - "@types/vscode-webview": "^1.57.5", - "@typescript-eslint/eslint-plugin": "^8.7.0", - "@typescript-eslint/parser": "^8.7.0", - "@vscode/l10n": "^0.0.18", - "@vscode/l10n-dev": "^0.0.35", - "@vscode/test-cli": "^0.0.10", - "@vscode/test-electron": "^2.4.1", - "@vscode/vsce": "^3.1.1", - "@xmldom/xmldom": "0.8.4", - "angular-in-memory-web-api": "0.1.13", - "angular2-slickgrid": "github:microsoft/angular2-slickgrid#1.4.7", - "assert": "^1.4.1", - "azdataGraph": "github:Microsoft/azdataGraph#0.0.69", - "chai": "^3.5.0", - "cli-color": "^2.0.4", - "coveralls": "^3.0.2", - "decache": "^4.1.0", - "del": "^2.2.1", - "esbuild": "^0.22.0", - "esbuild-plugin-copy": "^2.1.1", - "eslint": "^9.11.1", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-deprecation": "^3.0.0", - "eslint-plugin-jsdoc": "^50.2.2", - "eslint-plugin-jsx-a11y": "^6.10.0", - "eslint-plugin-notice": "^1.0.0", - "eslint-plugin-prettier": "^5.2.1", - "eslint-plugin-react": "^7.35.2", - "eslint-plugin-react-hooks": "^4.6.2", - "gulp": "^4.0.2", - "gulp-concat": "^2.6.0", - "gulp-eslint-new": "^2.1.0", - "gulp-istanbul-report": "0.0.1", - "gulp-rename": "^1.2.2", - "gulp-run-command": "^0.0.10", - "gulp-shell": "^0.7.0", - "gulp-sourcemaps": "^1.6.0", - "gulp-typescript": "^5.0.1", - "gulp-uglify": "^2.0.0", - "husky": "^9.0.11", - "istanbul": "^0.4.5", - "lint-staged": "^15.2.10", - "mocha-junit-reporter": "^2.2.1", - "npm-run-all": "^4.1.5", - "nyc": "^17.1.0", - "prettier": "^3.3.3", - "react": "^18.3.1", - "react-dom": "^18.3.1", - "react-markdown": "^9.0.1", - "react-resizable": "^3.0.5", - "react-router-dom": "^6.24.1", - "remap-istanbul": "0.9.6", - "rxjs": "5.0.0-beta.12", - "sinon": "^14.0.0", - "slickgrid": "github:Microsoft/SlickGrid.ADS#2.3.46", - "source-map-support": "^0.5.21", - "systemjs": "0.19.40", - "systemjs-builder": "^0.15.32", - "systemjs-plugin-json": "^0.2.0", - "ts-node": "^10.9.2", - "typemoq": "^1.7.0", - "typescript": "^5.6.2", - "typescript-eslint": "^8.7.0", - "uglify-js": "mishoo/UglifyJS2#harmony-v2.8.22", - "vscode-nls-dev": "2.0.1", - "xliff": "^6.2.1", - "yargs": "^17.7.2" - }, - "dependencies": { - "@azure/arm-resources": "^5.0.0", - "@azure/arm-sql": "^9.0.0", - "@azure/arm-subscriptions": "^5.0.0", - "@azure/msal-common": "^14.14.0", - "@azure/msal-node": "^2.12.0", - "@microsoft/ads-extension-telemetry": "^3.0.2", - "@microsoft/vscode-azext-azureauth": "^2.5.0", - "axios": "^1.7.4", - "core-js": "^2.4.1", - "decompress-zip": "^0.2.2", - "dotenv": "^16.4.5", - "ejs": "^3.1.10", - "error-ex": "^1.3.0", - "figures": "^1.4.0", - "find-remove": "1.2.1", - "getmac": "1.2.1", - "jquery": "^3.4.1", - "lockfile": "1.0.4", - "node-fetch": "^2.6.2", - "opener": "1.4.2", - "plist": "^3.0.6", - "pretty-data": "^0.40.0", - "qs": "^6.9.1", - "rangy": "^1.3.0", - "reflect-metadata": "0.1.12", - "semver": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz", - "signal-exit": "^4.1.0", - "tar": "^7.4.3", - "tmp": "^0.0.28", - "underscore": "^1.8.3", - "vscode-languageclient": "5.2.1", - "vscode-nls": "^2.0.2", - "yallist": "^5.0.0", - "zone.js": "^0.6.26" - }, - "resolutions": { - "gulp-typescript/source-map": "0.7.4" - }, - "capabilities": { - "untrustedWorkspaces": { - "supported": true - } - }, - "contributes": { - "viewsContainers": { - "activitybar": [ - { - "id": "objectExplorer", - "title": "SQL Server", - "icon": "media/server_page_dark.svg" - } - ], - "panel": [ - { - "id": "queryResult", - "title": "Query Results (Preview)", - "icon": "media/SignIn.svg" - } - ] + "name": "mssql", + "displayName": "SQL Server (mssql)", + "version": "1.28.0", + "description": "Develop Microsoft SQL Server, Azure SQL Database and SQL Data Warehouse everywhere", + "publisher": "ms-mssql", + "preview": false, + "license": "SEE LICENSE IN LICENSE.txt", + "aiKey": "29a207bb14f84905966a8f22524cb730-25407f35-11b6-4d4e-8114-ab9e843cb52f-7380", + "icon": "images/sqlserver.png", + "galleryBanner": { + "color": "#2F2F2F", + "theme": "dark" }, - "views": { - "queryResult": [ - { - "type": "webview", - "id": "queryResult", - "name": "%extension.queryResult%", - "when": "config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature" - } - ], - "objectExplorer": [ - { - "id": "objectExplorer", - "name": "%extension.connections%" - }, - { - "id": "queryHistory", - "name": "%extension.queryHistory%", - "when": "config.mssql.enableQueryHistoryFeature" - } - ] + "repository": { + "type": "git", + "url": "https://github.com/Microsoft/vscode-mssql.git" }, - "customEditors": [ - { - "viewType": "mssql.executionPlanView", - "displayName": "SQL Server Execution Plan", - "selector": [ - { - "filenamePattern": "*.sqlplan", - "language": "sqlplan" - } - ], - "priority": "default" - } + "bugs": { + "url": "https://github.com/Microsoft/vscode-mssql/issues" + }, + "homepage": "https://github.com/Microsoft/vscode-mssql/blob/master/README.md", + "engines": { + "vscode": "^1.83.1" + }, + "categories": [ + "Programming Languages", + "Azure" ], - "languages": [ - { - "id": "sql", - "extensions": [ - ".sql" - ], - "aliases": [ - "SQL" - ], - "configuration": "./syntaxes/sql.configuration.json" - }, - { - "id": "sqlplan", - "extensions": [ - ".sqlplan" - ], - "aliases": [ - "SQL Server Execution Plan" - ] - } + "keywords": [ + "SQL", + "MSSQL", + "SQL Server", + "Azure SQL Database", + "Azure SQL Data Warehouse", + "multi-root ready" ], - "grammars": [ - { - "language": "sql", - "scopeName": "source.sql", - "path": "./syntaxes/SQL.plist" - } + "activationEvents": [ + "onUri", + "onCommand:mssql.loadCompletionExtension" ], - "snippets": [ - { - "language": "sql", - "path": "./snippets/mssql.json" - } + "main": "./out/src/extension", + "l10n": "./localization/l10n", + "extensionDependencies": [ + "vscode.sql" ], - "menus": { - "editor/title": [ - { - "command": "mssql.runQuery", - "when": "editorLangId == sql", - "group": "navigation@1" - }, - { - "command": "mssql.cancelQuery", - "when": "editorLangId == sql && resourcePath in mssql.runningQueries", - "group": "navigation@2" - }, - { - "command": "mssql.revealQueryResultPanel", - "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature && view.queryResult.visible == false", - "group": "navigation@2" - }, - { - "command": "mssql.connect", - "when": "editorLangId == sql && resource not in mssql.connections", - "group": "navigation@3" - }, - { - "command": "mssql.disconnect", - "when": "editorLangId == sql && resource in mssql.connections", - "group": "navigation@3" - }, - { - "command": "mssql.changeDatabase", - "when": "editorLangId == sql", - "group": "navigation@4" - }, - { - "command": "mssql.showExecutionPlanInResults", - "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature", - "group": "navigation@4" - }, - { - "command": "mssql.enableActualPlan", - "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature && !(resource in mssql.executionPlan.urisWithActualPlanEnabled)", - "group": "navigation@5" - }, - { - "command": "mssql.disableActualPlan", - "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature && resource in mssql.executionPlan.urisWithActualPlanEnabled", - "group": "navigation@5" - } - ], - "editor/context": [ - { - "command": "mssql.runQuery", - "when": "editorLangId == sql" - } - ], - "view/title": [ - { - "command": "mssql.addObjectExplorer", - "when": "view == objectExplorer && !config.mssql.enableRichExperiences", - "title": "%mssql.addObjectExplorer%", - "group": "navigation" - }, - { - "command": "mssql.addObjectExplorerPreview", - "when": "view == objectExplorer && config.mssql.enableRichExperiences", - "title": "%mssql.addObjectExplorerPreview%", - "group": "navigation" - }, - { - "command": "mssql.startQueryHistoryCapture", - "when": "view == queryHistory && config.mssql.enableQueryHistoryFeature && !config.mssql.enableQueryHistoryCapture", - "title": "%mssql.startQueryHistoryCapture%", - "group": "navigation" - }, - { - "command": "mssql.pauseQueryHistoryCapture", - "when": "view == queryHistory && config.mssql.enableQueryHistoryFeature && config.mssql.enableQueryHistoryCapture", - "title": "%mssql.pauseQueryHistoryCapture%", - "group": "navigation" - }, - { - "command": "mssql.clearAllQueryHistory", - "when": "view == queryHistory", - "title": "%mssql.clearAllQueryHistory%", - "group": "secondary" - }, - { - "command": "mssql.objectExplorer.enableGroupBySchema", - "when": "view == objectExplorer && !config.mssql.objectExplorer.groupBySchema", - "title": "%mssql.objectExplorer.enableGroupBySchema%", - "group": "navigation" - }, - { - "command": "mssql.objectExplorer.disableGroupBySchema", - "when": "view == objectExplorer && config.mssql.objectExplorer.groupBySchema", - "title": "%mssql.objectExplorer.disableGroupBySchema%", - "group": "navigation" - } - ], - "view/item/context": [ - { - "command": "mssql.objectExplorerNewQuery", - "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server|Database)\\b/", - "group": "MS_SQL@1" - }, - { - "command": "mssql.filterNode", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=false\\b/", - "group": "inline@1" - }, - { - "command": "mssql.filterNodeWithExistingFilters", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/", - "group": "inline@1" - }, - { - "command": "mssql.clearFilters", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/", - "group": "inline@2" - }, - { - "command": "mssql.filterNode", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=false\\b/" - }, - { - "command": "mssql.filterNodeWithExistingFilters", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/" - }, - { - "command": "mssql.clearFilters", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/" - }, - { - "command": "mssql.removeObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server)\\b/", - "group": "MS_SQL@4" - }, - { - "command": "mssql.editConnection", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\btype=(disconnectedServer|Server)\\b/", - "group": "inline" - }, - { - "command": "mssql.refreshObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(?!disconnectedServer\\b)[^,]+/ ", - "group": "MS_SQL@10" - }, - { - "command": "mssql.refreshObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(?!disconnectedServer\\b)[^,]+/ ", - "group": "inline@9999" - }, - { - "command": "mssql.disconnectObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Server)\\b/", - "group": "MS_SQL@3" - }, - { - "command": "mssql.scriptSelect", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View)\\b/", - "group": "MS_SQL@1" - }, - { - "command": "mssql.scriptCreate", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/", - "group": "MS_SQL@2" - }, - { - "command": "mssql.scriptDelete", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/", - "group": "MS_SQL@3" - }, - { - "command": "mssql.scriptExecute", - "when": "view == objectExplorer && viewItem =~ /\\btype=(StoredProcedure)\\b/", - "group": "MS_SQL@5" - }, - { - "command": "mssql.scriptAlter", - "when": "view == objectExplorer && viewItem =~ /\\btype=(AggregateFunction|PartitionFunction|ScalarValuedFunction|StoredProcedure|TableValuedFunction|View)\\b/", - "group": "MS_SQL@4" - }, - { - "command": "mssql.newTable", - "when": "view == objectExplorer && viewItem =~ /\\bsubType=(Tables)\\b/ && config.mssql.enableRichExperiences", - "group": "inline" - }, - { - "command": "mssql.editTable", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table)\\b/ && config.mssql.enableRichExperiences", - "group": "inline" - }, - { - "command": "mssql.copyObjectName", - "when": "view == objectExplorer && viewItem =~ /\\btype=(?!Folder\\b)[^,]+/" - }, - { - "command": "mssql.openQueryHistory", - "when": "view == queryHistory && viewItem == queryHistoryNode", - "group": "MS_SQL@1" - }, - { - "command": "mssql.runQueryHistory", - "when": "view == queryHistory && viewItem == queryHistoryNode", - "group": "MS_SQL@2" - }, - { - "command": "mssql.deleteQueryHistory", - "when": "view == queryHistory && viewItem == queryHistoryNode", - "group": "MS_SQL@3" - } - ], - "commandPalette": [ - { - "command": "mssql.objectExplorerNewQuery", - "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server|Database)\\b/" - }, - { - "command": "mssql.removeObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server)\\b/" - }, - { - "command": "mssql.refreshObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(?!disconnectedServer\\b)[^,]+/" - }, - { - "command": "mssql.scriptSelect", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View)\\b/" - }, - { - "command": "mssql.scriptCreate", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/" - }, - { - "command": "mssql.scriptDelete", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/" - }, - { - "command": "mssql.scriptExecute", - "when": "view == objectExplorer && viewItem =~ /\\btype=(StoredProcedure)\\b/" - }, - { - "command": "mssql.scriptAlter", - "when": "view == objectExplorer && viewItem =~ /\\btype=(AggregateFunction|PartitionFunction|ScalarValuedFunction|StoredProcedure|TableValuedFunction|View)\\b/" - }, - { - "command": "mssql.disconnectObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Server)\\b/" - }, - { - "command": "mssql.toggleSqlCmd", - "when": "editorFocus && editorLangId == 'sql'" - }, - { - "command": "mssql.startQueryHistoryCapture", - "when": "config.mssql.enableQueryHistoryFeature && !config.mssql.enableQueryHistoryCapture" - }, - { - "command": "mssql.pauseQueryHistoryCapture", - "when": "config.mssql.enableQueryHistoryFeature && config.mssql.enableQueryHistoryCapture" - }, - { - "command": "mssql.copyObjectName", - "when": "view == objectExplorer && viewItem =~ /\\btype=(?!Folder\\b)[^,]+/" - }, - { - "command": "mssql.runQueryHistory", - "when": "view == queryHistory && viewItem == queryHistoryNode" - }, - { - "command": "mssql.newTable", - "when": "view == objectExplorer && viewItem =~ /\\bsubType=(Tables)\\b/ && config.mssql.enableRichExperiences" - }, - { - "command": "mssql.editTable", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table)\\b/ && config.mssql.enableRichExperiences" - }, - { - "command": "mssql.addObjectExplorer", - "when": "!config.mssql.enableRichExperiences" - }, - { - "command": "mssql.addObjectExplorerPreview", - "when": "config.mssql.enableRichExperiences" - }, - { - "command": "mssql.editConnection", - "when": "config.mssql.enableRichExperiences" - } - ], - "webview/context": [ - { - "command": "mssql.copyAll", - "when": "webviewSection == 'queryResultMessagesPane'" - } - ] + "extensionPack": [ + "ms-mssql.data-workspace-vscode", + "ms-mssql.sql-database-projects-vscode", + "ms-mssql.sql-bindings-vscode" + ], + "scripts": { + "build": "gulp build", + "compile": "gulp ext:compile", + "watch": "gulp watch", + "lint": "eslint --quiet --cache", + "localization": "gulp ext:extract-localization-strings", + "smoketest": "gulp ext:smoke", + "test": "node ./out/test/unit/runTest.js", + "package": "vsce package", + "prepare": "husky", + "lint-staged": "lint-staged --quiet", + "precommit": "run-p lint-staged localization", + "clean-package": "git clean -xfd && yarn install && yarn build && yarn gulp package:online", + "testWithCoverage": "yarn test && yarn gulp cover" }, - "commands": [ - { - "command": "mssql.runQuery", - "title": "%mssql.runQuery%", - "category": "MS SQL", - "icon": "$(debug-start)" - }, - { - "command": "mssql.runCurrentStatement", - "title": "%mssql.runCurrentStatement%", - "category": "MS SQL" - }, - { - "command": "mssql.cancelQuery", - "title": "%mssql.cancelQuery%", - "category": "MS SQL", - "icon": "$(debug-stop)" - }, - { - "command": "mssql.copyAll", - "title": "%mssql.copyAll%", - "category": "MS SQL" - }, - { - "command": "mssql.revealQueryResultPanel", - "title": "%mssql.revealQueryResultPanel%", - "category": "MS SQL", - "icon": "media/revealQueryResult.svg" - }, - { - "command": "mssql.connect", - "title": "%mssql.connect%", - "category": "MS SQL", - "icon": { - "dark": "media/connect_dark.svg", - "light": "media/connect_light.svg" - } - }, - { - "command": "mssql.disconnect", - "title": "%mssql.disconnect%", - "category": "MS SQL", - "icon": "$(debug-disconnect)" - }, - { - "command": "mssql.filterNode", - "title": "%mssql.filterNode%", - "icon": "$(filter)" - }, - { - "command": "mssql.clearFilters", - "title": "%mssql.clearFilters%", - "icon": { - "dark": "media/removeFilter_dark.svg", - "light": "media/removeFilter_light.svg" - } - }, - { - "command": "mssql.filterNodeWithExistingFilters", - "title": "%mssql.filterNode%", - "icon": "$(filter-filled)" - }, - { - "command": "mssql.changeDatabase", - "title": "%mssql.changeDatabase%", - "category": "MS SQL", - "icon": { - "dark": "media/changeConnection_dark.svg", - "light": "media/changeConnection_light.svg" - } - }, - { - "command": "mssql.manageProfiles", - "title": "%mssql.manageProfiles%", - "category": "MS SQL" - }, - { - "command": "mssql.clearPooledConnections", - "title": "%mssql.clearPooledConnections%", - "category": "MS SQL" - }, - { - "command": "mssql.chooseDatabase", - "title": "%mssql.chooseDatabase%", - "category": "MS SQL" - }, - { - "command": "mssql.chooseLanguageFlavor", - "title": "%mssql.chooseLanguageFlavor%", - "category": "MS SQL" - }, - { - "command": "mssql.showGettingStarted", - "title": "%mssql.showGettingStarted%", - "category": "MS SQL" - }, - { - "command": "mssql.newQuery", - "title": "%mssql.newQuery%", - "category": "MS SQL" - }, - { - "command": "mssql.rebuildIntelliSenseCache", - "title": "%mssql.rebuildIntelliSenseCache%", - "category": "MS SQL" - }, - { - "command": "mssql.toggleSqlCmd", - "title": "%mssql.toggleSqlCmd%", - "category": "MS SQL" - }, - { - "command": "mssql.addObjectExplorer", - "title": "%mssql.addObjectExplorer%", - "category": "MS SQL", - "icon": "$(add)" - }, - { - "command": "mssql.addObjectExplorerPreview", - "title": "%mssql.addObjectExplorerPreview%", - "category": "MS SQL", - "icon": "$(add)" - }, - { - "command": "mssql.objectExplorer.enableGroupBySchema", - "title": "%mssql.objectExplorer.enableGroupBySchema%", - "category": "MS SQL", - "icon": { - "dark": "media/groupBySchemaEnabled_dark.svg", - "light": "media/groupBySchemaEnabled_light.svg" - } - }, - { - "command": "mssql.objectExplorer.disableGroupBySchema", - "title": "%mssql.objectExplorer.disableGroupBySchema%", - "category": "MS SQL", - "icon": { - "dark": "media/groupBySchemaDisabled_dark.svg", - "light": "media/groupBySchemaDisabled_light.svg" - } - }, - { - "command": "mssql.objectExplorerNewQuery", - "title": "%mssql.objectExplorerNewQuery%", - "category": "MS SQL" - }, - { - "command": "mssql.removeObjectExplorerNode", - "title": "%mssql.removeObjectExplorerNode%", - "category": "MS SQL" - }, - { - "command": "mssql.editConnection", - "title": "%mssql.editConnection%", - "category": "MS SQL", - "icon": "$(edit)" - }, - { - "command": "mssql.refreshObjectExplorerNode", - "title": "%mssql.refreshObjectExplorerNode%", - "category": "MS SQL", - "icon": "$(refresh)" - }, - { - "command": "mssql.disconnectObjectExplorerNode", - "title": "%mssql.disconnect%", - "category": "MS SQL" - }, - { - "command": "mssql.scriptSelect", - "title": "%mssql.scriptSelect%", - "category": "MS SQL" - }, - { - "command": "mssql.scriptCreate", - "title": "%mssql.scriptCreate%", - "category": "MS SQL" - }, - { - "command": "mssql.scriptDelete", - "title": "%mssql.scriptDelete%", - "category": "MS SQL" - }, - { - "command": "mssql.scriptExecute", - "title": "%mssql.scriptExecute%", - "category": "MS SQL" - }, - { - "command": "mssql.newTable", - "title": "%mssql.newTable%", - "category": "MS SQL", - "icon": { - "dark": "media/newTable_dark.svg", - "light": "media/newTable_light.svg" - } - }, - { - "command": "mssql.editTable", - "title": "%mssql.editTable%", - "category": "MS SQL", - "icon": { - "dark": "media/editTable_dark.svg", - "light": "media/editTable_light.svg" - } - }, - { - "command": "mssql.scriptAlter", - "title": "%mssql.scriptAlter%", - "category": "MS SQL" - }, - { - "command": "mssql.openQueryHistory", - "title": "%mssql.openQueryHistory%", - "category": "MS SQL" - }, - { - "command": "mssql.runQueryHistory", - "title": "%mssql.runQueryHistory%", - "category": "MS SQL" - }, - { - "command": "mssql.deleteQueryHistory", - "title": "%mssql.deleteQueryHistory%", - "category": "MS SQL" - }, - { - "command": "mssql.clearAllQueryHistory", - "title": "%mssql.clearAllQueryHistory%", - "category": "MS SQL" - }, - { - "command": "mssql.startQueryHistoryCapture", - "title": "%mssql.startQueryHistoryCapture%", - "category": "MS SQL", - "icon": "$(debug-start)" - }, - { - "command": "mssql.pauseQueryHistoryCapture", - "title": "%mssql.pauseQueryHistoryCapture%", - "category": "MS SQL", - "icon": "$(debug-stop)" - }, - { - "command": "mssql.commandPaletteQueryHistory", - "title": "%mssql.commandPaletteQueryHistory%", - "category": "MS SQL" - }, - { - "command": "mssql.copyObjectName", - "title": "%mssql.copyObjectName%", - "category": "MS SQL" - }, - { - "command": "mssql.addAadAccount", - "title": "%mssql.addAadAccount%", - "category": "MS SQL" - }, - { - "command": "mssql.removeAadAccount", - "title": "%mssql.removeAadAccount%", - "category": "MS SQL" - }, - { - "command": "mssql.clearAzureAccountTokenCache", - "title": "%mssql.clearAzureAccountTokenCache%", - "category": "MS SQL" - }, - { - "command": "mssql.userFeedback", - "title": "%mssql.userFeedback%", - "category": "MS SQL" - }, - { - "command": "mssql.showExecutionPlanInResults", - "title": "%mssql.showExecutionPlanInResults%", - "category": "MS SQL", - "icon": { - "dark": "media/executionPlan_dark.svg", - "light": "media/executionPlan_light.svg" - } - }, - { - "command": "mssql.enableActualPlan", - "title": "%mssql.enableActualPlan%", - "category": "MS SQL", - "icon": { - "dark": "media/enableActualExecutionPlan_dark.svg", - "light": "media/enableActualExecutionPlan_light.svg" - } - }, - { - "command": "mssql.disableActualPlan", - "title": "%mssql.disableActualPlan%", - "category": "MS SQL", - "icon": { - "dark": "media/disableActualExecutionPlan_dark.svg", - "light": "media/disableActualExecutionPlan_light.svg" + "lint-staged": { + "*.ts": "eslint --quiet --cache", + "*.tsx": "eslint --quiet --cache", + "*.css": "prettier --check" + }, + "devDependencies": { + "@angular/common": "~2.1.2", + "@angular/compiler": "~2.1.2", + "@angular/core": "~2.1.2", + "@angular/forms": "~2.1.2", + "@angular/platform-browser": "~2.1.2", + "@angular/platform-browser-dynamic": "~2.1.2", + "@angular/router": "~3.1.2", + "@angular/upgrade": "~2.1.2", + "@azure/core-paging": "^1.6.2", + "@eslint/compat": "^1.1.0", + "@eslint/js": "^9.5.0", + "@fluentui/react-components": "^9.55.1", + "@fluentui/react-list-preview": "^0.3.6", + "@fluentui-contrib/react-data-grid-react-window": "^1.2.0", + "@istanbuljs/nyc-config-typescript": "^1.0.2", + "@jgoz/esbuild-plugin-typecheck": "^4.0.0", + "@monaco-editor/react": "^4.6.0", + "@playwright/test": "^1.45.0", + "@stylistic/eslint-plugin": "^2.8.0", + "@types/azdata": "^1.46.6", + "@types/ejs": "^3.1.0", + "@types/eslint__js": "^8.42.3", + "@types/jquery": "^3.3.31", + "@types/jqueryui": "^1.12.7", + "@types/keytar": "^4.4.2", + "@types/lockfile": "^1.0.2", + "@types/mocha": "^5.2.7", + "@types/node": "^20.14.8", + "@types/node-fetch": "^2.6.2", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@types/react-resizable": "^3.0.8", + "@types/sinon": "^10.0.12", + "@types/tmp": "0.0.28", + "@types/underscore": "1.8.3", + "@types/vscode": "1.83.1", + "@types/vscode-webview": "^1.57.5", + "@typescript-eslint/eslint-plugin": "^8.7.0", + "@typescript-eslint/parser": "^8.7.0", + "@vscode/l10n": "^0.0.18", + "@vscode/l10n-dev": "^0.0.35", + "@vscode/test-cli": "^0.0.10", + "@vscode/test-electron": "^2.4.1", + "@vscode/vsce": "^3.1.1", + "@xmldom/xmldom": "0.8.4", + "angular-in-memory-web-api": "0.1.13", + "angular2-slickgrid": "github:microsoft/angular2-slickgrid#1.4.7", + "assert": "^1.4.1", + "azdataGraph": "github:Microsoft/azdataGraph#0.0.69", + "chai": "^3.5.0", + "cli-color": "^2.0.4", + "coveralls": "^3.0.2", + "decache": "^4.1.0", + "del": "^2.2.1", + "esbuild": "^0.22.0", + "esbuild-plugin-copy": "^2.1.1", + "eslint": "^9.11.1", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-deprecation": "^3.0.0", + "eslint-plugin-jsdoc": "^50.2.2", + "eslint-plugin-jsx-a11y": "^6.10.0", + "eslint-plugin-notice": "^1.0.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-react": "^7.35.2", + "eslint-plugin-react-hooks": "^4.6.2", + "gulp": "^4.0.2", + "gulp-concat": "^2.6.0", + "gulp-eslint-new": "^2.1.0", + "gulp-istanbul-report": "0.0.1", + "gulp-rename": "^1.2.2", + "gulp-run-command": "^0.0.10", + "gulp-shell": "^0.7.0", + "gulp-sourcemaps": "^1.6.0", + "gulp-typescript": "^5.0.1", + "gulp-uglify": "^2.0.0", + "husky": "^9.0.11", + "istanbul": "^0.4.5", + "lint-staged": "^15.2.10", + "mocha-junit-reporter": "^2.2.1", + "npm-run-all": "^4.1.5", + "nyc": "^17.1.0", + "prettier": "^3.3.3", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "react-markdown": "^9.0.1", + "react-resizable": "^3.0.5", + "react-router-dom": "^6.24.1", + "remap-istanbul": "0.9.6", + "rxjs": "5.0.0-beta.12", + "sinon": "^14.0.0", + "slickgrid": "github:Microsoft/SlickGrid.ADS#2.3.46", + "source-map-support": "^0.5.21", + "systemjs": "0.19.40", + "systemjs-builder": "^0.15.32", + "systemjs-plugin-json": "^0.2.0", + "ts-node": "^10.9.2", + "typemoq": "^1.7.0", + "typescript": "^5.6.2", + "typescript-eslint": "^8.7.0", + "uglify-js": "mishoo/UglifyJS2#harmony-v2.8.22", + "vscode-nls-dev": "2.0.1", + "xliff": "^6.2.1", + "yargs": "^17.7.2" + }, + "dependencies": { + "@azure/arm-resources": "^5.0.0", + "@azure/arm-sql": "^9.0.0", + "@azure/arm-subscriptions": "^5.0.0", + "@azure/msal-common": "^14.14.0", + "@azure/msal-node": "^2.12.0", + "@microsoft/ads-extension-telemetry": "^3.0.2", + "@microsoft/vscode-azext-azureauth": "^2.5.0", + "axios": "^1.7.4", + "core-js": "^2.4.1", + "decompress-zip": "^0.2.2", + "dotenv": "^16.4.5", + "ejs": "^3.1.10", + "error-ex": "^1.3.0", + "figures": "^1.4.0", + "find-remove": "1.2.1", + "getmac": "1.2.1", + "jquery": "^3.4.1", + "lockfile": "1.0.4", + "node-fetch": "^2.6.2", + "opener": "1.4.2", + "plist": "^3.0.6", + "pretty-data": "^0.40.0", + "qs": "^6.9.1", + "rangy": "^1.3.0", + "reflect-metadata": "0.1.12", + "semver": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz", + "signal-exit": "^4.1.0", + "tar": "^7.4.3", + "tmp": "^0.0.28", + "underscore": "^1.8.3", + "vscode-languageclient": "5.2.1", + "vscode-nls": "^2.0.2", + "yallist": "^5.0.0", + "zone.js": "^0.6.26" + }, + "resolutions": { + "gulp-typescript/source-map": "0.7.4" + }, + "capabilities": { + "untrustedWorkspaces": { + "supported": true } - } - ], - "keybindings": [ - { - "command": "mssql.runQuery", - "key": "ctrl+shift+e", - "mac": "cmd+shift+e", - "when": "editorTextFocus && editorLangId == 'sql'" - }, - { - "command": "mssql.connect", - "key": "ctrl+shift+c", - "mac": "cmd+shift+c", - "when": "editorTextFocus && editorLangId == 'sql'" - }, - { - "command": "mssql.disconnect", - "key": "ctrl+shift+d", - "mac": "cmd+shift+d", - "when": "editorTextFocus && editorLangId == 'sql'" - }, - { - "command": "workbench.view.extension.objectExplorer", - "key": "ctrl+alt+d", - "mac": "cmd+alt+d" - }, - { - "command": "mssql.copyObjectName", - "key": "ctrl+c", - "mac": "cmd+c", - "when": "sideBarFocus && activeViewlet == workbench.view.extension.objectExplorer" - } - ], - "configuration": { - "type": "object", - "title": "%mssql.Configuration%", - "properties": { - "mssql.enableExperimentalFeatures": { - "type": "boolean", - "default": false, - "description": "%mssql.enableExperimentalFeatures.description%", - "scope": "application" - }, - "mssql.enableRichExperiences": { - "type": "boolean", - "default": false, - "description": "%mssql.enableRichExperiences.description%", - "scope": "application" - }, - "mssql.enableRichExperiencesDoNotShowPrompt": { - "type": "boolean", - "default": false, - "description": "%mssql.enableRichExperiencesDoNotShowPrompt.description%", - "scope": "application" - }, - "mssql.openQueryResultsInTabByDefault": { - "type": "boolean", - "default": false, - "description": "%mssql.openQueryResultsInTabByDefault.description%", - "scope": "application" - }, - "mssql.openQueryResultsInTabByDefaultDoNotShowPrompt": { - "type": "boolean", - "default": false, - "description": "%mssql.openQueryResultsInTabByDefaultDoNotShowPrompt.description%", - "scope": "application" - }, - "mssql.enableNewQueryResultFeature": { - "type": "boolean", - "default": true, - "description": "%mssql.enableNewQueryResultFeature.description%", - "scope": "application" - }, - "azureResourceGroups.selectedSubscriptions": { - "type": "array", - "description": "%mssql.selectedSubscriptions%", - "items": { - "type": "string" - }, - "$comment": "This setting must be registered in case the user does not have the Azure Resource Groups extension installed. All extensions using this configuration must register this setting." - }, - "mssql.azureActiveDirectory": { - "type": "string", - "default": "AuthCodeGrant", - "description": "%mssql.chooseAuthMethod%", - "enum": [ - "AuthCodeGrant", - "DeviceCode" - ], - "enumDescriptions": [ - "%mssql.authCodeGrant.description%", - "%mssql.deviceCode.description%" - ], - "scope": "application" - }, - "mssql.logDebugInfo": { - "type": "boolean", - "default": false, - "description": "%mssql.logDebugInfo%", - "scope": "window" - }, - "mssql.maxRecentConnections": { - "type": "number", - "default": 5, - "description": "%mssql.maxRecentConnections%", - "scope": "window" - }, - "mssql.connections": { - "type": "array", - "description": "%mssql.connections%", - "items": { - "type": "object", - "properties": { - "server": { - "type": "string", - "default": "{{put-server-name-here}}", - "description": "%mssql.connection.server%" - }, - "database": { - "type": "string", - "default": "{{put-database-name-here}}", - "description": "%mssql.connection.database%" - }, - "user": { - "type": "string", - "default": "{{put-username-here}}", - "description": "%mssql.connection.user%" - }, - "password": { - "type": "string", - "default": "{{put-password-here}}", - "description": "%mssql.connection.password%" - }, - "authenticationType": { - "type": "string", - "default": "SqlLogin", - "enum": [ - "Integrated", - "SqlLogin", - "AzureMFA" + }, + "contributes": { + "viewsContainers": { + "activitybar": [ + { + "id": "objectExplorer", + "title": "SQL Server", + "icon": "media/server_page_dark.svg" + } + ], + "panel": [ + { + "id": "queryResult", + "title": "Query Results (Preview)", + "icon": "media/SignIn.svg" + } + ] + }, + "views": { + "queryResult": [ + { + "type": "webview", + "id": "queryResult", + "name": "%extension.queryResult%", + "when": "config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature" + } + ], + "objectExplorer": [ + { + "id": "objectExplorer", + "name": "%extension.connections%" + }, + { + "id": "queryHistory", + "name": "%extension.queryHistory%", + "when": "config.mssql.enableQueryHistoryFeature" + } + ] + }, + "customEditors": [ + { + "viewType": "mssql.executionPlanView", + "displayName": "SQL Server Execution Plan", + "selector": [ + { + "filenamePattern": "*.sqlplan", + "language": "sqlplan" + } ], - "description": "%mssql.connection.authenticationType%" - }, - "port": { - "type": "number", - "default": 1433, - "description": "%mssql.connection.port%" - }, - "encrypt": { - "type": "string", - "default": "Mandatory", - "enum": [ - "Mandatory", - "Strict", - "Optional" + "priority": "default" + } + ], + "languages": [ + { + "id": "sql", + "extensions": [ + ".sql" ], - "description": "%mssql.connection.encrypt%" - }, - "trustServerCertificate": { - "type": "boolean", - "default": false, - "description": "%mssql.connection.trustServerCertificate%" - }, - "hostNameInCertificate": { - "type": "string", - "default": "", - "description": "%mssql.connection.hostNameInCertificate" - }, - "persistSecurityInfo": { - "type": "boolean", - "default": false, - "description": "%mssql.connection.persistSecurityInfo%" - }, - "connectTimeout": { - "type": "number", - "default": 15, - "description": "%mssql.connection.connectTimeout%" - }, - "commandTimeout": { - "type": "number", - "default": 30, - "description": "%mssql.connection.commandTimeout%" - }, - "connectRetryCount": { - "type": "number", - "default": 1, - "description": "%mssql.connection.connectRetryCount%" - }, - "connectRetryInterval": { - "type": "number", - "default": 10, - "description": "%mssql.connection.connectRetryInterval%" - }, - "applicationName": { - "type": "string", - "default": "vscode-mssql", - "description": "%mssql.connection.applicationName%" - }, - "workstationId": { - "type": "string", - "default": "", - "description": "%mssql.connection.workstationId%" - }, - "applicationIntent": { - "type": "string", - "default": "ReadWrite", - "enum": [ - "ReadWrite", - "ReadOnly" + "aliases": [ + "SQL" ], - "description": "%mssql.connection.applicationIntent%" - }, - "currentLanguage": { - "type": "string", - "default": "", - "description": "%mssql.connection.currentLanguage%" - }, - "pooling": { - "type": "boolean", - "default": false, - "description": "%mssql.connection.pooling%" - }, - "maxPoolSize": { - "type": "number", - "default": 100, - "description": "%mssql.connection.maxPoolSize%" - }, - "minPoolSize": { - "type": "number", - "default": 0, - "description": "%mssql.connection.minPoolSize%" - }, - "loadBalanceTimeout": { - "type": "number", - "default": 0, - "description": "%mssql.connection.loadBalanceTimeout%" - }, - "replication": { - "type": "boolean", - "default": true, - "description": "%mssql.connection.replication%" - }, - "attachDbFilename": { - "type": "string", - "default": "", - "description": "%mssql.connection.attachDbFilename%" - }, - "failoverPartner": { - "type": "string", - "default": "", - "description": "%mssql.connection.failoverPartner%" - }, - "multiSubnetFailover": { - "type": "boolean", - "default": true, - "description": "%mssql.connection.multiSubnetFailover%" - }, - "multipleActiveResultSets": { - "type": "boolean", - "default": false, - "description": "%mssql.connection.multipleActiveResultSets%" - }, - "packetSize": { - "type": "number", - "default": 8192, - "description": "%mssql.connection.packetSize%" - }, - "typeSystemVersion": { - "type": "string", - "enum": [ - "Latest" + "configuration": "./syntaxes/sql.configuration.json" + }, + { + "id": "sqlplan", + "extensions": [ + ".sqlplan" ], - "description": "%mssql.connection.typeSystemVersion%" - }, - "connectionString": { - "type": "string", - "default": "", - "description": "%mssql.connection.connectionString%" - }, - "profileName": { - "type": "string", - "description": "%mssql.connection.profileName%" - }, - "savePassword": { - "type": "boolean", - "description": "%mssql.connection.savePassword%" - }, - "emptyPasswordInput": { - "type": "boolean", - "description": "%mssql.connection.emptyPasswordInput%" - } + "aliases": [ + "SQL Server Execution Plan" + ] + } + ], + "grammars": [ + { + "language": "sql", + "scopeName": "source.sql", + "path": "./syntaxes/SQL.plist" + } + ], + "snippets": [ + { + "language": "sql", + "path": "./snippets/mssql.json" + } + ], + "menus": { + "editor/title": [ + { + "command": "mssql.runQuery", + "when": "editorLangId == sql", + "group": "navigation@1" + }, + { + "command": "mssql.cancelQuery", + "when": "editorLangId == sql && resourcePath in mssql.runningQueries", + "group": "navigation@2" + }, + { + "command": "mssql.revealQueryResultPanel", + "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature && view.queryResult.visible == false", + "group": "navigation@2" + }, + { + "command": "mssql.connect", + "when": "editorLangId == sql && resource not in mssql.connections", + "group": "navigation@3" + }, + { + "command": "mssql.disconnect", + "when": "editorLangId == sql && resource in mssql.connections", + "group": "navigation@3" + }, + { + "command": "mssql.changeDatabase", + "when": "editorLangId == sql", + "group": "navigation@4" + }, + { + "command": "mssql.showExecutionPlanInResults", + "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature", + "group": "navigation@4" + }, + { + "command": "mssql.enableActualPlan", + "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature && !(resource in mssql.executionPlan.urisWithActualPlanEnabled)", + "group": "navigation@5" + }, + { + "command": "mssql.disableActualPlan", + "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature && resource in mssql.executionPlan.urisWithActualPlanEnabled", + "group": "navigation@5" + } + ], + "editor/context": [ + { + "command": "mssql.runQuery", + "when": "editorLangId == sql" + } + ], + "view/title": [ + { + "command": "mssql.addObjectExplorer", + "when": "view == objectExplorer && !config.mssql.enableRichExperiences", + "title": "%mssql.addObjectExplorer%", + "group": "navigation" + }, + { + "command": "mssql.addObjectExplorerPreview", + "when": "view == objectExplorer && config.mssql.enableRichExperiences", + "title": "%mssql.addObjectExplorerPreview%", + "group": "navigation" + }, + { + "command": "mssql.startQueryHistoryCapture", + "when": "view == queryHistory && config.mssql.enableQueryHistoryFeature && !config.mssql.enableQueryHistoryCapture", + "title": "%mssql.startQueryHistoryCapture%", + "group": "navigation" + }, + { + "command": "mssql.pauseQueryHistoryCapture", + "when": "view == queryHistory && config.mssql.enableQueryHistoryFeature && config.mssql.enableQueryHistoryCapture", + "title": "%mssql.pauseQueryHistoryCapture%", + "group": "navigation" + }, + { + "command": "mssql.clearAllQueryHistory", + "when": "view == queryHistory", + "title": "%mssql.clearAllQueryHistory%", + "group": "secondary" + }, + { + "command": "mssql.objectExplorer.enableGroupBySchema", + "when": "view == objectExplorer && !config.mssql.objectExplorer.groupBySchema", + "title": "%mssql.objectExplorer.enableGroupBySchema%", + "group": "navigation" + }, + { + "command": "mssql.objectExplorer.disableGroupBySchema", + "when": "view == objectExplorer && config.mssql.objectExplorer.groupBySchema", + "title": "%mssql.objectExplorer.disableGroupBySchema%", + "group": "navigation" + } + ], + "view/item/context": [ + { + "command": "mssql.objectExplorerNewQuery", + "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server|Database)\\b/", + "group": "MS_SQL@1" + }, + { + "command": "mssql.filterNode", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=false\\b/", + "group": "inline@1" + }, + { + "command": "mssql.filterNodeWithExistingFilters", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/", + "group": "inline@1" + }, + { + "command": "mssql.clearFilters", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/", + "group": "inline@2" + }, + { + "command": "mssql.filterNode", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=false\\b/" + }, + { + "command": "mssql.filterNodeWithExistingFilters", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/" + }, + { + "command": "mssql.clearFilters", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/" + }, + { + "command": "mssql.removeObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server)\\b/", + "group": "MS_SQL@4" + }, + { + "command": "mssql.editConnection", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\btype=(disconnectedServer|Server)\\b/", + "group": "inline" + }, + { + "command": "mssql.refreshObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(?!disconnectedServer\\b)[^,]+/ ", + "group": "MS_SQL@10" + }, + { + "command": "mssql.refreshObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(?!disconnectedServer\\b)[^,]+/ ", + "group": "inline@9999" + }, + { + "command": "mssql.disconnectObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Server)\\b/", + "group": "MS_SQL@3" + }, + { + "command": "mssql.scriptSelect", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View)\\b/", + "group": "MS_SQL@1" + }, + { + "command": "mssql.scriptCreate", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/", + "group": "MS_SQL@2" + }, + { + "command": "mssql.scriptDelete", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/", + "group": "MS_SQL@3" + }, + { + "command": "mssql.scriptExecute", + "when": "view == objectExplorer && viewItem =~ /\\btype=(StoredProcedure)\\b/", + "group": "MS_SQL@5" + }, + { + "command": "mssql.scriptAlter", + "when": "view == objectExplorer && viewItem =~ /\\btype=(AggregateFunction|PartitionFunction|ScalarValuedFunction|StoredProcedure|TableValuedFunction|View)\\b/", + "group": "MS_SQL@4" + }, + { + "command": "mssql.newTable", + "when": "view == objectExplorer && viewItem =~ /\\bsubType=(Tables)\\b/ && config.mssql.enableRichExperiences", + "group": "inline" + }, + { + "command": "mssql.editTable", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table)\\b/ && config.mssql.enableRichExperiences", + "group": "inline" + }, + { + "command": "mssql.copyObjectName", + "when": "view == objectExplorer && viewItem =~ /\\btype=(?!Folder\\b)[^,]+/" + }, + { + "command": "mssql.openQueryHistory", + "when": "view == queryHistory && viewItem == queryHistoryNode", + "group": "MS_SQL@1" + }, + { + "command": "mssql.runQueryHistory", + "when": "view == queryHistory && viewItem == queryHistoryNode", + "group": "MS_SQL@2" + }, + { + "command": "mssql.deleteQueryHistory", + "when": "view == queryHistory && viewItem == queryHistoryNode", + "group": "MS_SQL@3" + } + ], + "commandPalette": [ + { + "command": "mssql.objectExplorerNewQuery", + "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server|Database)\\b/" + }, + { + "command": "mssql.removeObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server)\\b/" + }, + { + "command": "mssql.refreshObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(?!disconnectedServer\\b)[^,]+/" + }, + { + "command": "mssql.scriptSelect", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View)\\b/" + }, + { + "command": "mssql.scriptCreate", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/" + }, + { + "command": "mssql.scriptDelete", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/" + }, + { + "command": "mssql.scriptExecute", + "when": "view == objectExplorer && viewItem =~ /\\btype=(StoredProcedure)\\b/" + }, + { + "command": "mssql.scriptAlter", + "when": "view == objectExplorer && viewItem =~ /\\btype=(AggregateFunction|PartitionFunction|ScalarValuedFunction|StoredProcedure|TableValuedFunction|View)\\b/" + }, + { + "command": "mssql.disconnectObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Server)\\b/" + }, + { + "command": "mssql.toggleSqlCmd", + "when": "editorFocus && editorLangId == 'sql'" + }, + { + "command": "mssql.startQueryHistoryCapture", + "when": "config.mssql.enableQueryHistoryFeature && !config.mssql.enableQueryHistoryCapture" + }, + { + "command": "mssql.pauseQueryHistoryCapture", + "when": "config.mssql.enableQueryHistoryFeature && config.mssql.enableQueryHistoryCapture" + }, + { + "command": "mssql.copyObjectName", + "when": "view == objectExplorer && viewItem =~ /\\btype=(?!Folder\\b)[^,]+/" + }, + { + "command": "mssql.runQueryHistory", + "when": "view == queryHistory && viewItem == queryHistoryNode" + }, + { + "command": "mssql.newTable", + "when": "view == objectExplorer && viewItem =~ /\\bsubType=(Tables)\\b/ && config.mssql.enableRichExperiences" + }, + { + "command": "mssql.editTable", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table)\\b/ && config.mssql.enableRichExperiences" + }, + { + "command": "mssql.addObjectExplorer", + "when": "!config.mssql.enableRichExperiences" + }, + { + "command": "mssql.addObjectExplorerPreview", + "when": "config.mssql.enableRichExperiences" + }, + { + "command": "mssql.editConnection", + "when": "config.mssql.enableRichExperiences" + } + ], + "webview/context": [ + { + "command": "mssql.copyAll", + "when": "webviewSection == 'queryResultMessagesPane'" + } + ] + }, + "commands": [ + { + "command": "mssql.runQuery", + "title": "%mssql.runQuery%", + "category": "MS SQL", + "icon": "$(debug-start)" + }, + { + "command": "mssql.runCurrentStatement", + "title": "%mssql.runCurrentStatement%", + "category": "MS SQL" + }, + { + "command": "mssql.cancelQuery", + "title": "%mssql.cancelQuery%", + "category": "MS SQL", + "icon": "$(debug-stop)" + }, + { + "command": "mssql.copyAll", + "title": "%mssql.copyAll%", + "category": "MS SQL" + }, + { + "command": "mssql.revealQueryResultPanel", + "title": "%mssql.revealQueryResultPanel%", + "category": "MS SQL", + "icon": "media/revealQueryResult.svg" + }, + { + "command": "mssql.connect", + "title": "%mssql.connect%", + "category": "MS SQL", + "icon": { + "dark": "media/connect_dark.svg", + "light": "media/connect_light.svg" + } + }, + { + "command": "mssql.disconnect", + "title": "%mssql.disconnect%", + "category": "MS SQL", + "icon": "$(debug-disconnect)" + }, + { + "command": "mssql.filterNode", + "title": "%mssql.filterNode%", + "icon": "$(filter)" + }, + { + "command": "mssql.clearFilters", + "title": "%mssql.clearFilters%", + "icon": { + "dark": "media/removeFilter_dark.svg", + "light": "media/removeFilter_light.svg" + } + }, + { + "command": "mssql.filterNodeWithExistingFilters", + "title": "%mssql.filterNode%", + "icon": "$(filter-filled)" + }, + { + "command": "mssql.changeDatabase", + "title": "%mssql.changeDatabase%", + "category": "MS SQL", + "icon": { + "dark": "media/changeConnection_dark.svg", + "light": "media/changeConnection_light.svg" + } + }, + { + "command": "mssql.manageProfiles", + "title": "%mssql.manageProfiles%", + "category": "MS SQL" + }, + { + "command": "mssql.clearPooledConnections", + "title": "%mssql.clearPooledConnections%", + "category": "MS SQL" + }, + { + "command": "mssql.chooseDatabase", + "title": "%mssql.chooseDatabase%", + "category": "MS SQL" + }, + { + "command": "mssql.chooseLanguageFlavor", + "title": "%mssql.chooseLanguageFlavor%", + "category": "MS SQL" + }, + { + "command": "mssql.showGettingStarted", + "title": "%mssql.showGettingStarted%", + "category": "MS SQL" + }, + { + "command": "mssql.newQuery", + "title": "%mssql.newQuery%", + "category": "MS SQL" + }, + { + "command": "mssql.rebuildIntelliSenseCache", + "title": "%mssql.rebuildIntelliSenseCache%", + "category": "MS SQL" + }, + { + "command": "mssql.toggleSqlCmd", + "title": "%mssql.toggleSqlCmd%", + "category": "MS SQL" + }, + { + "command": "mssql.addObjectExplorer", + "title": "%mssql.addObjectExplorer%", + "category": "MS SQL", + "icon": "$(add)" + }, + { + "command": "mssql.addObjectExplorerPreview", + "title": "%mssql.addObjectExplorerPreview%", + "category": "MS SQL", + "icon": "$(add)" + }, + { + "command": "mssql.objectExplorer.enableGroupBySchema", + "title": "%mssql.objectExplorer.enableGroupBySchema%", + "category": "MS SQL", + "icon": { + "dark": "media/groupBySchemaEnabled_dark.svg", + "light": "media/groupBySchemaEnabled_light.svg" + } + }, + { + "command": "mssql.objectExplorer.disableGroupBySchema", + "title": "%mssql.objectExplorer.disableGroupBySchema%", + "category": "MS SQL", + "icon": { + "dark": "media/groupBySchemaDisabled_dark.svg", + "light": "media/groupBySchemaDisabled_light.svg" + } + }, + { + "command": "mssql.objectExplorerNewQuery", + "title": "%mssql.objectExplorerNewQuery%", + "category": "MS SQL" + }, + { + "command": "mssql.removeObjectExplorerNode", + "title": "%mssql.removeObjectExplorerNode%", + "category": "MS SQL" + }, + { + "command": "mssql.editConnection", + "title": "%mssql.editConnection%", + "category": "MS SQL", + "icon": "$(edit)" + }, + { + "command": "mssql.refreshObjectExplorerNode", + "title": "%mssql.refreshObjectExplorerNode%", + "category": "MS SQL", + "icon": "$(refresh)" + }, + { + "command": "mssql.disconnectObjectExplorerNode", + "title": "%mssql.disconnect%", + "category": "MS SQL" + }, + { + "command": "mssql.scriptSelect", + "title": "%mssql.scriptSelect%", + "category": "MS SQL" + }, + { + "command": "mssql.scriptCreate", + "title": "%mssql.scriptCreate%", + "category": "MS SQL" + }, + { + "command": "mssql.scriptDelete", + "title": "%mssql.scriptDelete%", + "category": "MS SQL" + }, + { + "command": "mssql.scriptExecute", + "title": "%mssql.scriptExecute%", + "category": "MS SQL" + }, + { + "command": "mssql.newTable", + "title": "%mssql.newTable%", + "category": "MS SQL", + "icon": { + "dark": "media/newTable_dark.svg", + "light": "media/newTable_light.svg" + } + }, + { + "command": "mssql.editTable", + "title": "%mssql.editTable%", + "category": "MS SQL", + "icon": { + "dark": "media/editTable_dark.svg", + "light": "media/editTable_light.svg" + } + }, + { + "command": "mssql.scriptAlter", + "title": "%mssql.scriptAlter%", + "category": "MS SQL" + }, + { + "command": "mssql.openQueryHistory", + "title": "%mssql.openQueryHistory%", + "category": "MS SQL" + }, + { + "command": "mssql.runQueryHistory", + "title": "%mssql.runQueryHistory%", + "category": "MS SQL" + }, + { + "command": "mssql.deleteQueryHistory", + "title": "%mssql.deleteQueryHistory%", + "category": "MS SQL" + }, + { + "command": "mssql.clearAllQueryHistory", + "title": "%mssql.clearAllQueryHistory%", + "category": "MS SQL" + }, + { + "command": "mssql.startQueryHistoryCapture", + "title": "%mssql.startQueryHistoryCapture%", + "category": "MS SQL", + "icon": "$(debug-start)" + }, + { + "command": "mssql.pauseQueryHistoryCapture", + "title": "%mssql.pauseQueryHistoryCapture%", + "category": "MS SQL", + "icon": "$(debug-stop)" + }, + { + "command": "mssql.commandPaletteQueryHistory", + "title": "%mssql.commandPaletteQueryHistory%", + "category": "MS SQL" + }, + { + "command": "mssql.copyObjectName", + "title": "%mssql.copyObjectName%", + "category": "MS SQL" + }, + { + "command": "mssql.addAadAccount", + "title": "%mssql.addAadAccount%", + "category": "MS SQL" + }, + { + "command": "mssql.removeAadAccount", + "title": "%mssql.removeAadAccount%", + "category": "MS SQL" + }, + { + "command": "mssql.clearAzureAccountTokenCache", + "title": "%mssql.clearAzureAccountTokenCache%", + "category": "MS SQL" + }, + { + "command": "mssql.userFeedback", + "title": "%mssql.userFeedback%", + "category": "MS SQL" + }, + { + "command": "mssql.showExecutionPlanInResults", + "title": "%mssql.showExecutionPlanInResults%", + "category": "MS SQL", + "icon": { + "dark": "media/executionPlan_dark.svg", + "light": "media/executionPlan_light.svg" + } + }, + { + "command": "mssql.enableActualPlan", + "title": "%mssql.enableActualPlan%", + "category": "MS SQL", + "icon": { + "dark": "media/enableActualExecutionPlan_dark.svg", + "light": "media/enableActualExecutionPlan_light.svg" + } + }, + { + "command": "mssql.disableActualPlan", + "title": "%mssql.disableActualPlan%", + "category": "MS SQL", + "icon": { + "dark": "media/disableActualExecutionPlan_dark.svg", + "light": "media/disableActualExecutionPlan_light.svg" + } + } + ], + "keybindings": [ + { + "command": "mssql.runQuery", + "key": "ctrl+shift+e", + "mac": "cmd+shift+e", + "when": "editorTextFocus && editorLangId == 'sql'" + }, + { + "command": "mssql.connect", + "key": "ctrl+shift+c", + "mac": "cmd+shift+c", + "when": "editorTextFocus && editorLangId == 'sql'" + }, + { + "command": "mssql.disconnect", + "key": "ctrl+shift+d", + "mac": "cmd+shift+d", + "when": "editorTextFocus && editorLangId == 'sql'" + }, + { + "command": "workbench.view.extension.objectExplorer", + "key": "ctrl+alt+d", + "mac": "cmd+alt+d" + }, + { + "command": "mssql.copyObjectName", + "key": "ctrl+c", + "mac": "cmd+c", + "when": "sideBarFocus && activeViewlet == workbench.view.extension.objectExplorer" + } + ], + "configuration": { + "type": "object", + "title": "%mssql.Configuration%", + "properties": { + "mssql.enableExperimentalFeatures": { + "type": "boolean", + "default": false, + "description": "%mssql.enableExperimentalFeatures.description%", + "scope": "application" + }, + "mssql.enableRichExperiences": { + "type": "boolean", + "default": false, + "description": "%mssql.enableRichExperiences.description%", + "scope": "application" + }, + "mssql.enableRichExperiencesDoNotShowPrompt": { + "type": "boolean", + "default": false, + "description": "%mssql.enableRichExperiencesDoNotShowPrompt.description%", + "scope": "application" + }, + "mssql.openQueryResultsInTabByDefault": { + "type": "boolean", + "default": false, + "description": "%mssql.openQueryResultsInTabByDefault.description%", + "scope": "application" + }, + "mssql.openQueryResultsInTabByDefaultDoNotShowPrompt": { + "type": "boolean", + "default": false, + "description": "%mssql.openQueryResultsInTabByDefaultDoNotShowPrompt.description%", + "scope": "application" + }, + "mssql.enableNewQueryResultFeature": { + "type": "boolean", + "default": true, + "description": "%mssql.enableNewQueryResultFeature.description%", + "scope": "application" + }, + "azureResourceGroups.selectedSubscriptions": { + "type": "array", + "description": "%mssql.selectedSubscriptions%", + "items": { + "type": "string" + }, + "$comment": "This setting must be registered in case the user does not have the Azure Resource Groups extension installed. All extensions using this configuration must register this setting." + }, + "mssql.azureActiveDirectory": { + "type": "string", + "default": "AuthCodeGrant", + "description": "%mssql.chooseAuthMethod%", + "enum": [ + "AuthCodeGrant", + "DeviceCode" + ], + "enumDescriptions": [ + "%mssql.authCodeGrant.description%", + "%mssql.deviceCode.description%" + ], + "scope": "application" + }, + "mssql.logDebugInfo": { + "type": "boolean", + "default": false, + "description": "%mssql.logDebugInfo%", + "scope": "window" + }, + "mssql.maxRecentConnections": { + "type": "number", + "default": 5, + "description": "%mssql.maxRecentConnections%", + "scope": "window" + }, + "mssql.connections": { + "type": "array", + "description": "%mssql.connections%", + "items": { + "type": "object", + "properties": { + "server": { + "type": "string", + "default": "{{put-server-name-here}}", + "description": "%mssql.connection.server%" + }, + "database": { + "type": "string", + "default": "{{put-database-name-here}}", + "description": "%mssql.connection.database%" + }, + "user": { + "type": "string", + "default": "{{put-username-here}}", + "description": "%mssql.connection.user%" + }, + "password": { + "type": "string", + "default": "{{put-password-here}}", + "description": "%mssql.connection.password%" + }, + "authenticationType": { + "type": "string", + "default": "SqlLogin", + "enum": [ + "Integrated", + "SqlLogin", + "AzureMFA" + ], + "description": "%mssql.connection.authenticationType%" + }, + "port": { + "type": "number", + "default": 1433, + "description": "%mssql.connection.port%" + }, + "encrypt": { + "type": "string", + "default": "Mandatory", + "enum": [ + "Mandatory", + "Strict", + "Optional" + ], + "description": "%mssql.connection.encrypt%" + }, + "trustServerCertificate": { + "type": "boolean", + "default": false, + "description": "%mssql.connection.trustServerCertificate%" + }, + "hostNameInCertificate": { + "type": "string", + "default": "", + "description": "%mssql.connection.hostNameInCertificate" + }, + "persistSecurityInfo": { + "type": "boolean", + "default": false, + "description": "%mssql.connection.persistSecurityInfo%" + }, + "connectTimeout": { + "type": "number", + "default": 15, + "description": "%mssql.connection.connectTimeout%" + }, + "commandTimeout": { + "type": "number", + "default": 30, + "description": "%mssql.connection.commandTimeout%" + }, + "connectRetryCount": { + "type": "number", + "default": 1, + "description": "%mssql.connection.connectRetryCount%" + }, + "connectRetryInterval": { + "type": "number", + "default": 10, + "description": "%mssql.connection.connectRetryInterval%" + }, + "applicationName": { + "type": "string", + "default": "vscode-mssql", + "description": "%mssql.connection.applicationName%" + }, + "workstationId": { + "type": "string", + "default": "", + "description": "%mssql.connection.workstationId%" + }, + "applicationIntent": { + "type": "string", + "default": "ReadWrite", + "enum": [ + "ReadWrite", + "ReadOnly" + ], + "description": "%mssql.connection.applicationIntent%" + }, + "currentLanguage": { + "type": "string", + "default": "", + "description": "%mssql.connection.currentLanguage%" + }, + "pooling": { + "type": "boolean", + "default": false, + "description": "%mssql.connection.pooling%" + }, + "maxPoolSize": { + "type": "number", + "default": 100, + "description": "%mssql.connection.maxPoolSize%" + }, + "minPoolSize": { + "type": "number", + "default": 0, + "description": "%mssql.connection.minPoolSize%" + }, + "loadBalanceTimeout": { + "type": "number", + "default": 0, + "description": "%mssql.connection.loadBalanceTimeout%" + }, + "replication": { + "type": "boolean", + "default": true, + "description": "%mssql.connection.replication%" + }, + "attachDbFilename": { + "type": "string", + "default": "", + "description": "%mssql.connection.attachDbFilename%" + }, + "failoverPartner": { + "type": "string", + "default": "", + "description": "%mssql.connection.failoverPartner%" + }, + "multiSubnetFailover": { + "type": "boolean", + "default": true, + "description": "%mssql.connection.multiSubnetFailover%" + }, + "multipleActiveResultSets": { + "type": "boolean", + "default": false, + "description": "%mssql.connection.multipleActiveResultSets%" + }, + "packetSize": { + "type": "number", + "default": 8192, + "description": "%mssql.connection.packetSize%" + }, + "typeSystemVersion": { + "type": "string", + "enum": [ + "Latest" + ], + "description": "%mssql.connection.typeSystemVersion%" + }, + "connectionString": { + "type": "string", + "default": "", + "description": "%mssql.connection.connectionString%" + }, + "profileName": { + "type": "string", + "description": "%mssql.connection.profileName%" + }, + "savePassword": { + "type": "boolean", + "description": "%mssql.connection.savePassword%" + }, + "emptyPasswordInput": { + "type": "boolean", + "description": "%mssql.connection.emptyPasswordInput%" + } + } + }, + "scope": "resource" + }, + "mssql.shortcuts": { + "type": "object", + "description": "%mssql.shortcuts%", + "default": { + "_comment": "Short cuts must follow the format (ctrl)+(shift)+(alt)+[key]", + "event.toggleResultPane": "ctrl+alt+R", + "event.focusResultsGrid": "ctrl+alt+G", + "event.toggleMessagePane": "ctrl+alt+Y", + "event.prevGrid": "ctrl+up", + "event.nextGrid": "ctrl+down", + "event.copySelection": "ctrl+C", + "event.copyWithHeaders": "", + "event.copyAllHeaders": "", + "event.maximizeGrid": "", + "event.selectAll": "ctrl+A", + "event.saveAsJSON": "", + "event.saveAsCSV": "", + "event.saveAsExcel": "", + "event.changeColumnWidth": "ctrl+alt+S" + }, + "scope": "resource" + }, + "mssql.messagesDefaultOpen": { + "type": "boolean", + "description": "%mssql.messagesDefaultOpen%", + "default": true, + "scope": "resource" + }, + "mssql.resultsFontFamily": { + "type": "string", + "description": "%mssql.resultsFontFamily%", + "default": null, + "scope": "resource" + }, + "mssql.resultsFontSize": { + "type": [ + "number", + "null" + ], + "description": "%mssql.resultsFontSize%", + "default": null, + "scope": "resource" + }, + "mssql.saveAsCsv.includeHeaders": { + "type": "boolean", + "description": "%mssql.saveAsCsv.includeHeaders%", + "default": true, + "scope": "resource" + }, + "mssql.saveAsCsv.delimiter": { + "type": "string", + "description": "%mssql.saveAsCsv.delimiter%", + "default": ",", + "scope": "resource" + }, + "mssql.saveAsCsv.lineSeparator": { + "type": "string", + "description": "%mssql.saveAsCsv.lineSeparator%", + "default": null, + "scope": "resource" + }, + "mssql.saveAsCsv.textIdentifier": { + "type": "string", + "description": "%mssql.saveAsCsv.textIdentifier%", + "default": "\"", + "scope": "resource" + }, + "mssql.saveAsCsv.encoding": { + "type": "string", + "description": "%mssql.saveAsCsv.encoding%", + "default": "utf-8", + "scope": "resource" + }, + "mssql.copyIncludeHeaders": { + "type": "boolean", + "description": "%mssql.copyIncludeHeaders%", + "default": false, + "scope": "resource" + }, + "mssql.copyRemoveNewLine": { + "type": "boolean", + "description": "%mssql.copyRemoveNewLine%", + "default": true, + "scope": "resource" + }, + "mssql.showBatchTime": { + "type": "boolean", + "description": "%mssql.showBatchTime%", + "default": false, + "scope": "resource" + }, + "mssql.splitPaneSelection": { + "type": "string", + "description": "%mssql.splitPaneSelection%", + "default": "next", + "enum": [ + "next", + "current", + "end" + ], + "scope": "resource" + }, + "mssql.enableSqlAuthenticationProvider": { + "type": "boolean", + "description": "%mssql.enableSqlAuthenticationProvider%", + "default": true + }, + "mssql.enableConnectionPooling": { + "type": "boolean", + "description": "%mssql.enableConnectionPooling%", + "default": true + }, + "mssql.format.alignColumnDefinitionsInColumns": { + "type": "boolean", + "description": "%mssql.format.alignColumnDefinitionsInColumns%", + "default": false, + "scope": "window" + }, + "mssql.format.datatypeCasing": { + "type": "string", + "description": "%mssql.format.datatypeCasing%", + "default": "none", + "enum": [ + "none", + "uppercase", + "lowercase" + ], + "scope": "window" + }, + "mssql.format.keywordCasing": { + "type": "string", + "description": "%mssql.format.keywordCasing%", + "default": "none", + "enum": [ + "none", + "uppercase", + "lowercase" + ], + "scope": "window" + }, + "mssql.format.placeCommasBeforeNextStatement": { + "type": "boolean", + "description": "%mssql.format.placeCommasBeforeNextStatement%", + "default": false, + "scope": "window" + }, + "mssql.format.placeSelectStatementReferencesOnNewLine": { + "type": "boolean", + "description": "%mssql.format.placeSelectStatementReferencesOnNewLine%", + "default": false, + "scope": "window" + }, + "mssql.applyLocalization": { + "type": "boolean", + "description": "%mssql.applyLocalization%", + "default": false, + "scope": "window" + }, + "mssql.intelliSense.enableIntelliSense": { + "type": "boolean", + "default": true, + "description": "%mssql.intelliSense.enableIntelliSense%", + "scope": "window" + }, + "mssql.intelliSense.enableErrorChecking": { + "type": "boolean", + "default": true, + "description": "%mssql.intelliSense.enableErrorChecking%", + "scope": "window" + }, + "mssql.intelliSense.enableSuggestions": { + "type": "boolean", + "default": true, + "description": "%mssql.intelliSense.enableSuggestions%", + "scope": "window" + }, + "mssql.intelliSense.enableQuickInfo": { + "type": "boolean", + "default": true, + "description": "%mssql.intelliSense.enableQuickInfo%", + "scope": "window" + }, + "mssql.intelliSense.lowerCaseSuggestions": { + "type": "boolean", + "default": false, + "description": "%mssql.intelliSense.lowerCaseSuggestions%", + "scope": "window" + }, + "mssql.persistQueryResultTabs": { + "type": "boolean", + "default": false, + "description": "%mssql.persistQueryResultTabs%", + "scope": "window" + }, + "mssql.enableQueryHistoryCapture": { + "type": "boolean", + "default": true, + "description": "%mssql.enableQueryHistoryCapture%", + "scope": "window" + }, + "mssql.enableQueryHistoryFeature": { + "type": "boolean", + "default": true, + "description": "%mssql.enableQueryHistoryFeature%", + "scope": "window" + }, + "mssql.tracingLevel": { + "type": "string", + "description": "%mssql.tracingLevel%", + "default": "Critical", + "enum": [ + "All", + "Off", + "Critical", + "Error", + "Warning", + "Information", + "Verbose" + ] + }, + "mssql.piiLogging": { + "type": "boolean", + "default": false, + "description": "%mssql.piiLogging%" + }, + "mssql.logRetentionMinutes": { + "type": "number", + "default": 10080, + "description": "%mssql.logRetentionMinutes%" + }, + "mssql.logFilesRemovalLimit": { + "type": "number", + "default": 100, + "description": "%mssql.logFilesRemovalLimit%" + }, + "mssql.query.displayBitAsNumber": { + "type": "boolean", + "default": true, + "description": "%mssql.query.displayBitAsNumber%", + "scope": "window" + }, + "mssql.query.maxCharsToStore": { + "type": "number", + "default": 65535, + "description": "%mssql.query.maxCharsToStore%" + }, + "mssql.query.maxXmlCharsToStore": { + "type": "number", + "default": 2097152, + "description": "%mssql.query.maxXmlCharsToStore%" + }, + "mssql.queryHistoryLimit": { + "type": "number", + "default": 20, + "description": "%mssql.queryHistoryLimit%", + "scope": "window" + }, + "mssql.query.rowCount": { + "type": "number", + "default": 0, + "description": "%mssql.query.setRowCount%" + }, + "mssql.query.textSize": { + "type": "number", + "default": 2147483647, + "description": "%mssql.query.textSize%" + }, + "mssql.query.executionTimeout": { + "type": "number", + "default": 0, + "description": "%mssql.query.executionTimeout%" + }, + "mssql.query.noCount": { + "type": "boolean", + "default": false, + "description": "%mssql.query.noCount%" + }, + "mssql.query.noExec": { + "type": "boolean", + "default": false, + "description": "%mssql.query.noExec%" + }, + "mssql.query.parseOnly": { + "type": "boolean", + "default": false, + "description": "%mssql.query.parseOnly%" + }, + "mssql.query.arithAbort": { + "type": "boolean", + "default": true, + "description": "%mssql.query.arithAbort%" + }, + "mssql.query.statisticsTime": { + "type": "boolean", + "default": false, + "description": "%mssql.query.statisticsTime%" + }, + "mssql.query.statisticsIO": { + "type": "boolean", + "default": false, + "description": "%mssql.query.statisticsIO%" + }, + "mssql.query.xactAbortOn": { + "type": "boolean", + "default": false, + "description": "%mssql.query.xactAbortOn%" + }, + "mssql.query.transactionIsolationLevel": { + "enum": [ + "READ COMMITTED", + "READ UNCOMMITTED", + "REPEATABLE READ", + "SERIALIZABLE" + ], + "default": "READ COMMITTED", + "description": "%mssql.query.transactionIsolationLevel%" + }, + "mssql.query.deadlockPriority": { + "enum": [ + "Normal", + "Low" + ], + "default": "Normal", + "description": "%mssql.query.deadlockPriority%" + }, + "mssql.query.lockTimeout": { + "type": "number", + "default": -1, + "description": "%mssql.query.lockTimeout%" + }, + "mssql.query.queryGovernorCostLimit": { + "type": "number", + "default": -1, + "description": "%mssql.query.queryGovernorCostLimit%" + }, + "mssql.query.ansiDefaults": { + "type": "boolean", + "default": false, + "description": "%mssql.query.ansiDefaults%" + }, + "mssql.query.quotedIdentifier": { + "type": "boolean", + "default": true, + "description": "%mssql.query.quotedIdentifier%" + }, + "mssql.query.ansiNullDefaultOn": { + "type": "boolean", + "default": true, + "description": "%mssql.query.ansiNullDefaultOn%" + }, + "mssql.query.implicitTransactions": { + "type": "boolean", + "default": false, + "description": "%mssql.query.implicitTransactions%" + }, + "mssql.query.cursorCloseOnCommit": { + "type": "boolean", + "default": false, + "description": "%mssql.query.cursorCloseOnCommit%" + }, + "mssql.query.ansiPadding": { + "type": "boolean", + "default": true, + "description": "%mssql.query.ansiPadding%" + }, + "mssql.query.ansiWarnings": { + "type": "boolean", + "default": true, + "description": "%mssql.query.ansiWarnings%" + }, + "mssql.query.ansiNulls": { + "type": "boolean", + "default": true, + "description": "%mssql.query.ansiNulls%" + }, + "mssql.query.alwaysEncryptedParameterization": { + "type": "boolean", + "default": false, + "description": "%mssql.query.alwaysEncryptedParameterization%" + }, + "mssql.ignorePlatformWarning": { + "type": "boolean", + "description": "%mssql.ignorePlatformWarning%", + "default": false + }, + "mssql.objectExplorer.groupBySchema": { + "type": "boolean", + "description": "%mssql.objectExplorer.groupBySchema%", + "default": false + }, + "mssql.objectExplorer.expandTimeout": { + "type": "number", + "default": 45, + "minimum": 1, + "description": "%mssql.objectExplorer.expandTimeout%" + } } - }, - "scope": "resource" - }, - "mssql.shortcuts": { - "type": "object", - "description": "%mssql.shortcuts%", - "default": { - "_comment": "Short cuts must follow the format (ctrl)+(shift)+(alt)+[key]", - "event.toggleResultPane": "ctrl+alt+R", - "event.focusResultsGrid": "ctrl+alt+G", - "event.toggleMessagePane": "ctrl+alt+Y", - "event.prevGrid": "ctrl+up", - "event.nextGrid": "ctrl+down", - "event.copySelection": "ctrl+C", - "event.copyWithHeaders": "", - "event.copyAllHeaders": "", - "event.maximizeGrid": "", - "event.selectAll": "ctrl+A", - "event.saveAsJSON": "", - "event.saveAsCSV": "", - "event.saveAsExcel": "", - "event.changeColumnWidth": "ctrl+alt+S" - }, - "scope": "resource" - }, - "mssql.messagesDefaultOpen": { - "type": "boolean", - "description": "%mssql.messagesDefaultOpen%", - "default": true, - "scope": "resource" - }, - "mssql.resultsFontFamily": { - "type": "string", - "description": "%mssql.resultsFontFamily%", - "default": "-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,Ubuntu,Droid Sans,sans-serif", - "scope": "resource" - }, - "mssql.resultsFontSize": { - "type": "number", - "description": "%mssql.resultsFontSize%", - "default": 13, - "scope": "resource" - }, - "mssql.saveAsCsv.includeHeaders": { - "type": "boolean", - "description": "%mssql.saveAsCsv.includeHeaders%", - "default": true, - "scope": "resource" - }, - "mssql.saveAsCsv.delimiter": { - "type": "string", - "description": "%mssql.saveAsCsv.delimiter%", - "default": ",", - "scope": "resource" - }, - "mssql.saveAsCsv.lineSeparator": { - "type": "string", - "description": "%mssql.saveAsCsv.lineSeparator%", - "default": null, - "scope": "resource" - }, - "mssql.saveAsCsv.textIdentifier": { - "type": "string", - "description": "%mssql.saveAsCsv.textIdentifier%", - "default": "\"", - "scope": "resource" - }, - "mssql.saveAsCsv.encoding": { - "type": "string", - "description": "%mssql.saveAsCsv.encoding%", - "default": "utf-8", - "scope": "resource" - }, - "mssql.copyIncludeHeaders": { - "type": "boolean", - "description": "%mssql.copyIncludeHeaders%", - "default": false, - "scope": "resource" - }, - "mssql.copyRemoveNewLine": { - "type": "boolean", - "description": "%mssql.copyRemoveNewLine%", - "default": true, - "scope": "resource" - }, - "mssql.showBatchTime": { - "type": "boolean", - "description": "%mssql.showBatchTime%", - "default": false, - "scope": "resource" - }, - "mssql.splitPaneSelection": { - "type": "string", - "description": "%mssql.splitPaneSelection%", - "default": "next", - "enum": [ - "next", - "current", - "end" - ], - "scope": "resource" - }, - "mssql.enableSqlAuthenticationProvider": { - "type": "boolean", - "description": "%mssql.enableSqlAuthenticationProvider%", - "default": true - }, - "mssql.enableConnectionPooling": { - "type": "boolean", - "description": "%mssql.enableConnectionPooling%", - "default": true - }, - "mssql.format.alignColumnDefinitionsInColumns": { - "type": "boolean", - "description": "%mssql.format.alignColumnDefinitionsInColumns%", - "default": false, - "scope": "window" - }, - "mssql.format.datatypeCasing": { - "type": "string", - "description": "%mssql.format.datatypeCasing%", - "default": "none", - "enum": [ - "none", - "uppercase", - "lowercase" - ], - "scope": "window" - }, - "mssql.format.keywordCasing": { - "type": "string", - "description": "%mssql.format.keywordCasing%", - "default": "none", - "enum": [ - "none", - "uppercase", - "lowercase" - ], - "scope": "window" - }, - "mssql.format.placeCommasBeforeNextStatement": { - "type": "boolean", - "description": "%mssql.format.placeCommasBeforeNextStatement%", - "default": false, - "scope": "window" - }, - "mssql.format.placeSelectStatementReferencesOnNewLine": { - "type": "boolean", - "description": "%mssql.format.placeSelectStatementReferencesOnNewLine%", - "default": false, - "scope": "window" - }, - "mssql.applyLocalization": { - "type": "boolean", - "description": "%mssql.applyLocalization%", - "default": false, - "scope": "window" - }, - "mssql.intelliSense.enableIntelliSense": { - "type": "boolean", - "default": true, - "description": "%mssql.intelliSense.enableIntelliSense%", - "scope": "window" - }, - "mssql.intelliSense.enableErrorChecking": { - "type": "boolean", - "default": true, - "description": "%mssql.intelliSense.enableErrorChecking%", - "scope": "window" - }, - "mssql.intelliSense.enableSuggestions": { - "type": "boolean", - "default": true, - "description": "%mssql.intelliSense.enableSuggestions%", - "scope": "window" - }, - "mssql.intelliSense.enableQuickInfo": { - "type": "boolean", - "default": true, - "description": "%mssql.intelliSense.enableQuickInfo%", - "scope": "window" - }, - "mssql.intelliSense.lowerCaseSuggestions": { - "type": "boolean", - "default": false, - "description": "%mssql.intelliSense.lowerCaseSuggestions%", - "scope": "window" - }, - "mssql.persistQueryResultTabs": { - "type": "boolean", - "default": false, - "description": "%mssql.persistQueryResultTabs%", - "scope": "window" - }, - "mssql.enableQueryHistoryCapture": { - "type": "boolean", - "default": true, - "description": "%mssql.enableQueryHistoryCapture%", - "scope": "window" - }, - "mssql.enableQueryHistoryFeature": { - "type": "boolean", - "default": true, - "description": "%mssql.enableQueryHistoryFeature%", - "scope": "window" - }, - "mssql.tracingLevel": { - "type": "string", - "description": "%mssql.tracingLevel%", - "default": "Critical", - "enum": [ - "All", - "Off", - "Critical", - "Error", - "Warning", - "Information", - "Verbose" - ] - }, - "mssql.piiLogging": { - "type": "boolean", - "default": false, - "description": "%mssql.piiLogging%" - }, - "mssql.logRetentionMinutes": { - "type": "number", - "default": 10080, - "description": "%mssql.logRetentionMinutes%" - }, - "mssql.logFilesRemovalLimit": { - "type": "number", - "default": 100, - "description": "%mssql.logFilesRemovalLimit%" - }, - "mssql.query.displayBitAsNumber": { - "type": "boolean", - "default": true, - "description": "%mssql.query.displayBitAsNumber%", - "scope": "window" - }, - "mssql.query.maxCharsToStore": { - "type": "number", - "default": 65535, - "description": "%mssql.query.maxCharsToStore%" - }, - "mssql.query.maxXmlCharsToStore": { - "type": "number", - "default": 2097152, - "description": "%mssql.query.maxXmlCharsToStore%" - }, - "mssql.queryHistoryLimit": { - "type": "number", - "default": 20, - "description": "%mssql.queryHistoryLimit%", - "scope": "window" - }, - "mssql.query.rowCount": { - "type": "number", - "default": 0, - "description": "%mssql.query.setRowCount%" - }, - "mssql.query.textSize": { - "type": "number", - "default": 2147483647, - "description": "%mssql.query.textSize%" - }, - "mssql.query.executionTimeout": { - "type": "number", - "default": 0, - "description": "%mssql.query.executionTimeout%" - }, - "mssql.query.noCount": { - "type": "boolean", - "default": false, - "description": "%mssql.query.noCount%" - }, - "mssql.query.noExec": { - "type": "boolean", - "default": false, - "description": "%mssql.query.noExec%" - }, - "mssql.query.parseOnly": { - "type": "boolean", - "default": false, - "description": "%mssql.query.parseOnly%" - }, - "mssql.query.arithAbort": { - "type": "boolean", - "default": true, - "description": "%mssql.query.arithAbort%" - }, - "mssql.query.statisticsTime": { - "type": "boolean", - "default": false, - "description": "%mssql.query.statisticsTime%" - }, - "mssql.query.statisticsIO": { - "type": "boolean", - "default": false, - "description": "%mssql.query.statisticsIO%" - }, - "mssql.query.xactAbortOn": { - "type": "boolean", - "default": false, - "description": "%mssql.query.xactAbortOn%" - }, - "mssql.query.transactionIsolationLevel": { - "enum": [ - "READ COMMITTED", - "READ UNCOMMITTED", - "REPEATABLE READ", - "SERIALIZABLE" - ], - "default": "READ COMMITTED", - "description": "%mssql.query.transactionIsolationLevel%" - }, - "mssql.query.deadlockPriority": { - "enum": [ - "Normal", - "Low" - ], - "default": "Normal", - "description": "%mssql.query.deadlockPriority%" - }, - "mssql.query.lockTimeout": { - "type": "number", - "default": -1, - "description": "%mssql.query.lockTimeout%" - }, - "mssql.query.queryGovernorCostLimit": { - "type": "number", - "default": -1, - "description": "%mssql.query.queryGovernorCostLimit%" - }, - "mssql.query.ansiDefaults": { - "type": "boolean", - "default": false, - "description": "%mssql.query.ansiDefaults%" - }, - "mssql.query.quotedIdentifier": { - "type": "boolean", - "default": true, - "description": "%mssql.query.quotedIdentifier%" - }, - "mssql.query.ansiNullDefaultOn": { - "type": "boolean", - "default": true, - "description": "%mssql.query.ansiNullDefaultOn%" - }, - "mssql.query.implicitTransactions": { - "type": "boolean", - "default": false, - "description": "%mssql.query.implicitTransactions%" - }, - "mssql.query.cursorCloseOnCommit": { - "type": "boolean", - "default": false, - "description": "%mssql.query.cursorCloseOnCommit%" - }, - "mssql.query.ansiPadding": { - "type": "boolean", - "default": true, - "description": "%mssql.query.ansiPadding%" - }, - "mssql.query.ansiWarnings": { - "type": "boolean", - "default": true, - "description": "%mssql.query.ansiWarnings%" - }, - "mssql.query.ansiNulls": { - "type": "boolean", - "default": true, - "description": "%mssql.query.ansiNulls%" - }, - "mssql.query.alwaysEncryptedParameterization": { - "type": "boolean", - "default": false, - "description": "%mssql.query.alwaysEncryptedParameterization%" - }, - "mssql.ignorePlatformWarning": { - "type": "boolean", - "description": "%mssql.ignorePlatformWarning%", - "default": false - }, - "mssql.objectExplorer.groupBySchema": { - "type": "boolean", - "description": "%mssql.objectExplorer.groupBySchema%", - "default": false - }, - "mssql.objectExplorer.expandTimeout": { - "type": "number", - "default": 45, - "minimum": 1, - "description": "%mssql.objectExplorer.expandTimeout%" } - } } - } } diff --git a/src/queryResult/queryResultWebViewController.ts b/src/queryResult/queryResultWebViewController.ts index 9703c38a6a..502db9ca44 100644 --- a/src/queryResult/queryResultWebViewController.ts +++ b/src/queryResult/queryResultWebViewController.ts @@ -76,12 +76,17 @@ export class QueryResultWebviewController extends ReactWebviewViewController< executionPlanState: {}, filterState: {}, fontSettings: { - fontSize: this._vscodeWrapper - .getConfiguration(Constants.extensionName) - .get( - Constants.extConfigResultKeys - .ResultsFontSize, - ), + fontSize: + (this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get( + Constants.extConfigResultKeys + .ResultsFontSize, + ) as number) ?? + (this._vscodeWrapper + .getConfiguration("editor") + .get("fontSize") as number), + fontFamily: this._vscodeWrapper .getConfiguration(Constants.extensionName) .get( @@ -113,9 +118,16 @@ export class QueryResultWebviewController extends ReactWebviewViewController< } if (e.affectsConfiguration("mssql.resultsFontSize")) { for (const [uri, state] of this._queryResultStateMap) { - state.fontSettings.fontSize = this._vscodeWrapper - .getConfiguration(Constants.extensionName) - .get(Constants.extConfigResultKeys.ResultsFontSize); + state.fontSettings.fontSize = + (this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get( + Constants.extConfigResultKeys + .ResultsFontSize, + ) as number) ?? + (this._vscodeWrapper + .getConfiguration("editor") + .get("fontSize") as number); this._queryResultStateMap.set(uri, state); } } @@ -261,11 +273,15 @@ export class QueryResultWebviewController extends ReactWebviewViewController< }), filterState: {}, fontSettings: { - fontSize: this._vscodeWrapper - .getConfiguration(Constants.extensionName) - .get( - Constants.extConfigResultKeys.ResultsFontSize, - ) as number, + fontSize: + (this._vscodeWrapper + .getConfiguration(Constants.extensionName) + .get( + Constants.extConfigResultKeys.ResultsFontSize, + ) as number) ?? + (this._vscodeWrapper + .getConfiguration("editor") + .get("fontSize") as number), fontFamily: this._vscodeWrapper .getConfiguration(Constants.extensionName) .get( diff --git a/src/reactviews/pages/QueryResult/queryResultPane.tsx b/src/reactviews/pages/QueryResult/queryResultPane.tsx index bf283993c7..78df7cd4e4 100644 --- a/src/reactviews/pages/QueryResult/queryResultPane.tsx +++ b/src/reactviews/pages/QueryResult/queryResultPane.tsx @@ -234,6 +234,7 @@ export const QueryResultPane = () => { gridCount: number, ) => { const divId = `grid-parent-${batchId}-${resultId}`; + console.log(metadata.fontSettings.fontSize ?? 12); return (
{ fontFamily: metadata.fontSettings.fontFamily ? metadata.fontSettings.fontFamily : "var(--vscode-editor-font-family)", - fontSize: metadata.fontSettings.fontSize - ? `${metadata.fontSettings.fontSize}px` - : "var(--vscode-editor-font-size)", + fontSize: `${metadata.fontSettings.fontSize ?? 12}px`, }} > ( table.rerenderGrid(); } }; - - const ROW_HEIGHT = 25; + const DEFAULT_FONT_SIZE = 12; + console.log( + "resultGrid: ", + props.state.state.fontSettings.fontSize, + ); + const ROW_HEIGHT = props.state.state.fontSettings.fontSize! + 12; // 12 px is the padding + const COLUMN_WIDTH = Math.max( + (props.state.state.fontSettings.fontSize! / DEFAULT_FONT_SIZE) * + 120, + 120, + ); // Scale width with font size, but keep a minimum of 120px if (!props.resultSetSummary || !props.linkHandler) { return; } @@ -222,7 +231,7 @@ const ResultGrid = forwardRef( rowHeight: ROW_HEIGHT, showRowNumber: true, forceFitColumns: false, - defaultColumnWidth: 120, + defaultColumnWidth: COLUMN_WIDTH, }; let rowNumberColumn = new RowNumberColumn({ autoCellSelection: false, From d53c15f8a754ef30963a4f8da4e8f5bf5d1ea260 Mon Sep 17 00:00:00 2001 From: Christopher Suh Date: Fri, 20 Dec 2024 15:03:01 -0500 Subject: [PATCH 6/6] fix package.json --- package.json | 3154 +++++++++++++++++++++++++------------------------- 1 file changed, 1577 insertions(+), 1577 deletions(-) diff --git a/package.json b/package.json index 04c68433f1..b363dafec2 100644 --- a/package.json +++ b/package.json @@ -1,1595 +1,1595 @@ { - "name": "mssql", - "displayName": "SQL Server (mssql)", - "version": "1.28.0", - "description": "Develop Microsoft SQL Server, Azure SQL Database and SQL Data Warehouse everywhere", - "publisher": "ms-mssql", - "preview": false, - "license": "SEE LICENSE IN LICENSE.txt", - "aiKey": "29a207bb14f84905966a8f22524cb730-25407f35-11b6-4d4e-8114-ab9e843cb52f-7380", - "icon": "images/sqlserver.png", - "galleryBanner": { - "color": "#2F2F2F", - "theme": "dark" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/vscode-mssql.git" - }, - "bugs": { - "url": "https://github.com/Microsoft/vscode-mssql/issues" + "name": "mssql", + "displayName": "SQL Server (mssql)", + "version": "1.28.0", + "description": "Design and optimize schemas for SQL Server, Azure SQL, and SQL Database in Fabric using a modern, lightweight extension built for developers", + "publisher": "ms-mssql", + "preview": false, + "license": "SEE LICENSE IN LICENSE.txt", + "aiKey": "29a207bb14f84905966a8f22524cb730-25407f35-11b6-4d4e-8114-ab9e843cb52f-7380", + "icon": "images/sqlserver.png", + "galleryBanner": { + "color": "#2F2F2F", + "theme": "dark" + }, + "repository": { + "type": "git", + "url": "https://github.com/Microsoft/vscode-mssql.git" + }, + "bugs": { + "url": "https://github.com/Microsoft/vscode-mssql/issues" + }, + "homepage": "https://github.com/Microsoft/vscode-mssql/blob/master/README.md", + "engines": { + "vscode": "^1.83.1" + }, + "categories": [ + "Programming Languages", + "Azure" + ], + "keywords": [ + "SQL", + "MSSQL", + "SQL Server", + "Azure SQL Database", + "Azure SQL Data Warehouse", + "multi-root ready" + ], + "activationEvents": [ + "onUri", + "onCommand:mssql.loadCompletionExtension" + ], + "main": "./out/src/extension", + "l10n": "./localization/l10n", + "extensionDependencies": [ + "vscode.sql" + ], + "extensionPack": [ + "ms-mssql.data-workspace-vscode", + "ms-mssql.sql-database-projects-vscode", + "ms-mssql.sql-bindings-vscode" + ], + "scripts": { + "build": "gulp build", + "compile": "gulp ext:compile", + "watch": "gulp watch", + "lint": "eslint --quiet --cache", + "localization": "gulp ext:extract-localization-strings", + "smoketest": "gulp ext:smoke", + "test": "node ./out/test/unit/runTest.js", + "package": "vsce package", + "prepare": "husky", + "lint-staged": "lint-staged --quiet", + "precommit": "run-p lint-staged localization", + "clean-package": "git clean -xfd && yarn install && yarn build && yarn gulp package:online", + "testWithCoverage": "yarn test && yarn gulp cover" + }, + "lint-staged": { + "*.ts": "eslint --quiet --cache", + "*.tsx": "eslint --quiet --cache", + "*.css": "prettier --check" + }, + "devDependencies": { + "@angular/common": "~2.1.2", + "@angular/compiler": "~2.1.2", + "@angular/core": "~2.1.2", + "@angular/forms": "~2.1.2", + "@angular/platform-browser": "~2.1.2", + "@angular/platform-browser-dynamic": "~2.1.2", + "@angular/router": "~3.1.2", + "@angular/upgrade": "~2.1.2", + "@azure/core-paging": "^1.6.2", + "@eslint/compat": "^1.1.0", + "@eslint/js": "^9.5.0", + "@fluentui/react-components": "^9.55.1", + "@fluentui/react-list-preview": "^0.3.6", + "@fluentui-contrib/react-data-grid-react-window": "^1.2.0", + "@istanbuljs/nyc-config-typescript": "^1.0.2", + "@jgoz/esbuild-plugin-typecheck": "^4.0.0", + "@monaco-editor/react": "^4.6.0", + "@playwright/test": "^1.45.0", + "@stylistic/eslint-plugin": "^2.8.0", + "@types/azdata": "^1.46.6", + "@types/ejs": "^3.1.0", + "@types/eslint__js": "^8.42.3", + "@types/jquery": "^3.3.31", + "@types/jqueryui": "^1.12.7", + "@types/keytar": "^4.4.2", + "@types/lockfile": "^1.0.2", + "@types/mocha": "^5.2.7", + "@types/node": "^20.14.8", + "@types/node-fetch": "^2.6.2", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@types/react-resizable": "^3.0.8", + "@types/sinon": "^10.0.12", + "@types/tmp": "0.0.28", + "@types/underscore": "1.8.3", + "@types/vscode": "1.83.1", + "@types/vscode-webview": "^1.57.5", + "@typescript-eslint/eslint-plugin": "^8.7.0", + "@typescript-eslint/parser": "^8.7.0", + "@vscode/l10n": "^0.0.18", + "@vscode/l10n-dev": "^0.0.35", + "@vscode/test-cli": "^0.0.10", + "@vscode/test-electron": "^2.4.1", + "@vscode/vsce": "^3.1.1", + "@xmldom/xmldom": "0.8.4", + "angular-in-memory-web-api": "0.1.13", + "angular2-slickgrid": "github:microsoft/angular2-slickgrid#1.4.7", + "assert": "^1.4.1", + "azdataGraph": "github:Microsoft/azdataGraph#0.0.69", + "chai": "^3.5.0", + "cli-color": "^2.0.4", + "coveralls": "^3.0.2", + "decache": "^4.1.0", + "del": "^2.2.1", + "esbuild": "^0.22.0", + "esbuild-plugin-copy": "^2.1.1", + "eslint": "^9.11.1", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-deprecation": "^3.0.0", + "eslint-plugin-jsdoc": "^50.2.2", + "eslint-plugin-jsx-a11y": "^6.10.0", + "eslint-plugin-notice": "^1.0.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-react": "^7.35.2", + "eslint-plugin-react-hooks": "^4.6.2", + "gulp": "^4.0.2", + "gulp-concat": "^2.6.0", + "gulp-eslint-new": "^2.1.0", + "gulp-istanbul-report": "0.0.1", + "gulp-rename": "^1.2.2", + "gulp-run-command": "^0.0.10", + "gulp-shell": "^0.7.0", + "gulp-sourcemaps": "^1.6.0", + "gulp-typescript": "^5.0.1", + "gulp-uglify": "^2.0.0", + "husky": "^9.0.11", + "istanbul": "^0.4.5", + "lint-staged": "^15.2.10", + "mocha-junit-reporter": "^2.2.1", + "npm-run-all": "^4.1.5", + "nyc": "^17.1.0", + "prettier": "^3.3.3", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "react-markdown": "^9.0.1", + "react-resizable": "^3.0.5", + "react-router-dom": "^6.24.1", + "remap-istanbul": "0.9.6", + "rxjs": "5.0.0-beta.12", + "sinon": "^14.0.0", + "slickgrid": "github:Microsoft/SlickGrid.ADS#2.3.46", + "source-map-support": "^0.5.21", + "systemjs": "0.19.40", + "systemjs-builder": "^0.15.32", + "systemjs-plugin-json": "^0.2.0", + "ts-node": "^10.9.2", + "typemoq": "^1.7.0", + "typescript": "^5.6.2", + "typescript-eslint": "^8.7.0", + "uglify-js": "mishoo/UglifyJS2#harmony-v2.8.22", + "vscode-nls-dev": "2.0.1", + "xliff": "^6.2.1", + "yargs": "^17.7.2" + }, + "dependencies": { + "@azure/arm-resources": "^5.0.0", + "@azure/arm-sql": "^9.0.0", + "@azure/arm-subscriptions": "^5.0.0", + "@azure/msal-common": "^14.14.0", + "@azure/msal-node": "^2.12.0", + "@microsoft/ads-extension-telemetry": "^3.0.2", + "@microsoft/vscode-azext-azureauth": "^2.5.0", + "axios": "^1.7.4", + "core-js": "^2.4.1", + "decompress-zip": "^0.2.2", + "dotenv": "^16.4.5", + "ejs": "^3.1.10", + "error-ex": "^1.3.0", + "figures": "^1.4.0", + "find-remove": "1.2.1", + "getmac": "1.2.1", + "jquery": "^3.4.1", + "lockfile": "1.0.4", + "node-fetch": "^2.6.2", + "opener": "1.4.2", + "plist": "^3.0.6", + "pretty-data": "^0.40.0", + "qs": "^6.9.1", + "rangy": "^1.3.0", + "reflect-metadata": "0.1.12", + "semver": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz", + "signal-exit": "^4.1.0", + "tar": "^7.4.3", + "tmp": "^0.0.28", + "underscore": "^1.8.3", + "vscode-languageclient": "5.2.1", + "vscode-nls": "^2.0.2", + "yallist": "^5.0.0", + "zone.js": "^0.6.26" + }, + "resolutions": { + "gulp-typescript/source-map": "0.7.4" + }, + "capabilities": { + "untrustedWorkspaces": { + "supported": true + } + }, + "contributes": { + "viewsContainers": { + "activitybar": [ + { + "id": "objectExplorer", + "title": "SQL Server", + "icon": "media/server_page_dark.svg" + } + ], + "panel": [ + { + "id": "queryResult", + "title": "Query Results (Preview)", + "icon": "media/SignIn.svg" + } + ] }, - "homepage": "https://github.com/Microsoft/vscode-mssql/blob/master/README.md", - "engines": { - "vscode": "^1.83.1" + "views": { + "queryResult": [ + { + "type": "webview", + "id": "queryResult", + "name": "%extension.queryResult%", + "when": "config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature" + } + ], + "objectExplorer": [ + { + "id": "objectExplorer", + "name": "%extension.connections%" + }, + { + "id": "queryHistory", + "name": "%extension.queryHistory%", + "when": "config.mssql.enableQueryHistoryFeature" + } + ] }, - "categories": [ - "Programming Languages", - "Azure" - ], - "keywords": [ - "SQL", - "MSSQL", - "SQL Server", - "Azure SQL Database", - "Azure SQL Data Warehouse", - "multi-root ready" + "customEditors": [ + { + "viewType": "mssql.executionPlanView", + "displayName": "SQL Server Execution Plan", + "selector": [ + { + "filenamePattern": "*.sqlplan", + "language": "sqlplan" + } + ], + "priority": "default" + } ], - "activationEvents": [ - "onUri", - "onCommand:mssql.loadCompletionExtension" + "languages": [ + { + "id": "sql", + "extensions": [ + ".sql" + ], + "aliases": [ + "SQL" + ], + "configuration": "./syntaxes/sql.configuration.json" + }, + { + "id": "sqlplan", + "extensions": [ + ".sqlplan" + ], + "aliases": [ + "SQL Server Execution Plan" + ] + } ], - "main": "./out/src/extension", - "l10n": "./localization/l10n", - "extensionDependencies": [ - "vscode.sql" + "grammars": [ + { + "language": "sql", + "scopeName": "source.sql", + "path": "./syntaxes/SQL.plist" + } ], - "extensionPack": [ - "ms-mssql.data-workspace-vscode", - "ms-mssql.sql-database-projects-vscode", - "ms-mssql.sql-bindings-vscode" + "snippets": [ + { + "language": "sql", + "path": "./snippets/mssql.json" + } ], - "scripts": { - "build": "gulp build", - "compile": "gulp ext:compile", - "watch": "gulp watch", - "lint": "eslint --quiet --cache", - "localization": "gulp ext:extract-localization-strings", - "smoketest": "gulp ext:smoke", - "test": "node ./out/test/unit/runTest.js", - "package": "vsce package", - "prepare": "husky", - "lint-staged": "lint-staged --quiet", - "precommit": "run-p lint-staged localization", - "clean-package": "git clean -xfd && yarn install && yarn build && yarn gulp package:online", - "testWithCoverage": "yarn test && yarn gulp cover" - }, - "lint-staged": { - "*.ts": "eslint --quiet --cache", - "*.tsx": "eslint --quiet --cache", - "*.css": "prettier --check" - }, - "devDependencies": { - "@angular/common": "~2.1.2", - "@angular/compiler": "~2.1.2", - "@angular/core": "~2.1.2", - "@angular/forms": "~2.1.2", - "@angular/platform-browser": "~2.1.2", - "@angular/platform-browser-dynamic": "~2.1.2", - "@angular/router": "~3.1.2", - "@angular/upgrade": "~2.1.2", - "@azure/core-paging": "^1.6.2", - "@eslint/compat": "^1.1.0", - "@eslint/js": "^9.5.0", - "@fluentui/react-components": "^9.55.1", - "@fluentui/react-list-preview": "^0.3.6", - "@fluentui-contrib/react-data-grid-react-window": "^1.2.0", - "@istanbuljs/nyc-config-typescript": "^1.0.2", - "@jgoz/esbuild-plugin-typecheck": "^4.0.0", - "@monaco-editor/react": "^4.6.0", - "@playwright/test": "^1.45.0", - "@stylistic/eslint-plugin": "^2.8.0", - "@types/azdata": "^1.46.6", - "@types/ejs": "^3.1.0", - "@types/eslint__js": "^8.42.3", - "@types/jquery": "^3.3.31", - "@types/jqueryui": "^1.12.7", - "@types/keytar": "^4.4.2", - "@types/lockfile": "^1.0.2", - "@types/mocha": "^5.2.7", - "@types/node": "^20.14.8", - "@types/node-fetch": "^2.6.2", - "@types/react": "^18.3.3", - "@types/react-dom": "^18.3.0", - "@types/react-resizable": "^3.0.8", - "@types/sinon": "^10.0.12", - "@types/tmp": "0.0.28", - "@types/underscore": "1.8.3", - "@types/vscode": "1.83.1", - "@types/vscode-webview": "^1.57.5", - "@typescript-eslint/eslint-plugin": "^8.7.0", - "@typescript-eslint/parser": "^8.7.0", - "@vscode/l10n": "^0.0.18", - "@vscode/l10n-dev": "^0.0.35", - "@vscode/test-cli": "^0.0.10", - "@vscode/test-electron": "^2.4.1", - "@vscode/vsce": "^3.1.1", - "@xmldom/xmldom": "0.8.4", - "angular-in-memory-web-api": "0.1.13", - "angular2-slickgrid": "github:microsoft/angular2-slickgrid#1.4.7", - "assert": "^1.4.1", - "azdataGraph": "github:Microsoft/azdataGraph#0.0.69", - "chai": "^3.5.0", - "cli-color": "^2.0.4", - "coveralls": "^3.0.2", - "decache": "^4.1.0", - "del": "^2.2.1", - "esbuild": "^0.22.0", - "esbuild-plugin-copy": "^2.1.1", - "eslint": "^9.11.1", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-deprecation": "^3.0.0", - "eslint-plugin-jsdoc": "^50.2.2", - "eslint-plugin-jsx-a11y": "^6.10.0", - "eslint-plugin-notice": "^1.0.0", - "eslint-plugin-prettier": "^5.2.1", - "eslint-plugin-react": "^7.35.2", - "eslint-plugin-react-hooks": "^4.6.2", - "gulp": "^4.0.2", - "gulp-concat": "^2.6.0", - "gulp-eslint-new": "^2.1.0", - "gulp-istanbul-report": "0.0.1", - "gulp-rename": "^1.2.2", - "gulp-run-command": "^0.0.10", - "gulp-shell": "^0.7.0", - "gulp-sourcemaps": "^1.6.0", - "gulp-typescript": "^5.0.1", - "gulp-uglify": "^2.0.0", - "husky": "^9.0.11", - "istanbul": "^0.4.5", - "lint-staged": "^15.2.10", - "mocha-junit-reporter": "^2.2.1", - "npm-run-all": "^4.1.5", - "nyc": "^17.1.0", - "prettier": "^3.3.3", - "react": "^18.3.1", - "react-dom": "^18.3.1", - "react-markdown": "^9.0.1", - "react-resizable": "^3.0.5", - "react-router-dom": "^6.24.1", - "remap-istanbul": "0.9.6", - "rxjs": "5.0.0-beta.12", - "sinon": "^14.0.0", - "slickgrid": "github:Microsoft/SlickGrid.ADS#2.3.46", - "source-map-support": "^0.5.21", - "systemjs": "0.19.40", - "systemjs-builder": "^0.15.32", - "systemjs-plugin-json": "^0.2.0", - "ts-node": "^10.9.2", - "typemoq": "^1.7.0", - "typescript": "^5.6.2", - "typescript-eslint": "^8.7.0", - "uglify-js": "mishoo/UglifyJS2#harmony-v2.8.22", - "vscode-nls-dev": "2.0.1", - "xliff": "^6.2.1", - "yargs": "^17.7.2" - }, - "dependencies": { - "@azure/arm-resources": "^5.0.0", - "@azure/arm-sql": "^9.0.0", - "@azure/arm-subscriptions": "^5.0.0", - "@azure/msal-common": "^14.14.0", - "@azure/msal-node": "^2.12.0", - "@microsoft/ads-extension-telemetry": "^3.0.2", - "@microsoft/vscode-azext-azureauth": "^2.5.0", - "axios": "^1.7.4", - "core-js": "^2.4.1", - "decompress-zip": "^0.2.2", - "dotenv": "^16.4.5", - "ejs": "^3.1.10", - "error-ex": "^1.3.0", - "figures": "^1.4.0", - "find-remove": "1.2.1", - "getmac": "1.2.1", - "jquery": "^3.4.1", - "lockfile": "1.0.4", - "node-fetch": "^2.6.2", - "opener": "1.4.2", - "plist": "^3.0.6", - "pretty-data": "^0.40.0", - "qs": "^6.9.1", - "rangy": "^1.3.0", - "reflect-metadata": "0.1.12", - "semver": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz", - "signal-exit": "^4.1.0", - "tar": "^7.4.3", - "tmp": "^0.0.28", - "underscore": "^1.8.3", - "vscode-languageclient": "5.2.1", - "vscode-nls": "^2.0.2", - "yallist": "^5.0.0", - "zone.js": "^0.6.26" - }, - "resolutions": { - "gulp-typescript/source-map": "0.7.4" - }, - "capabilities": { - "untrustedWorkspaces": { - "supported": true + "menus": { + "editor/title": [ + { + "command": "mssql.runQuery", + "when": "editorLangId == sql", + "group": "navigation@1" + }, + { + "command": "mssql.cancelQuery", + "when": "editorLangId == sql && resourcePath in mssql.runningQueries", + "group": "navigation@2" + }, + { + "command": "mssql.revealQueryResultPanel", + "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature && view.queryResult.visible == false", + "group": "navigation@2" + }, + { + "command": "mssql.connect", + "when": "editorLangId == sql && resource not in mssql.connections", + "group": "navigation@3" + }, + { + "command": "mssql.disconnect", + "when": "editorLangId == sql && resource in mssql.connections", + "group": "navigation@3" + }, + { + "command": "mssql.changeDatabase", + "when": "editorLangId == sql", + "group": "navigation@4" + }, + { + "command": "mssql.showExecutionPlanInResults", + "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature", + "group": "navigation@4" + }, + { + "command": "mssql.enableActualPlan", + "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature && !(resource in mssql.executionPlan.urisWithActualPlanEnabled)", + "group": "navigation@5" + }, + { + "command": "mssql.disableActualPlan", + "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature && resource in mssql.executionPlan.urisWithActualPlanEnabled", + "group": "navigation@5" + } + ], + "editor/context": [ + { + "command": "mssql.runQuery", + "when": "editorLangId == sql" + } + ], + "view/title": [ + { + "command": "mssql.addObjectExplorer", + "when": "view == objectExplorer && !config.mssql.enableRichExperiences", + "title": "%mssql.addObjectExplorer%", + "group": "navigation" + }, + { + "command": "mssql.addObjectExplorerPreview", + "when": "view == objectExplorer && config.mssql.enableRichExperiences", + "title": "%mssql.addObjectExplorerPreview%", + "group": "navigation" + }, + { + "command": "mssql.startQueryHistoryCapture", + "when": "view == queryHistory && config.mssql.enableQueryHistoryFeature && !config.mssql.enableQueryHistoryCapture", + "title": "%mssql.startQueryHistoryCapture%", + "group": "navigation" + }, + { + "command": "mssql.pauseQueryHistoryCapture", + "when": "view == queryHistory && config.mssql.enableQueryHistoryFeature && config.mssql.enableQueryHistoryCapture", + "title": "%mssql.pauseQueryHistoryCapture%", + "group": "navigation" + }, + { + "command": "mssql.clearAllQueryHistory", + "when": "view == queryHistory", + "title": "%mssql.clearAllQueryHistory%", + "group": "secondary" + }, + { + "command": "mssql.objectExplorer.enableGroupBySchema", + "when": "view == objectExplorer && !config.mssql.objectExplorer.groupBySchema", + "title": "%mssql.objectExplorer.enableGroupBySchema%", + "group": "navigation" + }, + { + "command": "mssql.objectExplorer.disableGroupBySchema", + "when": "view == objectExplorer && config.mssql.objectExplorer.groupBySchema", + "title": "%mssql.objectExplorer.disableGroupBySchema%", + "group": "navigation" + } + ], + "view/item/context": [ + { + "command": "mssql.objectExplorerNewQuery", + "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server|Database)\\b/", + "group": "MS_SQL@1" + }, + { + "command": "mssql.filterNode", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=false\\b/", + "group": "inline@1" + }, + { + "command": "mssql.filterNodeWithExistingFilters", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/", + "group": "inline@1" + }, + { + "command": "mssql.clearFilters", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/", + "group": "inline@2" + }, + { + "command": "mssql.filterNode", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=false\\b/" + }, + { + "command": "mssql.filterNodeWithExistingFilters", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/" + }, + { + "command": "mssql.clearFilters", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/" + }, + { + "command": "mssql.removeObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server)\\b/", + "group": "MS_SQL@4" + }, + { + "command": "mssql.editConnection", + "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\btype=(disconnectedServer|Server)\\b/", + "group": "inline" + }, + { + "command": "mssql.refreshObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(?!disconnectedServer\\b)[^,]+/ ", + "group": "MS_SQL@10" + }, + { + "command": "mssql.refreshObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(?!disconnectedServer\\b)[^,]+/ ", + "group": "inline@9999" + }, + { + "command": "mssql.disconnectObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Server)\\b/", + "group": "MS_SQL@3" + }, + { + "command": "mssql.scriptSelect", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View)\\b/", + "group": "MS_SQL@1" + }, + { + "command": "mssql.scriptCreate", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/", + "group": "MS_SQL@2" + }, + { + "command": "mssql.scriptDelete", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/", + "group": "MS_SQL@3" + }, + { + "command": "mssql.scriptExecute", + "when": "view == objectExplorer && viewItem =~ /\\btype=(StoredProcedure)\\b/", + "group": "MS_SQL@5" + }, + { + "command": "mssql.scriptAlter", + "when": "view == objectExplorer && viewItem =~ /\\btype=(AggregateFunction|PartitionFunction|ScalarValuedFunction|StoredProcedure|TableValuedFunction|View)\\b/", + "group": "MS_SQL@4" + }, + { + "command": "mssql.newTable", + "when": "view == objectExplorer && viewItem =~ /\\bsubType=(Tables)\\b/ && config.mssql.enableRichExperiences", + "group": "inline" + }, + { + "command": "mssql.editTable", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table)\\b/ && config.mssql.enableRichExperiences", + "group": "inline" + }, + { + "command": "mssql.copyObjectName", + "when": "view == objectExplorer && viewItem =~ /\\btype=(?!Folder\\b)[^,]+/" + }, + { + "command": "mssql.openQueryHistory", + "when": "view == queryHistory && viewItem == queryHistoryNode", + "group": "MS_SQL@1" + }, + { + "command": "mssql.runQueryHistory", + "when": "view == queryHistory && viewItem == queryHistoryNode", + "group": "MS_SQL@2" + }, + { + "command": "mssql.deleteQueryHistory", + "when": "view == queryHistory && viewItem == queryHistoryNode", + "group": "MS_SQL@3" + } + ], + "commandPalette": [ + { + "command": "mssql.objectExplorerNewQuery", + "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server|Database)\\b/" + }, + { + "command": "mssql.removeObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server)\\b/" + }, + { + "command": "mssql.refreshObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(?!disconnectedServer\\b)[^,]+/" + }, + { + "command": "mssql.scriptSelect", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View)\\b/" + }, + { + "command": "mssql.scriptCreate", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/" + }, + { + "command": "mssql.scriptDelete", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/" + }, + { + "command": "mssql.scriptExecute", + "when": "view == objectExplorer && viewItem =~ /\\btype=(StoredProcedure)\\b/" + }, + { + "command": "mssql.scriptAlter", + "when": "view == objectExplorer && viewItem =~ /\\btype=(AggregateFunction|PartitionFunction|ScalarValuedFunction|StoredProcedure|TableValuedFunction|View)\\b/" + }, + { + "command": "mssql.disconnectObjectExplorerNode", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Server)\\b/" + }, + { + "command": "mssql.toggleSqlCmd", + "when": "editorFocus && editorLangId == 'sql'" + }, + { + "command": "mssql.startQueryHistoryCapture", + "when": "config.mssql.enableQueryHistoryFeature && !config.mssql.enableQueryHistoryCapture" + }, + { + "command": "mssql.pauseQueryHistoryCapture", + "when": "config.mssql.enableQueryHistoryFeature && config.mssql.enableQueryHistoryCapture" + }, + { + "command": "mssql.copyObjectName", + "when": "view == objectExplorer && viewItem =~ /\\btype=(?!Folder\\b)[^,]+/" + }, + { + "command": "mssql.runQueryHistory", + "when": "view == queryHistory && viewItem == queryHistoryNode" + }, + { + "command": "mssql.newTable", + "when": "view == objectExplorer && viewItem =~ /\\bsubType=(Tables)\\b/ && config.mssql.enableRichExperiences" + }, + { + "command": "mssql.editTable", + "when": "view == objectExplorer && viewItem =~ /\\btype=(Table)\\b/ && config.mssql.enableRichExperiences" + }, + { + "command": "mssql.addObjectExplorer", + "when": "!config.mssql.enableRichExperiences" + }, + { + "command": "mssql.addObjectExplorerPreview", + "when": "config.mssql.enableRichExperiences" + }, + { + "command": "mssql.editConnection", + "when": "config.mssql.enableRichExperiences" + } + ], + "webview/context": [ + { + "command": "mssql.copyAll", + "when": "webviewSection == 'queryResultMessagesPane'" } + ] }, - "contributes": { - "viewsContainers": { - "activitybar": [ - { - "id": "objectExplorer", - "title": "SQL Server", - "icon": "media/server_page_dark.svg" - } - ], - "panel": [ - { - "id": "queryResult", - "title": "Query Results (Preview)", - "icon": "media/SignIn.svg" - } - ] - }, - "views": { - "queryResult": [ - { - "type": "webview", - "id": "queryResult", - "name": "%extension.queryResult%", - "when": "config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature" - } - ], - "objectExplorer": [ - { - "id": "objectExplorer", - "name": "%extension.connections%" - }, - { - "id": "queryHistory", - "name": "%extension.queryHistory%", - "when": "config.mssql.enableQueryHistoryFeature" - } - ] - }, - "customEditors": [ - { - "viewType": "mssql.executionPlanView", - "displayName": "SQL Server Execution Plan", - "selector": [ - { - "filenamePattern": "*.sqlplan", - "language": "sqlplan" - } + "commands": [ + { + "command": "mssql.runQuery", + "title": "%mssql.runQuery%", + "category": "MS SQL", + "icon": "$(debug-start)" + }, + { + "command": "mssql.runCurrentStatement", + "title": "%mssql.runCurrentStatement%", + "category": "MS SQL" + }, + { + "command": "mssql.cancelQuery", + "title": "%mssql.cancelQuery%", + "category": "MS SQL", + "icon": "$(debug-stop)" + }, + { + "command": "mssql.copyAll", + "title": "%mssql.copyAll%", + "category": "MS SQL" + }, + { + "command": "mssql.revealQueryResultPanel", + "title": "%mssql.revealQueryResultPanel%", + "category": "MS SQL", + "icon": "media/revealQueryResult.svg" + }, + { + "command": "mssql.connect", + "title": "%mssql.connect%", + "category": "MS SQL", + "icon": { + "dark": "media/connect_dark.svg", + "light": "media/connect_light.svg" + } + }, + { + "command": "mssql.disconnect", + "title": "%mssql.disconnect%", + "category": "MS SQL", + "icon": "$(debug-disconnect)" + }, + { + "command": "mssql.filterNode", + "title": "%mssql.filterNode%", + "icon": "$(filter)" + }, + { + "command": "mssql.clearFilters", + "title": "%mssql.clearFilters%", + "icon": { + "dark": "media/removeFilter_dark.svg", + "light": "media/removeFilter_light.svg" + } + }, + { + "command": "mssql.filterNodeWithExistingFilters", + "title": "%mssql.filterNode%", + "icon": "$(filter-filled)" + }, + { + "command": "mssql.changeDatabase", + "title": "%mssql.changeDatabase%", + "category": "MS SQL", + "icon": { + "dark": "media/changeConnection_dark.svg", + "light": "media/changeConnection_light.svg" + } + }, + { + "command": "mssql.manageProfiles", + "title": "%mssql.manageProfiles%", + "category": "MS SQL" + }, + { + "command": "mssql.clearPooledConnections", + "title": "%mssql.clearPooledConnections%", + "category": "MS SQL" + }, + { + "command": "mssql.chooseDatabase", + "title": "%mssql.chooseDatabase%", + "category": "MS SQL" + }, + { + "command": "mssql.chooseLanguageFlavor", + "title": "%mssql.chooseLanguageFlavor%", + "category": "MS SQL" + }, + { + "command": "mssql.showGettingStarted", + "title": "%mssql.showGettingStarted%", + "category": "MS SQL" + }, + { + "command": "mssql.newQuery", + "title": "%mssql.newQuery%", + "category": "MS SQL" + }, + { + "command": "mssql.rebuildIntelliSenseCache", + "title": "%mssql.rebuildIntelliSenseCache%", + "category": "MS SQL" + }, + { + "command": "mssql.toggleSqlCmd", + "title": "%mssql.toggleSqlCmd%", + "category": "MS SQL" + }, + { + "command": "mssql.addObjectExplorer", + "title": "%mssql.addObjectExplorer%", + "category": "MS SQL", + "icon": "$(add)" + }, + { + "command": "mssql.addObjectExplorerPreview", + "title": "%mssql.addObjectExplorerPreview%", + "category": "MS SQL", + "icon": "$(add)" + }, + { + "command": "mssql.objectExplorer.enableGroupBySchema", + "title": "%mssql.objectExplorer.enableGroupBySchema%", + "category": "MS SQL", + "icon": { + "dark": "media/groupBySchemaEnabled_dark.svg", + "light": "media/groupBySchemaEnabled_light.svg" + } + }, + { + "command": "mssql.objectExplorer.disableGroupBySchema", + "title": "%mssql.objectExplorer.disableGroupBySchema%", + "category": "MS SQL", + "icon": { + "dark": "media/groupBySchemaDisabled_dark.svg", + "light": "media/groupBySchemaDisabled_light.svg" + } + }, + { + "command": "mssql.objectExplorerNewQuery", + "title": "%mssql.objectExplorerNewQuery%", + "category": "MS SQL" + }, + { + "command": "mssql.removeObjectExplorerNode", + "title": "%mssql.removeObjectExplorerNode%", + "category": "MS SQL" + }, + { + "command": "mssql.editConnection", + "title": "%mssql.editConnection%", + "category": "MS SQL", + "icon": "$(edit)" + }, + { + "command": "mssql.refreshObjectExplorerNode", + "title": "%mssql.refreshObjectExplorerNode%", + "category": "MS SQL", + "icon": "$(refresh)" + }, + { + "command": "mssql.disconnectObjectExplorerNode", + "title": "%mssql.disconnect%", + "category": "MS SQL" + }, + { + "command": "mssql.scriptSelect", + "title": "%mssql.scriptSelect%", + "category": "MS SQL" + }, + { + "command": "mssql.scriptCreate", + "title": "%mssql.scriptCreate%", + "category": "MS SQL" + }, + { + "command": "mssql.scriptDelete", + "title": "%mssql.scriptDelete%", + "category": "MS SQL" + }, + { + "command": "mssql.scriptExecute", + "title": "%mssql.scriptExecute%", + "category": "MS SQL" + }, + { + "command": "mssql.newTable", + "title": "%mssql.newTable%", + "category": "MS SQL", + "icon": { + "dark": "media/newTable_dark.svg", + "light": "media/newTable_light.svg" + } + }, + { + "command": "mssql.editTable", + "title": "%mssql.editTable%", + "category": "MS SQL", + "icon": { + "dark": "media/editTable_dark.svg", + "light": "media/editTable_light.svg" + } + }, + { + "command": "mssql.scriptAlter", + "title": "%mssql.scriptAlter%", + "category": "MS SQL" + }, + { + "command": "mssql.openQueryHistory", + "title": "%mssql.openQueryHistory%", + "category": "MS SQL" + }, + { + "command": "mssql.runQueryHistory", + "title": "%mssql.runQueryHistory%", + "category": "MS SQL" + }, + { + "command": "mssql.deleteQueryHistory", + "title": "%mssql.deleteQueryHistory%", + "category": "MS SQL" + }, + { + "command": "mssql.clearAllQueryHistory", + "title": "%mssql.clearAllQueryHistory%", + "category": "MS SQL" + }, + { + "command": "mssql.startQueryHistoryCapture", + "title": "%mssql.startQueryHistoryCapture%", + "category": "MS SQL", + "icon": "$(debug-start)" + }, + { + "command": "mssql.pauseQueryHistoryCapture", + "title": "%mssql.pauseQueryHistoryCapture%", + "category": "MS SQL", + "icon": "$(debug-stop)" + }, + { + "command": "mssql.commandPaletteQueryHistory", + "title": "%mssql.commandPaletteQueryHistory%", + "category": "MS SQL" + }, + { + "command": "mssql.copyObjectName", + "title": "%mssql.copyObjectName%", + "category": "MS SQL" + }, + { + "command": "mssql.addAadAccount", + "title": "%mssql.addAadAccount%", + "category": "MS SQL" + }, + { + "command": "mssql.removeAadAccount", + "title": "%mssql.removeAadAccount%", + "category": "MS SQL" + }, + { + "command": "mssql.clearAzureAccountTokenCache", + "title": "%mssql.clearAzureAccountTokenCache%", + "category": "MS SQL" + }, + { + "command": "mssql.userFeedback", + "title": "%mssql.userFeedback%", + "category": "MS SQL" + }, + { + "command": "mssql.showExecutionPlanInResults", + "title": "%mssql.showExecutionPlanInResults%", + "category": "MS SQL", + "icon": { + "dark": "media/executionPlan_dark.svg", + "light": "media/executionPlan_light.svg" + } + }, + { + "command": "mssql.enableActualPlan", + "title": "%mssql.enableActualPlan%", + "category": "MS SQL", + "icon": { + "dark": "media/enableActualExecutionPlan_dark.svg", + "light": "media/enableActualExecutionPlan_light.svg" + } + }, + { + "command": "mssql.disableActualPlan", + "title": "%mssql.disableActualPlan%", + "category": "MS SQL", + "icon": { + "dark": "media/disableActualExecutionPlan_dark.svg", + "light": "media/disableActualExecutionPlan_light.svg" + } + } + ], + "keybindings": [ + { + "command": "mssql.runQuery", + "key": "ctrl+shift+e", + "mac": "cmd+shift+e", + "when": "editorTextFocus && editorLangId == 'sql'" + }, + { + "command": "mssql.connect", + "key": "ctrl+shift+c", + "mac": "cmd+shift+c", + "when": "editorTextFocus && editorLangId == 'sql'" + }, + { + "command": "mssql.disconnect", + "key": "ctrl+shift+d", + "mac": "cmd+shift+d", + "when": "editorTextFocus && editorLangId == 'sql'" + }, + { + "command": "workbench.view.extension.objectExplorer", + "key": "ctrl+alt+d", + "mac": "cmd+alt+d" + }, + { + "command": "mssql.copyObjectName", + "key": "ctrl+c", + "mac": "cmd+c", + "when": "sideBarFocus && activeViewlet == workbench.view.extension.objectExplorer" + } + ], + "configuration": { + "type": "object", + "title": "%mssql.Configuration%", + "properties": { + "mssql.enableExperimentalFeatures": { + "type": "boolean", + "default": false, + "description": "%mssql.enableExperimentalFeatures.description%", + "scope": "application" + }, + "mssql.enableRichExperiences": { + "type": "boolean", + "default": false, + "description": "%mssql.enableRichExperiences.description%", + "scope": "application" + }, + "mssql.enableRichExperiencesDoNotShowPrompt": { + "type": "boolean", + "default": false, + "description": "%mssql.enableRichExperiencesDoNotShowPrompt.description%", + "scope": "application" + }, + "mssql.openQueryResultsInTabByDefault": { + "type": "boolean", + "default": false, + "description": "%mssql.openQueryResultsInTabByDefault.description%", + "scope": "application" + }, + "mssql.openQueryResultsInTabByDefaultDoNotShowPrompt": { + "type": "boolean", + "default": false, + "description": "%mssql.openQueryResultsInTabByDefaultDoNotShowPrompt.description%", + "scope": "application" + }, + "mssql.enableNewQueryResultFeature": { + "type": "boolean", + "default": true, + "description": "%mssql.enableNewQueryResultFeature.description%", + "scope": "application" + }, + "azureResourceGroups.selectedSubscriptions": { + "type": "array", + "description": "%mssql.selectedSubscriptions%", + "items": { + "type": "string" + }, + "$comment": "This setting must be registered in case the user does not have the Azure Resource Groups extension installed. All extensions using this configuration must register this setting." + }, + "mssql.azureActiveDirectory": { + "type": "string", + "default": "AuthCodeGrant", + "description": "%mssql.chooseAuthMethod%", + "enum": [ + "AuthCodeGrant", + "DeviceCode" + ], + "enumDescriptions": [ + "%mssql.authCodeGrant.description%", + "%mssql.deviceCode.description%" + ], + "scope": "application" + }, + "mssql.logDebugInfo": { + "type": "boolean", + "default": false, + "description": "%mssql.logDebugInfo%", + "scope": "window" + }, + "mssql.maxRecentConnections": { + "type": "number", + "default": 5, + "description": "%mssql.maxRecentConnections%", + "scope": "window" + }, + "mssql.connections": { + "type": "array", + "description": "%mssql.connections%", + "items": { + "type": "object", + "properties": { + "server": { + "type": "string", + "default": "{{put-server-name-here}}", + "description": "%mssql.connection.server%" + }, + "database": { + "type": "string", + "default": "{{put-database-name-here}}", + "description": "%mssql.connection.database%" + }, + "user": { + "type": "string", + "default": "{{put-username-here}}", + "description": "%mssql.connection.user%" + }, + "password": { + "type": "string", + "default": "{{put-password-here}}", + "description": "%mssql.connection.password%" + }, + "authenticationType": { + "type": "string", + "default": "SqlLogin", + "enum": [ + "Integrated", + "SqlLogin", + "AzureMFA" ], - "priority": "default" - } - ], - "languages": [ - { - "id": "sql", - "extensions": [ - ".sql" + "description": "%mssql.connection.authenticationType%" + }, + "port": { + "type": "number", + "default": 1433, + "description": "%mssql.connection.port%" + }, + "encrypt": { + "type": "string", + "default": "Mandatory", + "enum": [ + "Mandatory", + "Strict", + "Optional" ], - "aliases": [ - "SQL" + "description": "%mssql.connection.encrypt%" + }, + "trustServerCertificate": { + "type": "boolean", + "default": false, + "description": "%mssql.connection.trustServerCertificate%" + }, + "hostNameInCertificate": { + "type": "string", + "default": "", + "description": "%mssql.connection.hostNameInCertificate" + }, + "persistSecurityInfo": { + "type": "boolean", + "default": false, + "description": "%mssql.connection.persistSecurityInfo%" + }, + "connectTimeout": { + "type": "number", + "default": 15, + "description": "%mssql.connection.connectTimeout%" + }, + "commandTimeout": { + "type": "number", + "default": 30, + "description": "%mssql.connection.commandTimeout%" + }, + "connectRetryCount": { + "type": "number", + "default": 1, + "description": "%mssql.connection.connectRetryCount%" + }, + "connectRetryInterval": { + "type": "number", + "default": 10, + "description": "%mssql.connection.connectRetryInterval%" + }, + "applicationName": { + "type": "string", + "default": "vscode-mssql", + "description": "%mssql.connection.applicationName%" + }, + "workstationId": { + "type": "string", + "default": "", + "description": "%mssql.connection.workstationId%" + }, + "applicationIntent": { + "type": "string", + "default": "ReadWrite", + "enum": [ + "ReadWrite", + "ReadOnly" ], - "configuration": "./syntaxes/sql.configuration.json" - }, - { - "id": "sqlplan", - "extensions": [ - ".sqlplan" + "description": "%mssql.connection.applicationIntent%" + }, + "currentLanguage": { + "type": "string", + "default": "", + "description": "%mssql.connection.currentLanguage%" + }, + "pooling": { + "type": "boolean", + "default": false, + "description": "%mssql.connection.pooling%" + }, + "maxPoolSize": { + "type": "number", + "default": 100, + "description": "%mssql.connection.maxPoolSize%" + }, + "minPoolSize": { + "type": "number", + "default": 0, + "description": "%mssql.connection.minPoolSize%" + }, + "loadBalanceTimeout": { + "type": "number", + "default": 0, + "description": "%mssql.connection.loadBalanceTimeout%" + }, + "replication": { + "type": "boolean", + "default": true, + "description": "%mssql.connection.replication%" + }, + "attachDbFilename": { + "type": "string", + "default": "", + "description": "%mssql.connection.attachDbFilename%" + }, + "failoverPartner": { + "type": "string", + "default": "", + "description": "%mssql.connection.failoverPartner%" + }, + "multiSubnetFailover": { + "type": "boolean", + "default": true, + "description": "%mssql.connection.multiSubnetFailover%" + }, + "multipleActiveResultSets": { + "type": "boolean", + "default": false, + "description": "%mssql.connection.multipleActiveResultSets%" + }, + "packetSize": { + "type": "number", + "default": 8192, + "description": "%mssql.connection.packetSize%" + }, + "typeSystemVersion": { + "type": "string", + "enum": [ + "Latest" ], - "aliases": [ - "SQL Server Execution Plan" - ] - } - ], - "grammars": [ - { - "language": "sql", - "scopeName": "source.sql", - "path": "./syntaxes/SQL.plist" + "description": "%mssql.connection.typeSystemVersion%" + }, + "connectionString": { + "type": "string", + "default": "", + "description": "%mssql.connection.connectionString%" + }, + "profileName": { + "type": "string", + "description": "%mssql.connection.profileName%" + }, + "savePassword": { + "type": "boolean", + "description": "%mssql.connection.savePassword%" + }, + "emptyPasswordInput": { + "type": "boolean", + "description": "%mssql.connection.emptyPasswordInput%" + } } - ], - "snippets": [ - { - "language": "sql", - "path": "./snippets/mssql.json" - } - ], - "menus": { - "editor/title": [ - { - "command": "mssql.runQuery", - "when": "editorLangId == sql", - "group": "navigation@1" - }, - { - "command": "mssql.cancelQuery", - "when": "editorLangId == sql && resourcePath in mssql.runningQueries", - "group": "navigation@2" - }, - { - "command": "mssql.revealQueryResultPanel", - "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature && view.queryResult.visible == false", - "group": "navigation@2" - }, - { - "command": "mssql.connect", - "when": "editorLangId == sql && resource not in mssql.connections", - "group": "navigation@3" - }, - { - "command": "mssql.disconnect", - "when": "editorLangId == sql && resource in mssql.connections", - "group": "navigation@3" - }, - { - "command": "mssql.changeDatabase", - "when": "editorLangId == sql", - "group": "navigation@4" - }, - { - "command": "mssql.showExecutionPlanInResults", - "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature", - "group": "navigation@4" - }, - { - "command": "mssql.enableActualPlan", - "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature && !(resource in mssql.executionPlan.urisWithActualPlanEnabled)", - "group": "navigation@5" - }, - { - "command": "mssql.disableActualPlan", - "when": "editorLangId == sql && config.mssql.enableRichExperiences && config.mssql.enableNewQueryResultFeature && resource in mssql.executionPlan.urisWithActualPlanEnabled", - "group": "navigation@5" - } - ], - "editor/context": [ - { - "command": "mssql.runQuery", - "when": "editorLangId == sql" - } - ], - "view/title": [ - { - "command": "mssql.addObjectExplorer", - "when": "view == objectExplorer && !config.mssql.enableRichExperiences", - "title": "%mssql.addObjectExplorer%", - "group": "navigation" - }, - { - "command": "mssql.addObjectExplorerPreview", - "when": "view == objectExplorer && config.mssql.enableRichExperiences", - "title": "%mssql.addObjectExplorerPreview%", - "group": "navigation" - }, - { - "command": "mssql.startQueryHistoryCapture", - "when": "view == queryHistory && config.mssql.enableQueryHistoryFeature && !config.mssql.enableQueryHistoryCapture", - "title": "%mssql.startQueryHistoryCapture%", - "group": "navigation" - }, - { - "command": "mssql.pauseQueryHistoryCapture", - "when": "view == queryHistory && config.mssql.enableQueryHistoryFeature && config.mssql.enableQueryHistoryCapture", - "title": "%mssql.pauseQueryHistoryCapture%", - "group": "navigation" - }, - { - "command": "mssql.clearAllQueryHistory", - "when": "view == queryHistory", - "title": "%mssql.clearAllQueryHistory%", - "group": "secondary" - }, - { - "command": "mssql.objectExplorer.enableGroupBySchema", - "when": "view == objectExplorer && !config.mssql.objectExplorer.groupBySchema", - "title": "%mssql.objectExplorer.enableGroupBySchema%", - "group": "navigation" - }, - { - "command": "mssql.objectExplorer.disableGroupBySchema", - "when": "view == objectExplorer && config.mssql.objectExplorer.groupBySchema", - "title": "%mssql.objectExplorer.disableGroupBySchema%", - "group": "navigation" - } - ], - "view/item/context": [ - { - "command": "mssql.objectExplorerNewQuery", - "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server|Database)\\b/", - "group": "MS_SQL@1" - }, - { - "command": "mssql.filterNode", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=false\\b/", - "group": "inline@1" - }, - { - "command": "mssql.filterNodeWithExistingFilters", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/", - "group": "inline@1" - }, - { - "command": "mssql.clearFilters", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/", - "group": "inline@2" - }, - { - "command": "mssql.filterNode", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=false\\b/" - }, - { - "command": "mssql.filterNodeWithExistingFilters", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/" - }, - { - "command": "mssql.clearFilters", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\bfilterable=true\\b.*\\bhasFilters=true\\b/" - }, - { - "command": "mssql.removeObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server)\\b/", - "group": "MS_SQL@4" - }, - { - "command": "mssql.editConnection", - "when": "view == objectExplorer && config.mssql.enableRichExperiences && viewItem =~ /\\btype=(disconnectedServer|Server)\\b/", - "group": "inline" - }, - { - "command": "mssql.refreshObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(?!disconnectedServer\\b)[^,]+/ ", - "group": "MS_SQL@10" - }, - { - "command": "mssql.refreshObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(?!disconnectedServer\\b)[^,]+/ ", - "group": "inline@9999" - }, - { - "command": "mssql.disconnectObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Server)\\b/", - "group": "MS_SQL@3" - }, - { - "command": "mssql.scriptSelect", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View)\\b/", - "group": "MS_SQL@1" - }, - { - "command": "mssql.scriptCreate", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/", - "group": "MS_SQL@2" - }, - { - "command": "mssql.scriptDelete", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/", - "group": "MS_SQL@3" - }, - { - "command": "mssql.scriptExecute", - "when": "view == objectExplorer && viewItem =~ /\\btype=(StoredProcedure)\\b/", - "group": "MS_SQL@5" - }, - { - "command": "mssql.scriptAlter", - "when": "view == objectExplorer && viewItem =~ /\\btype=(AggregateFunction|PartitionFunction|ScalarValuedFunction|StoredProcedure|TableValuedFunction|View)\\b/", - "group": "MS_SQL@4" - }, - { - "command": "mssql.newTable", - "when": "view == objectExplorer && viewItem =~ /\\bsubType=(Tables)\\b/ && config.mssql.enableRichExperiences", - "group": "inline" - }, - { - "command": "mssql.editTable", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table)\\b/ && config.mssql.enableRichExperiences", - "group": "inline" - }, - { - "command": "mssql.copyObjectName", - "when": "view == objectExplorer && viewItem =~ /\\btype=(?!Folder\\b)[^,]+/" - }, - { - "command": "mssql.openQueryHistory", - "when": "view == queryHistory && viewItem == queryHistoryNode", - "group": "MS_SQL@1" - }, - { - "command": "mssql.runQueryHistory", - "when": "view == queryHistory && viewItem == queryHistoryNode", - "group": "MS_SQL@2" - }, - { - "command": "mssql.deleteQueryHistory", - "when": "view == queryHistory && viewItem == queryHistoryNode", - "group": "MS_SQL@3" - } - ], - "commandPalette": [ - { - "command": "mssql.objectExplorerNewQuery", - "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server|Database)\\b/" - }, - { - "command": "mssql.removeObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(disconnectedServer|Server)\\b/" - }, - { - "command": "mssql.refreshObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(?!disconnectedServer\\b)[^,]+/" - }, - { - "command": "mssql.scriptSelect", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View)\\b/" - }, - { - "command": "mssql.scriptCreate", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/" - }, - { - "command": "mssql.scriptDelete", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table|View|AggregateFunction|PartitionFunction|ScalarValuedFunction|Schema|StoredProcedure|TableValuedFunction|User|UserDefinedTableType|Trigger|DatabaseTrigger|Index|Key|User|DatabaseRole|ApplicationRole)\\b/" - }, - { - "command": "mssql.scriptExecute", - "when": "view == objectExplorer && viewItem =~ /\\btype=(StoredProcedure)\\b/" - }, - { - "command": "mssql.scriptAlter", - "when": "view == objectExplorer && viewItem =~ /\\btype=(AggregateFunction|PartitionFunction|ScalarValuedFunction|StoredProcedure|TableValuedFunction|View)\\b/" - }, - { - "command": "mssql.disconnectObjectExplorerNode", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Server)\\b/" - }, - { - "command": "mssql.toggleSqlCmd", - "when": "editorFocus && editorLangId == 'sql'" - }, - { - "command": "mssql.startQueryHistoryCapture", - "when": "config.mssql.enableQueryHistoryFeature && !config.mssql.enableQueryHistoryCapture" - }, - { - "command": "mssql.pauseQueryHistoryCapture", - "when": "config.mssql.enableQueryHistoryFeature && config.mssql.enableQueryHistoryCapture" - }, - { - "command": "mssql.copyObjectName", - "when": "view == objectExplorer && viewItem =~ /\\btype=(?!Folder\\b)[^,]+/" - }, - { - "command": "mssql.runQueryHistory", - "when": "view == queryHistory && viewItem == queryHistoryNode" - }, - { - "command": "mssql.newTable", - "when": "view == objectExplorer && viewItem =~ /\\bsubType=(Tables)\\b/ && config.mssql.enableRichExperiences" - }, - { - "command": "mssql.editTable", - "when": "view == objectExplorer && viewItem =~ /\\btype=(Table)\\b/ && config.mssql.enableRichExperiences" - }, - { - "command": "mssql.addObjectExplorer", - "when": "!config.mssql.enableRichExperiences" - }, - { - "command": "mssql.addObjectExplorerPreview", - "when": "config.mssql.enableRichExperiences" - }, - { - "command": "mssql.editConnection", - "when": "config.mssql.enableRichExperiences" - } + }, + "scope": "resource" + }, + "mssql.shortcuts": { + "type": "object", + "description": "%mssql.shortcuts%", + "default": { + "_comment": "Short cuts must follow the format (ctrl)+(shift)+(alt)+[key]", + "event.toggleResultPane": "ctrl+alt+R", + "event.focusResultsGrid": "ctrl+alt+G", + "event.toggleMessagePane": "ctrl+alt+Y", + "event.prevGrid": "ctrl+up", + "event.nextGrid": "ctrl+down", + "event.copySelection": "ctrl+C", + "event.copyWithHeaders": "", + "event.copyAllHeaders": "", + "event.maximizeGrid": "", + "event.selectAll": "ctrl+A", + "event.saveAsJSON": "", + "event.saveAsCSV": "", + "event.saveAsExcel": "", + "event.changeColumnWidth": "ctrl+alt+S" + }, + "scope": "resource" + }, + "mssql.messagesDefaultOpen": { + "type": "boolean", + "description": "%mssql.messagesDefaultOpen%", + "default": true, + "scope": "resource" + }, + "mssql.resultsFontFamily": { + "type": "string", + "description": "%mssql.resultsFontFamily%", + "default": null, + "scope": "resource" + }, + "mssql.resultsFontSize": { + "type": [ + "number", + "null" ], - "webview/context": [ - { - "command": "mssql.copyAll", - "when": "webviewSection == 'queryResultMessagesPane'" - } - ] - }, - "commands": [ - { - "command": "mssql.runQuery", - "title": "%mssql.runQuery%", - "category": "MS SQL", - "icon": "$(debug-start)" - }, - { - "command": "mssql.runCurrentStatement", - "title": "%mssql.runCurrentStatement%", - "category": "MS SQL" - }, - { - "command": "mssql.cancelQuery", - "title": "%mssql.cancelQuery%", - "category": "MS SQL", - "icon": "$(debug-stop)" - }, - { - "command": "mssql.copyAll", - "title": "%mssql.copyAll%", - "category": "MS SQL" - }, - { - "command": "mssql.revealQueryResultPanel", - "title": "%mssql.revealQueryResultPanel%", - "category": "MS SQL", - "icon": "media/revealQueryResult.svg" - }, - { - "command": "mssql.connect", - "title": "%mssql.connect%", - "category": "MS SQL", - "icon": { - "dark": "media/connect_dark.svg", - "light": "media/connect_light.svg" - } - }, - { - "command": "mssql.disconnect", - "title": "%mssql.disconnect%", - "category": "MS SQL", - "icon": "$(debug-disconnect)" - }, - { - "command": "mssql.filterNode", - "title": "%mssql.filterNode%", - "icon": "$(filter)" - }, - { - "command": "mssql.clearFilters", - "title": "%mssql.clearFilters%", - "icon": { - "dark": "media/removeFilter_dark.svg", - "light": "media/removeFilter_light.svg" - } - }, - { - "command": "mssql.filterNodeWithExistingFilters", - "title": "%mssql.filterNode%", - "icon": "$(filter-filled)" - }, - { - "command": "mssql.changeDatabase", - "title": "%mssql.changeDatabase%", - "category": "MS SQL", - "icon": { - "dark": "media/changeConnection_dark.svg", - "light": "media/changeConnection_light.svg" - } - }, - { - "command": "mssql.manageProfiles", - "title": "%mssql.manageProfiles%", - "category": "MS SQL" - }, - { - "command": "mssql.clearPooledConnections", - "title": "%mssql.clearPooledConnections%", - "category": "MS SQL" - }, - { - "command": "mssql.chooseDatabase", - "title": "%mssql.chooseDatabase%", - "category": "MS SQL" - }, - { - "command": "mssql.chooseLanguageFlavor", - "title": "%mssql.chooseLanguageFlavor%", - "category": "MS SQL" - }, - { - "command": "mssql.showGettingStarted", - "title": "%mssql.showGettingStarted%", - "category": "MS SQL" - }, - { - "command": "mssql.newQuery", - "title": "%mssql.newQuery%", - "category": "MS SQL" - }, - { - "command": "mssql.rebuildIntelliSenseCache", - "title": "%mssql.rebuildIntelliSenseCache%", - "category": "MS SQL" - }, - { - "command": "mssql.toggleSqlCmd", - "title": "%mssql.toggleSqlCmd%", - "category": "MS SQL" - }, - { - "command": "mssql.addObjectExplorer", - "title": "%mssql.addObjectExplorer%", - "category": "MS SQL", - "icon": "$(add)" - }, - { - "command": "mssql.addObjectExplorerPreview", - "title": "%mssql.addObjectExplorerPreview%", - "category": "MS SQL", - "icon": "$(add)" - }, - { - "command": "mssql.objectExplorer.enableGroupBySchema", - "title": "%mssql.objectExplorer.enableGroupBySchema%", - "category": "MS SQL", - "icon": { - "dark": "media/groupBySchemaEnabled_dark.svg", - "light": "media/groupBySchemaEnabled_light.svg" - } - }, - { - "command": "mssql.objectExplorer.disableGroupBySchema", - "title": "%mssql.objectExplorer.disableGroupBySchema%", - "category": "MS SQL", - "icon": { - "dark": "media/groupBySchemaDisabled_dark.svg", - "light": "media/groupBySchemaDisabled_light.svg" - } - }, - { - "command": "mssql.objectExplorerNewQuery", - "title": "%mssql.objectExplorerNewQuery%", - "category": "MS SQL" - }, - { - "command": "mssql.removeObjectExplorerNode", - "title": "%mssql.removeObjectExplorerNode%", - "category": "MS SQL" - }, - { - "command": "mssql.editConnection", - "title": "%mssql.editConnection%", - "category": "MS SQL", - "icon": "$(edit)" - }, - { - "command": "mssql.refreshObjectExplorerNode", - "title": "%mssql.refreshObjectExplorerNode%", - "category": "MS SQL", - "icon": "$(refresh)" - }, - { - "command": "mssql.disconnectObjectExplorerNode", - "title": "%mssql.disconnect%", - "category": "MS SQL" - }, - { - "command": "mssql.scriptSelect", - "title": "%mssql.scriptSelect%", - "category": "MS SQL" - }, - { - "command": "mssql.scriptCreate", - "title": "%mssql.scriptCreate%", - "category": "MS SQL" - }, - { - "command": "mssql.scriptDelete", - "title": "%mssql.scriptDelete%", - "category": "MS SQL" - }, - { - "command": "mssql.scriptExecute", - "title": "%mssql.scriptExecute%", - "category": "MS SQL" - }, - { - "command": "mssql.newTable", - "title": "%mssql.newTable%", - "category": "MS SQL", - "icon": { - "dark": "media/newTable_dark.svg", - "light": "media/newTable_light.svg" - } - }, - { - "command": "mssql.editTable", - "title": "%mssql.editTable%", - "category": "MS SQL", - "icon": { - "dark": "media/editTable_dark.svg", - "light": "media/editTable_light.svg" - } - }, - { - "command": "mssql.scriptAlter", - "title": "%mssql.scriptAlter%", - "category": "MS SQL" - }, - { - "command": "mssql.openQueryHistory", - "title": "%mssql.openQueryHistory%", - "category": "MS SQL" - }, - { - "command": "mssql.runQueryHistory", - "title": "%mssql.runQueryHistory%", - "category": "MS SQL" - }, - { - "command": "mssql.deleteQueryHistory", - "title": "%mssql.deleteQueryHistory%", - "category": "MS SQL" - }, - { - "command": "mssql.clearAllQueryHistory", - "title": "%mssql.clearAllQueryHistory%", - "category": "MS SQL" - }, - { - "command": "mssql.startQueryHistoryCapture", - "title": "%mssql.startQueryHistoryCapture%", - "category": "MS SQL", - "icon": "$(debug-start)" - }, - { - "command": "mssql.pauseQueryHistoryCapture", - "title": "%mssql.pauseQueryHistoryCapture%", - "category": "MS SQL", - "icon": "$(debug-stop)" - }, - { - "command": "mssql.commandPaletteQueryHistory", - "title": "%mssql.commandPaletteQueryHistory%", - "category": "MS SQL" - }, - { - "command": "mssql.copyObjectName", - "title": "%mssql.copyObjectName%", - "category": "MS SQL" - }, - { - "command": "mssql.addAadAccount", - "title": "%mssql.addAadAccount%", - "category": "MS SQL" - }, - { - "command": "mssql.removeAadAccount", - "title": "%mssql.removeAadAccount%", - "category": "MS SQL" - }, - { - "command": "mssql.clearAzureAccountTokenCache", - "title": "%mssql.clearAzureAccountTokenCache%", - "category": "MS SQL" - }, - { - "command": "mssql.userFeedback", - "title": "%mssql.userFeedback%", - "category": "MS SQL" - }, - { - "command": "mssql.showExecutionPlanInResults", - "title": "%mssql.showExecutionPlanInResults%", - "category": "MS SQL", - "icon": { - "dark": "media/executionPlan_dark.svg", - "light": "media/executionPlan_light.svg" - } - }, - { - "command": "mssql.enableActualPlan", - "title": "%mssql.enableActualPlan%", - "category": "MS SQL", - "icon": { - "dark": "media/enableActualExecutionPlan_dark.svg", - "light": "media/enableActualExecutionPlan_light.svg" - } - }, - { - "command": "mssql.disableActualPlan", - "title": "%mssql.disableActualPlan%", - "category": "MS SQL", - "icon": { - "dark": "media/disableActualExecutionPlan_dark.svg", - "light": "media/disableActualExecutionPlan_light.svg" - } - } - ], - "keybindings": [ - { - "command": "mssql.runQuery", - "key": "ctrl+shift+e", - "mac": "cmd+shift+e", - "when": "editorTextFocus && editorLangId == 'sql'" - }, - { - "command": "mssql.connect", - "key": "ctrl+shift+c", - "mac": "cmd+shift+c", - "when": "editorTextFocus && editorLangId == 'sql'" - }, - { - "command": "mssql.disconnect", - "key": "ctrl+shift+d", - "mac": "cmd+shift+d", - "when": "editorTextFocus && editorLangId == 'sql'" - }, - { - "command": "workbench.view.extension.objectExplorer", - "key": "ctrl+alt+d", - "mac": "cmd+alt+d" - }, - { - "command": "mssql.copyObjectName", - "key": "ctrl+c", - "mac": "cmd+c", - "when": "sideBarFocus && activeViewlet == workbench.view.extension.objectExplorer" - } - ], - "configuration": { - "type": "object", - "title": "%mssql.Configuration%", - "properties": { - "mssql.enableExperimentalFeatures": { - "type": "boolean", - "default": false, - "description": "%mssql.enableExperimentalFeatures.description%", - "scope": "application" - }, - "mssql.enableRichExperiences": { - "type": "boolean", - "default": false, - "description": "%mssql.enableRichExperiences.description%", - "scope": "application" - }, - "mssql.enableRichExperiencesDoNotShowPrompt": { - "type": "boolean", - "default": false, - "description": "%mssql.enableRichExperiencesDoNotShowPrompt.description%", - "scope": "application" - }, - "mssql.openQueryResultsInTabByDefault": { - "type": "boolean", - "default": false, - "description": "%mssql.openQueryResultsInTabByDefault.description%", - "scope": "application" - }, - "mssql.openQueryResultsInTabByDefaultDoNotShowPrompt": { - "type": "boolean", - "default": false, - "description": "%mssql.openQueryResultsInTabByDefaultDoNotShowPrompt.description%", - "scope": "application" - }, - "mssql.enableNewQueryResultFeature": { - "type": "boolean", - "default": true, - "description": "%mssql.enableNewQueryResultFeature.description%", - "scope": "application" - }, - "azureResourceGroups.selectedSubscriptions": { - "type": "array", - "description": "%mssql.selectedSubscriptions%", - "items": { - "type": "string" - }, - "$comment": "This setting must be registered in case the user does not have the Azure Resource Groups extension installed. All extensions using this configuration must register this setting." - }, - "mssql.azureActiveDirectory": { - "type": "string", - "default": "AuthCodeGrant", - "description": "%mssql.chooseAuthMethod%", - "enum": [ - "AuthCodeGrant", - "DeviceCode" - ], - "enumDescriptions": [ - "%mssql.authCodeGrant.description%", - "%mssql.deviceCode.description%" - ], - "scope": "application" - }, - "mssql.logDebugInfo": { - "type": "boolean", - "default": false, - "description": "%mssql.logDebugInfo%", - "scope": "window" - }, - "mssql.maxRecentConnections": { - "type": "number", - "default": 5, - "description": "%mssql.maxRecentConnections%", - "scope": "window" - }, - "mssql.connections": { - "type": "array", - "description": "%mssql.connections%", - "items": { - "type": "object", - "properties": { - "server": { - "type": "string", - "default": "{{put-server-name-here}}", - "description": "%mssql.connection.server%" - }, - "database": { - "type": "string", - "default": "{{put-database-name-here}}", - "description": "%mssql.connection.database%" - }, - "user": { - "type": "string", - "default": "{{put-username-here}}", - "description": "%mssql.connection.user%" - }, - "password": { - "type": "string", - "default": "{{put-password-here}}", - "description": "%mssql.connection.password%" - }, - "authenticationType": { - "type": "string", - "default": "SqlLogin", - "enum": [ - "Integrated", - "SqlLogin", - "AzureMFA" - ], - "description": "%mssql.connection.authenticationType%" - }, - "port": { - "type": "number", - "default": 1433, - "description": "%mssql.connection.port%" - }, - "encrypt": { - "type": "string", - "default": "Mandatory", - "enum": [ - "Mandatory", - "Strict", - "Optional" - ], - "description": "%mssql.connection.encrypt%" - }, - "trustServerCertificate": { - "type": "boolean", - "default": false, - "description": "%mssql.connection.trustServerCertificate%" - }, - "hostNameInCertificate": { - "type": "string", - "default": "", - "description": "%mssql.connection.hostNameInCertificate" - }, - "persistSecurityInfo": { - "type": "boolean", - "default": false, - "description": "%mssql.connection.persistSecurityInfo%" - }, - "connectTimeout": { - "type": "number", - "default": 15, - "description": "%mssql.connection.connectTimeout%" - }, - "commandTimeout": { - "type": "number", - "default": 30, - "description": "%mssql.connection.commandTimeout%" - }, - "connectRetryCount": { - "type": "number", - "default": 1, - "description": "%mssql.connection.connectRetryCount%" - }, - "connectRetryInterval": { - "type": "number", - "default": 10, - "description": "%mssql.connection.connectRetryInterval%" - }, - "applicationName": { - "type": "string", - "default": "vscode-mssql", - "description": "%mssql.connection.applicationName%" - }, - "workstationId": { - "type": "string", - "default": "", - "description": "%mssql.connection.workstationId%" - }, - "applicationIntent": { - "type": "string", - "default": "ReadWrite", - "enum": [ - "ReadWrite", - "ReadOnly" - ], - "description": "%mssql.connection.applicationIntent%" - }, - "currentLanguage": { - "type": "string", - "default": "", - "description": "%mssql.connection.currentLanguage%" - }, - "pooling": { - "type": "boolean", - "default": false, - "description": "%mssql.connection.pooling%" - }, - "maxPoolSize": { - "type": "number", - "default": 100, - "description": "%mssql.connection.maxPoolSize%" - }, - "minPoolSize": { - "type": "number", - "default": 0, - "description": "%mssql.connection.minPoolSize%" - }, - "loadBalanceTimeout": { - "type": "number", - "default": 0, - "description": "%mssql.connection.loadBalanceTimeout%" - }, - "replication": { - "type": "boolean", - "default": true, - "description": "%mssql.connection.replication%" - }, - "attachDbFilename": { - "type": "string", - "default": "", - "description": "%mssql.connection.attachDbFilename%" - }, - "failoverPartner": { - "type": "string", - "default": "", - "description": "%mssql.connection.failoverPartner%" - }, - "multiSubnetFailover": { - "type": "boolean", - "default": true, - "description": "%mssql.connection.multiSubnetFailover%" - }, - "multipleActiveResultSets": { - "type": "boolean", - "default": false, - "description": "%mssql.connection.multipleActiveResultSets%" - }, - "packetSize": { - "type": "number", - "default": 8192, - "description": "%mssql.connection.packetSize%" - }, - "typeSystemVersion": { - "type": "string", - "enum": [ - "Latest" - ], - "description": "%mssql.connection.typeSystemVersion%" - }, - "connectionString": { - "type": "string", - "default": "", - "description": "%mssql.connection.connectionString%" - }, - "profileName": { - "type": "string", - "description": "%mssql.connection.profileName%" - }, - "savePassword": { - "type": "boolean", - "description": "%mssql.connection.savePassword%" - }, - "emptyPasswordInput": { - "type": "boolean", - "description": "%mssql.connection.emptyPasswordInput%" - } - } - }, - "scope": "resource" - }, - "mssql.shortcuts": { - "type": "object", - "description": "%mssql.shortcuts%", - "default": { - "_comment": "Short cuts must follow the format (ctrl)+(shift)+(alt)+[key]", - "event.toggleResultPane": "ctrl+alt+R", - "event.focusResultsGrid": "ctrl+alt+G", - "event.toggleMessagePane": "ctrl+alt+Y", - "event.prevGrid": "ctrl+up", - "event.nextGrid": "ctrl+down", - "event.copySelection": "ctrl+C", - "event.copyWithHeaders": "", - "event.copyAllHeaders": "", - "event.maximizeGrid": "", - "event.selectAll": "ctrl+A", - "event.saveAsJSON": "", - "event.saveAsCSV": "", - "event.saveAsExcel": "", - "event.changeColumnWidth": "ctrl+alt+S" - }, - "scope": "resource" - }, - "mssql.messagesDefaultOpen": { - "type": "boolean", - "description": "%mssql.messagesDefaultOpen%", - "default": true, - "scope": "resource" - }, - "mssql.resultsFontFamily": { - "type": "string", - "description": "%mssql.resultsFontFamily%", - "default": null, - "scope": "resource" - }, - "mssql.resultsFontSize": { - "type": [ - "number", - "null" - ], - "description": "%mssql.resultsFontSize%", - "default": null, - "scope": "resource" - }, - "mssql.saveAsCsv.includeHeaders": { - "type": "boolean", - "description": "%mssql.saveAsCsv.includeHeaders%", - "default": true, - "scope": "resource" - }, - "mssql.saveAsCsv.delimiter": { - "type": "string", - "description": "%mssql.saveAsCsv.delimiter%", - "default": ",", - "scope": "resource" - }, - "mssql.saveAsCsv.lineSeparator": { - "type": "string", - "description": "%mssql.saveAsCsv.lineSeparator%", - "default": null, - "scope": "resource" - }, - "mssql.saveAsCsv.textIdentifier": { - "type": "string", - "description": "%mssql.saveAsCsv.textIdentifier%", - "default": "\"", - "scope": "resource" - }, - "mssql.saveAsCsv.encoding": { - "type": "string", - "description": "%mssql.saveAsCsv.encoding%", - "default": "utf-8", - "scope": "resource" - }, - "mssql.copyIncludeHeaders": { - "type": "boolean", - "description": "%mssql.copyIncludeHeaders%", - "default": false, - "scope": "resource" - }, - "mssql.copyRemoveNewLine": { - "type": "boolean", - "description": "%mssql.copyRemoveNewLine%", - "default": true, - "scope": "resource" - }, - "mssql.showBatchTime": { - "type": "boolean", - "description": "%mssql.showBatchTime%", - "default": false, - "scope": "resource" - }, - "mssql.splitPaneSelection": { - "type": "string", - "description": "%mssql.splitPaneSelection%", - "default": "next", - "enum": [ - "next", - "current", - "end" - ], - "scope": "resource" - }, - "mssql.enableSqlAuthenticationProvider": { - "type": "boolean", - "description": "%mssql.enableSqlAuthenticationProvider%", - "default": true - }, - "mssql.enableConnectionPooling": { - "type": "boolean", - "description": "%mssql.enableConnectionPooling%", - "default": true - }, - "mssql.format.alignColumnDefinitionsInColumns": { - "type": "boolean", - "description": "%mssql.format.alignColumnDefinitionsInColumns%", - "default": false, - "scope": "window" - }, - "mssql.format.datatypeCasing": { - "type": "string", - "description": "%mssql.format.datatypeCasing%", - "default": "none", - "enum": [ - "none", - "uppercase", - "lowercase" - ], - "scope": "window" - }, - "mssql.format.keywordCasing": { - "type": "string", - "description": "%mssql.format.keywordCasing%", - "default": "none", - "enum": [ - "none", - "uppercase", - "lowercase" - ], - "scope": "window" - }, - "mssql.format.placeCommasBeforeNextStatement": { - "type": "boolean", - "description": "%mssql.format.placeCommasBeforeNextStatement%", - "default": false, - "scope": "window" - }, - "mssql.format.placeSelectStatementReferencesOnNewLine": { - "type": "boolean", - "description": "%mssql.format.placeSelectStatementReferencesOnNewLine%", - "default": false, - "scope": "window" - }, - "mssql.applyLocalization": { - "type": "boolean", - "description": "%mssql.applyLocalization%", - "default": false, - "scope": "window" - }, - "mssql.intelliSense.enableIntelliSense": { - "type": "boolean", - "default": true, - "description": "%mssql.intelliSense.enableIntelliSense%", - "scope": "window" - }, - "mssql.intelliSense.enableErrorChecking": { - "type": "boolean", - "default": true, - "description": "%mssql.intelliSense.enableErrorChecking%", - "scope": "window" - }, - "mssql.intelliSense.enableSuggestions": { - "type": "boolean", - "default": true, - "description": "%mssql.intelliSense.enableSuggestions%", - "scope": "window" - }, - "mssql.intelliSense.enableQuickInfo": { - "type": "boolean", - "default": true, - "description": "%mssql.intelliSense.enableQuickInfo%", - "scope": "window" - }, - "mssql.intelliSense.lowerCaseSuggestions": { - "type": "boolean", - "default": false, - "description": "%mssql.intelliSense.lowerCaseSuggestions%", - "scope": "window" - }, - "mssql.persistQueryResultTabs": { - "type": "boolean", - "default": false, - "description": "%mssql.persistQueryResultTabs%", - "scope": "window" - }, - "mssql.enableQueryHistoryCapture": { - "type": "boolean", - "default": true, - "description": "%mssql.enableQueryHistoryCapture%", - "scope": "window" - }, - "mssql.enableQueryHistoryFeature": { - "type": "boolean", - "default": true, - "description": "%mssql.enableQueryHistoryFeature%", - "scope": "window" - }, - "mssql.tracingLevel": { - "type": "string", - "description": "%mssql.tracingLevel%", - "default": "Critical", - "enum": [ - "All", - "Off", - "Critical", - "Error", - "Warning", - "Information", - "Verbose" - ] - }, - "mssql.piiLogging": { - "type": "boolean", - "default": false, - "description": "%mssql.piiLogging%" - }, - "mssql.logRetentionMinutes": { - "type": "number", - "default": 10080, - "description": "%mssql.logRetentionMinutes%" - }, - "mssql.logFilesRemovalLimit": { - "type": "number", - "default": 100, - "description": "%mssql.logFilesRemovalLimit%" - }, - "mssql.query.displayBitAsNumber": { - "type": "boolean", - "default": true, - "description": "%mssql.query.displayBitAsNumber%", - "scope": "window" - }, - "mssql.query.maxCharsToStore": { - "type": "number", - "default": 65535, - "description": "%mssql.query.maxCharsToStore%" - }, - "mssql.query.maxXmlCharsToStore": { - "type": "number", - "default": 2097152, - "description": "%mssql.query.maxXmlCharsToStore%" - }, - "mssql.queryHistoryLimit": { - "type": "number", - "default": 20, - "description": "%mssql.queryHistoryLimit%", - "scope": "window" - }, - "mssql.query.rowCount": { - "type": "number", - "default": 0, - "description": "%mssql.query.setRowCount%" - }, - "mssql.query.textSize": { - "type": "number", - "default": 2147483647, - "description": "%mssql.query.textSize%" - }, - "mssql.query.executionTimeout": { - "type": "number", - "default": 0, - "description": "%mssql.query.executionTimeout%" - }, - "mssql.query.noCount": { - "type": "boolean", - "default": false, - "description": "%mssql.query.noCount%" - }, - "mssql.query.noExec": { - "type": "boolean", - "default": false, - "description": "%mssql.query.noExec%" - }, - "mssql.query.parseOnly": { - "type": "boolean", - "default": false, - "description": "%mssql.query.parseOnly%" - }, - "mssql.query.arithAbort": { - "type": "boolean", - "default": true, - "description": "%mssql.query.arithAbort%" - }, - "mssql.query.statisticsTime": { - "type": "boolean", - "default": false, - "description": "%mssql.query.statisticsTime%" - }, - "mssql.query.statisticsIO": { - "type": "boolean", - "default": false, - "description": "%mssql.query.statisticsIO%" - }, - "mssql.query.xactAbortOn": { - "type": "boolean", - "default": false, - "description": "%mssql.query.xactAbortOn%" - }, - "mssql.query.transactionIsolationLevel": { - "enum": [ - "READ COMMITTED", - "READ UNCOMMITTED", - "REPEATABLE READ", - "SERIALIZABLE" - ], - "default": "READ COMMITTED", - "description": "%mssql.query.transactionIsolationLevel%" - }, - "mssql.query.deadlockPriority": { - "enum": [ - "Normal", - "Low" - ], - "default": "Normal", - "description": "%mssql.query.deadlockPriority%" - }, - "mssql.query.lockTimeout": { - "type": "number", - "default": -1, - "description": "%mssql.query.lockTimeout%" - }, - "mssql.query.queryGovernorCostLimit": { - "type": "number", - "default": -1, - "description": "%mssql.query.queryGovernorCostLimit%" - }, - "mssql.query.ansiDefaults": { - "type": "boolean", - "default": false, - "description": "%mssql.query.ansiDefaults%" - }, - "mssql.query.quotedIdentifier": { - "type": "boolean", - "default": true, - "description": "%mssql.query.quotedIdentifier%" - }, - "mssql.query.ansiNullDefaultOn": { - "type": "boolean", - "default": true, - "description": "%mssql.query.ansiNullDefaultOn%" - }, - "mssql.query.implicitTransactions": { - "type": "boolean", - "default": false, - "description": "%mssql.query.implicitTransactions%" - }, - "mssql.query.cursorCloseOnCommit": { - "type": "boolean", - "default": false, - "description": "%mssql.query.cursorCloseOnCommit%" - }, - "mssql.query.ansiPadding": { - "type": "boolean", - "default": true, - "description": "%mssql.query.ansiPadding%" - }, - "mssql.query.ansiWarnings": { - "type": "boolean", - "default": true, - "description": "%mssql.query.ansiWarnings%" - }, - "mssql.query.ansiNulls": { - "type": "boolean", - "default": true, - "description": "%mssql.query.ansiNulls%" - }, - "mssql.query.alwaysEncryptedParameterization": { - "type": "boolean", - "default": false, - "description": "%mssql.query.alwaysEncryptedParameterization%" - }, - "mssql.ignorePlatformWarning": { - "type": "boolean", - "description": "%mssql.ignorePlatformWarning%", - "default": false - }, - "mssql.objectExplorer.groupBySchema": { - "type": "boolean", - "description": "%mssql.objectExplorer.groupBySchema%", - "default": false - }, - "mssql.objectExplorer.expandTimeout": { - "type": "number", - "default": 45, - "minimum": 1, - "description": "%mssql.objectExplorer.expandTimeout%" - } - } + "description": "%mssql.resultsFontSize%", + "default": null, + "scope": "resource" + }, + "mssql.saveAsCsv.includeHeaders": { + "type": "boolean", + "description": "%mssql.saveAsCsv.includeHeaders%", + "default": true, + "scope": "resource" + }, + "mssql.saveAsCsv.delimiter": { + "type": "string", + "description": "%mssql.saveAsCsv.delimiter%", + "default": ",", + "scope": "resource" + }, + "mssql.saveAsCsv.lineSeparator": { + "type": "string", + "description": "%mssql.saveAsCsv.lineSeparator%", + "default": null, + "scope": "resource" + }, + "mssql.saveAsCsv.textIdentifier": { + "type": "string", + "description": "%mssql.saveAsCsv.textIdentifier%", + "default": "\"", + "scope": "resource" + }, + "mssql.saveAsCsv.encoding": { + "type": "string", + "description": "%mssql.saveAsCsv.encoding%", + "default": "utf-8", + "scope": "resource" + }, + "mssql.copyIncludeHeaders": { + "type": "boolean", + "description": "%mssql.copyIncludeHeaders%", + "default": false, + "scope": "resource" + }, + "mssql.copyRemoveNewLine": { + "type": "boolean", + "description": "%mssql.copyRemoveNewLine%", + "default": true, + "scope": "resource" + }, + "mssql.showBatchTime": { + "type": "boolean", + "description": "%mssql.showBatchTime%", + "default": false, + "scope": "resource" + }, + "mssql.splitPaneSelection": { + "type": "string", + "description": "%mssql.splitPaneSelection%", + "default": "next", + "enum": [ + "next", + "current", + "end" + ], + "scope": "resource" + }, + "mssql.enableSqlAuthenticationProvider": { + "type": "boolean", + "description": "%mssql.enableSqlAuthenticationProvider%", + "default": true + }, + "mssql.enableConnectionPooling": { + "type": "boolean", + "description": "%mssql.enableConnectionPooling%", + "default": true + }, + "mssql.format.alignColumnDefinitionsInColumns": { + "type": "boolean", + "description": "%mssql.format.alignColumnDefinitionsInColumns%", + "default": false, + "scope": "window" + }, + "mssql.format.datatypeCasing": { + "type": "string", + "description": "%mssql.format.datatypeCasing%", + "default": "none", + "enum": [ + "none", + "uppercase", + "lowercase" + ], + "scope": "window" + }, + "mssql.format.keywordCasing": { + "type": "string", + "description": "%mssql.format.keywordCasing%", + "default": "none", + "enum": [ + "none", + "uppercase", + "lowercase" + ], + "scope": "window" + }, + "mssql.format.placeCommasBeforeNextStatement": { + "type": "boolean", + "description": "%mssql.format.placeCommasBeforeNextStatement%", + "default": false, + "scope": "window" + }, + "mssql.format.placeSelectStatementReferencesOnNewLine": { + "type": "boolean", + "description": "%mssql.format.placeSelectStatementReferencesOnNewLine%", + "default": false, + "scope": "window" + }, + "mssql.applyLocalization": { + "type": "boolean", + "description": "%mssql.applyLocalization%", + "default": false, + "scope": "window" + }, + "mssql.intelliSense.enableIntelliSense": { + "type": "boolean", + "default": true, + "description": "%mssql.intelliSense.enableIntelliSense%", + "scope": "window" + }, + "mssql.intelliSense.enableErrorChecking": { + "type": "boolean", + "default": true, + "description": "%mssql.intelliSense.enableErrorChecking%", + "scope": "window" + }, + "mssql.intelliSense.enableSuggestions": { + "type": "boolean", + "default": true, + "description": "%mssql.intelliSense.enableSuggestions%", + "scope": "window" + }, + "mssql.intelliSense.enableQuickInfo": { + "type": "boolean", + "default": true, + "description": "%mssql.intelliSense.enableQuickInfo%", + "scope": "window" + }, + "mssql.intelliSense.lowerCaseSuggestions": { + "type": "boolean", + "default": false, + "description": "%mssql.intelliSense.lowerCaseSuggestions%", + "scope": "window" + }, + "mssql.persistQueryResultTabs": { + "type": "boolean", + "default": false, + "description": "%mssql.persistQueryResultTabs%", + "scope": "window" + }, + "mssql.enableQueryHistoryCapture": { + "type": "boolean", + "default": true, + "description": "%mssql.enableQueryHistoryCapture%", + "scope": "window" + }, + "mssql.enableQueryHistoryFeature": { + "type": "boolean", + "default": true, + "description": "%mssql.enableQueryHistoryFeature%", + "scope": "window" + }, + "mssql.tracingLevel": { + "type": "string", + "description": "%mssql.tracingLevel%", + "default": "Critical", + "enum": [ + "All", + "Off", + "Critical", + "Error", + "Warning", + "Information", + "Verbose" + ] + }, + "mssql.piiLogging": { + "type": "boolean", + "default": false, + "description": "%mssql.piiLogging%" + }, + "mssql.logRetentionMinutes": { + "type": "number", + "default": 10080, + "description": "%mssql.logRetentionMinutes%" + }, + "mssql.logFilesRemovalLimit": { + "type": "number", + "default": 100, + "description": "%mssql.logFilesRemovalLimit%" + }, + "mssql.query.displayBitAsNumber": { + "type": "boolean", + "default": true, + "description": "%mssql.query.displayBitAsNumber%", + "scope": "window" + }, + "mssql.query.maxCharsToStore": { + "type": "number", + "default": 65535, + "description": "%mssql.query.maxCharsToStore%" + }, + "mssql.query.maxXmlCharsToStore": { + "type": "number", + "default": 2097152, + "description": "%mssql.query.maxXmlCharsToStore%" + }, + "mssql.queryHistoryLimit": { + "type": "number", + "default": 20, + "description": "%mssql.queryHistoryLimit%", + "scope": "window" + }, + "mssql.query.rowCount": { + "type": "number", + "default": 0, + "description": "%mssql.query.setRowCount%" + }, + "mssql.query.textSize": { + "type": "number", + "default": 2147483647, + "description": "%mssql.query.textSize%" + }, + "mssql.query.executionTimeout": { + "type": "number", + "default": 0, + "description": "%mssql.query.executionTimeout%" + }, + "mssql.query.noCount": { + "type": "boolean", + "default": false, + "description": "%mssql.query.noCount%" + }, + "mssql.query.noExec": { + "type": "boolean", + "default": false, + "description": "%mssql.query.noExec%" + }, + "mssql.query.parseOnly": { + "type": "boolean", + "default": false, + "description": "%mssql.query.parseOnly%" + }, + "mssql.query.arithAbort": { + "type": "boolean", + "default": true, + "description": "%mssql.query.arithAbort%" + }, + "mssql.query.statisticsTime": { + "type": "boolean", + "default": false, + "description": "%mssql.query.statisticsTime%" + }, + "mssql.query.statisticsIO": { + "type": "boolean", + "default": false, + "description": "%mssql.query.statisticsIO%" + }, + "mssql.query.xactAbortOn": { + "type": "boolean", + "default": false, + "description": "%mssql.query.xactAbortOn%" + }, + "mssql.query.transactionIsolationLevel": { + "enum": [ + "READ COMMITTED", + "READ UNCOMMITTED", + "REPEATABLE READ", + "SERIALIZABLE" + ], + "default": "READ COMMITTED", + "description": "%mssql.query.transactionIsolationLevel%" + }, + "mssql.query.deadlockPriority": { + "enum": [ + "Normal", + "Low" + ], + "default": "Normal", + "description": "%mssql.query.deadlockPriority%" + }, + "mssql.query.lockTimeout": { + "type": "number", + "default": -1, + "description": "%mssql.query.lockTimeout%" + }, + "mssql.query.queryGovernorCostLimit": { + "type": "number", + "default": -1, + "description": "%mssql.query.queryGovernorCostLimit%" + }, + "mssql.query.ansiDefaults": { + "type": "boolean", + "default": false, + "description": "%mssql.query.ansiDefaults%" + }, + "mssql.query.quotedIdentifier": { + "type": "boolean", + "default": true, + "description": "%mssql.query.quotedIdentifier%" + }, + "mssql.query.ansiNullDefaultOn": { + "type": "boolean", + "default": true, + "description": "%mssql.query.ansiNullDefaultOn%" + }, + "mssql.query.implicitTransactions": { + "type": "boolean", + "default": false, + "description": "%mssql.query.implicitTransactions%" + }, + "mssql.query.cursorCloseOnCommit": { + "type": "boolean", + "default": false, + "description": "%mssql.query.cursorCloseOnCommit%" + }, + "mssql.query.ansiPadding": { + "type": "boolean", + "default": true, + "description": "%mssql.query.ansiPadding%" + }, + "mssql.query.ansiWarnings": { + "type": "boolean", + "default": true, + "description": "%mssql.query.ansiWarnings%" + }, + "mssql.query.ansiNulls": { + "type": "boolean", + "default": true, + "description": "%mssql.query.ansiNulls%" + }, + "mssql.query.alwaysEncryptedParameterization": { + "type": "boolean", + "default": false, + "description": "%mssql.query.alwaysEncryptedParameterization%" + }, + "mssql.ignorePlatformWarning": { + "type": "boolean", + "description": "%mssql.ignorePlatformWarning%", + "default": false + }, + "mssql.objectExplorer.groupBySchema": { + "type": "boolean", + "description": "%mssql.objectExplorer.groupBySchema%", + "default": false + }, + "mssql.objectExplorer.expandTimeout": { + "type": "number", + "default": 45, + "minimum": 1, + "description": "%mssql.objectExplorer.expandTimeout%" } + } } + } }