-
-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
b1e982f
commit 3e7bbb1
Showing
15 changed files
with
95 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters