diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..48de9ae4c --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,32 @@ +{ + "name": "SQLTools", + "image": "mcr.microsoft.com/devcontainers/base:jammy", + + // Features to add to the dev container. More info: https://containers.dev/implementors/features. + "features": { + "ghcr.io/devcontainers/features/node:1": {} + }, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created + "postCreateCommand": "./.devcontainer/postCreateCommand.sh", + + // But at that point the local .gitconfig hasn't yet been copied + // (see https://github.com/microsoft/vscode-remote-release/issues/6810#issuecomment-1310980232). + // So use 'postStartCommand' for commands which write to that file. + "postStartCommand": "./.devcontainer/postStartCommand.sh", + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "settings": { + "extensions.ignoreRecommendations": true + } + } + } + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh new file mode 100755 index 000000000..64dfbcf08 --- /dev/null +++ b/.devcontainer/postCreateCommand.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +echo +echo '*** Ignore the VS Code notification about opening a workspace until after this script completes.' +echo +echo '*** If setup progress bars cause linewrap, widen your terminal.' +echo +echo 'Setup will continue in 5 seconds...' +sleep 5 + +# Suppress warnings triggered by engine value package.json of a VS Code extension +yarn config set ignore-engines true -g + +# We have to build with Node.js version 14 +. $NVM_DIR/nvm.sh +nvm install 14 + +# Appending this to .bashrc means shells opened within the project tree will use the Node.js version specified in .nvmrc in the project root, +# provided no overriding .nvmrc is found between the shell's cwd and that root folder. +echo nvm use >> $HOME/.bashrc + +# Initialize for building +yarn diff --git a/.devcontainer/postStartCommand.sh b/.devcontainer/postStartCommand.sh new file mode 100755 index 000000000..4281c5ccc --- /dev/null +++ b/.devcontainer/postStartCommand.sh @@ -0,0 +1,4 @@ +#!/bin/bash +git config --global --add safe.directory /workspaces/vscode-sqltools + +echo 'To build all VSIXes: npm run pack:all' diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..6313b56c5 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..8351c1939 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +14 diff --git a/docs/src/pages/en/changelog.mdx b/docs/src/pages/en/changelog.mdx index baae2ec11..5b4b18b21 100644 --- a/docs/src/pages/en/changelog.mdx +++ b/docs/src/pages/en/changelog.mdx @@ -5,6 +5,18 @@ layout: ../../layouts/MainLayout.astro order: 10 --- +## v0.26 + +### v0.26.0 - (Nov 10, 2022) + +See https://github.com/mtxr/vscode-sqltools/releases/tag/v0.26.0 + +## v0.25 + +### v0.25.1 - (Sep 16, 2022) + +See https://github.com/mtxr/vscode-sqltools/releases/tag/v0.25.1 + ## v0.24 ### v0.24.0 - (Aug 10, 2022) diff --git a/docs/src/pages/en/drivers/sq-lite.mdx b/docs/src/pages/en/drivers/sq-lite.mdx index e9a5f29de..e42f93757 100644 --- a/docs/src/pages/en/drivers/sq-lite.mdx +++ b/docs/src/pages/en/drivers/sq-lite.mdx @@ -10,9 +10,9 @@ import RenderConnectionOptions from '../../../components/RenderConnectionOptions ## 1. Prerequisites -- Node.js 10 or newer +- Have Node.js (version 10 or newer) and npm installed. Some instructions are available [here](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm). - Configure the `sqltools.useNodeRuntime` setting. It can be set to `true` to perform auto-detect of your Node runtime, or to the full path of the runtime. - - For successful auto-detect on Windows, VS Code must be configured to use `PowerShell` as its default terminal shell. If set to `Command Prompt` or `Windows PowerShell`, auto-detect will fail. + - For successful auto-detect on Windows we recommend that VS Code is be configured to use `PowerShell` as its default terminal shell. If set to `Command Prompt` or `Windows PowerShell`, auto-detect may fail. - An example of a string value for a Windows environment is `"C:\\Program Files\\nodejs\\node.exe"`. Notice how backslashes in a JSON string have to be doubled. ```json @@ -22,7 +22,7 @@ import RenderConnectionOptions from '../../../components/RenderConnectionOptions } ``` -On first use the SQLite driver extension prompts to install the [node-sqlite3](https://www.npmjs.com/package/sqlite3)@5.1.1 package. During installation this package downloads its platform-specific prebuilt binaries. See the package documentation for details. +Upon first use the SQLite driver extension prompts for permission to install the [node-sqlite3](https://www.npmjs.com/package/sqlite3)@5.1.1 package. During installation this package downloads its platform-specific prebuilt binaries. See the package documentation for details. ## 2. Connections diff --git a/packages/driver.mysql/README.md b/packages/driver.mysql/README.md index afdb79f01..df4678a18 100644 --- a/packages/driver.mysql/README.md +++ b/packages/driver.mysql/README.md @@ -4,6 +4,10 @@ This package is part of [vscode-sqltools](https://vscode-sqltools.mteixeira.dev/ ## Changelog +### 0.4.1 + +- Fix table and column searching. [#1015](https://github.com/mtxr/vscode-sqltools/pull/1015) + ### 0.4.0 - Add version 8 keywords. [#841](https://github.com/mtxr/vscode-sqltools/pull/841) - thanks [@mojoaxel](https://github.com/mojoaxel). diff --git a/packages/driver.mysql/package.json b/packages/driver.mysql/package.json index b474bf4c7..c3492e912 100644 --- a/packages/driver.mysql/package.json +++ b/packages/driver.mysql/package.json @@ -2,7 +2,7 @@ "name": "sqltools-driver-mysql", "displayName": "SQLTools MySQL/MariaDB", "description": "SQLTools MySQL/MariaDB", - "version": "0.4.1-SNAPSHOT", + "version": "0.4.1", "engines": { "vscode": "^1.42.0" }, diff --git a/packages/driver.pg/README.md b/packages/driver.pg/README.md index 4ddb53015..b573159bf 100644 --- a/packages/driver.pg/README.md +++ b/packages/driver.pg/README.md @@ -4,6 +4,11 @@ This package is part of [vscode-sqltools](https://vscode-sqltools.mteixeira.dev/ ## Changelog +### 0.4.0 + +- No longer promote as an official driver for Redshift. [#991](https://github.com/mtxr/vscode-sqltools/pull/991) +- Update Cockroach icons. + ### 0.3.0 - Add Cockroach as an alias. Thanks [@ultram4rine](https://github.com/ultram4rine). diff --git a/packages/driver.pg/package.json b/packages/driver.pg/package.json index 78f398e62..33cef628d 100644 --- a/packages/driver.pg/package.json +++ b/packages/driver.pg/package.json @@ -2,7 +2,7 @@ "name": "sqltools-driver-pg", "displayName": "SQLTools PostgreSQL/Cockroach Driver", "description": "SQLTools PostgreSQL/Cockroach Driver", - "version": "0.3.1-dev", + "version": "0.4.0", "engines": { "vscode": "^1.42.0" }, diff --git a/packages/driver.sqlite/README.md b/packages/driver.sqlite/README.md index 81e1c34e1..74ecdf55c 100644 --- a/packages/driver.sqlite/README.md +++ b/packages/driver.sqlite/README.md @@ -2,8 +2,14 @@ This package is part of [vscode-sqltools](https://vscode-sqltools.mteixeira.dev/?umd_source=repository&utm_medium=readme&utm_campaign=sqlite) extension. +See [SQLite Start Guide](https://vscode-sqltools.mteixeira.dev/en/drivers/sq-lite/) for instructions, including prerequisites. + ## Changelog +### 0.4.1 + + - Link from README to Start Guide (see above). + ### 0.4.0 - Install dependencies and report errors during connection test. [#963](https://github.com/mtxr/vscode-sqltools/pull/963) diff --git a/packages/driver.sqlite/package.json b/packages/driver.sqlite/package.json index 004561c7d..b6a9ea407 100644 --- a/packages/driver.sqlite/package.json +++ b/packages/driver.sqlite/package.json @@ -2,7 +2,7 @@ "name": "sqltools-driver-sqlite", "displayName": "SQLTools SQLite", "description": "SQLTools SQLite", - "version": "0.4.0", + "version": "0.4.1", "engines": { "vscode": "^1.42.0" }, diff --git a/packages/extension/package.json b/packages/extension/package.json index 7e33be1ff..1ad9f62a7 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -2,7 +2,7 @@ "name": "sqltools", "displayName": "SQLTools", "description": "Connecting users to many of the most commonly used databases. Welcome to database management done right.", - "version": "0.25.2-SNAPSHOT", + "version": "0.26.0", "publisher": "mtxr", "license": "MIT", "preview": false, diff --git a/test/docker/mssql/1.create-some-stuff.sql b/test/docker/mssql/1.create-some-stuff.sql index 42ad66a8c..7dbb8d47e 100644 --- a/test/docker/mssql/1.create-some-stuff.sql +++ b/test/docker/mssql/1.create-some-stuff.sql @@ -1,8 +1,5 @@ -- Extracted from w3schools -CREATE SCHEMA test_schema -AUTHORIZATION dbo; - CREATE TABLE ACCOUNTABILITY ( ID INT PRIMARY KEY, REF_NAME VARCHAR (50)