From 43a283fdc7adaf8b191f83c0c71c7e8a85baa79a Mon Sep 17 00:00:00 2001 From: Josh Hendricks Date: Tue, 31 Oct 2023 05:23:27 +0000 Subject: [PATCH] chore: Add launch and default build/test configs --- .vscode/launch.json | 18 ++++++++++++++++++ .vscode/tasks.json | 31 +++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..112e9a77 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "PowerShell: Debug Module", + "type": "PowerShell", + "request": "launch", + "script": "Import-Module -Force ${workspaceFolder}/ImportExcel/ImportExcel.psd1", + }, + { + "name": "PowerShell: Launch Current File", + "type": "PowerShell", + "request": "launch", + "script": "if ($null -eq (Get-Module ImportExcel)) { Import-Module ${workspaceFolder}/ImportExcel/ImportExcel.psd1 }; ${file}", + "cwd": "${cwd}" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..f6885ec0 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,31 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "${workspaceFolder}\\build.ps1 | Out-Null", + "type": "shell", + "args": [], + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "reveal": "silent" + } + }, + { + "label": "test", + "command": "${workspaceFolder}\\RunTests.ps1", + "type": "shell", + "args": ["-NoIsolation"], + "group": { + "kind": "test", + "isDefault": true + }, + "presentation": { + "reveal": "always" + } + } + ] +} \ No newline at end of file