Skip to content

Commit

Permalink
Prepare v0.26.0 release (#1033)
Browse files Browse the repository at this point in the history
* Prepare v0.26.0 release

* Add files for an experimental devcontainer in which to build VSIXes

* devcontainer: use postStartCommand rather than postCreateCommand

* 💄

* Use both postCreateCommand and postStartCommand

* Add .gitattributes to solve line-ending issues when using WSL devcontainer

* Set owner executable permission on post*Command.sh files

* Try to ensure use of node 14 when building

* Run yarn during postCreate step

* Polish devcontainer setup experience

* Display the command that will build all VSIXes

* Give the devcontainer a better name

* Fix a testing script for MSSQL
  • Loading branch information
gjsjohnmurray authored Nov 11, 2022
1 parent b1e982f commit 3e7bbb1
Show file tree
Hide file tree
Showing 15 changed files with 95 additions and 10 deletions.
32 changes: 32 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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"
}
23 changes: 23 additions & 0 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions .devcontainer/postStartCommand.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
git config --global --add safe.directory /workspaces/vscode-sqltools

echo 'To build all VSIXes: npm run pack:all'
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14
12 changes: 12 additions & 0 deletions docs/src/pages/en/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/en/drivers/sq-lite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
4 changes: 4 additions & 0 deletions packages/driver.mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion packages/driver.mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
5 changes: 5 additions & 0 deletions packages/driver.pg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion packages/driver.pg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/driver.sqlite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/driver.sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 0 additions & 3 deletions test/docker/mssql/1.create-some-stuff.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-- Extracted from w3schools

CREATE SCHEMA test_schema
AUTHORIZATION dbo;

CREATE TABLE ACCOUNTABILITY (
ID INT PRIMARY KEY,
REF_NAME VARCHAR (50)
Expand Down

0 comments on commit 3e7bbb1

Please sign in to comment.