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
#!/usr/bin/env bash | |
if [ "$1" == "--help" ]; then | |
cat << EOF | |
Run from project folder, auto opens vscode in some mode depending on folder contents: | |
* Folder contains .devcontainer/devcontainer.json and <name>.code-workspace file: vscode opens in devcontainer, workspace file is loaded | |
* Folder contains .devcontainer/devcontainer.json: vscode opens in devcontainer | |
* Folder contains <name>.code-workspace file: Workspace is opened in vscode |