From ea25036b313039d5d1a084a8cf8f6293d5378977 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Thu, 22 Oct 2020 18:57:22 -0700 Subject: [PATCH 1/2] Add VSCode Launch and Tasks --- .vscode/extensions.json | 16 ++++++++++++++ .vscode/launch.json | 36 +++++++++++++++++++++++++++++++ .vscode/settings.json | 5 +++++ .vscode/tasks.json | 48 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000..bb6cc14ca --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,16 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. + // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp + + // List of extensions which should be recommended for users of this workspace. + "recommendations": [ + "ms-dotnettools.csharp", + "ms-vscode.powershell-preview", + "patcx.vscode-nuget-gallery", + "fudge.auto-using" + ], + // List of extensions recommended by VS Code that should not be recommended for users of this workspace. + "unwantedRecommendations": [ + "ms-vscode.powershell" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..a3d6cb976 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,36 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Debug PSModule", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "publish", + "program": "pwsh", + "args": [ + "-noprofile", + "-noexit", + "-c", + "Import-Module ${workspaceFolder}/out/PowerShellGet.dll -Verbose" + ], + "cwd": "${workspaceFolder}", + "console": "externalTerminal", + "stopAtEntry": false, + "logging": { + "engineLogging": false, + "moduleLoad": false, + "exceptions": false, + "browserStdOut": false + }, + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickProcess}" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..5c9c11754 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "csharp.semanticHighlighting.enabled": true, + "omnisharp.enableEditorConfigSupport": true, + "omnisharp.enableRoslynAnalyzers": true +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..1803c5415 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,48 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "shell", + "args": [ + "build", + "src/code", + // Ask dotnet build to generate full paths for file names. + "/property:GenerateFullPaths=true", + // Do not generate summary otherwise it leads to duplicate errors in Problems panel + "/consoleloggerparameters:NoSummary" + ], + "group": "build", + "presentation": { + "revealProblems": "onProblem", + "clear": true, + }, + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "shell", + "args": [ + "publish", + "src/code", + "-o", + "out", + "--framework", + "netstandard2.0", + // Ask dotnet build to generate full paths for file names. + "/property:GenerateFullPaths=true", + // Do not generate summary otherwise it leads to duplicate errors in Problems panel + "/consoleloggerparameters:NoSummary" + ], + "group": "build", + "presentation": { + "reveal": "silent" + }, + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file From bb960dbb8ae04209113ea370a256574b4136ed13 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Tue, 17 Nov 2020 09:40:03 -0800 Subject: [PATCH 2/2] Fix: Errant Comma --- .vscode/extensions.json | 3 +-- .vscode/launch.json | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index bb6cc14ca..152354da2 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,7 +1,6 @@ { // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp - // List of extensions which should be recommended for users of this workspace. "recommendations": [ "ms-dotnettools.csharp", @@ -11,6 +10,6 @@ ], // List of extensions recommended by VS Code that should not be recommended for users of this workspace. "unwantedRecommendations": [ - "ms-vscode.powershell" + "ms-vscode.powershell" ] } \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index a3d6cb976..036014deb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,7 +1,4 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { @@ -24,7 +21,7 @@ "moduleLoad": false, "exceptions": false, "browserStdOut": false - }, + } }, { "name": ".NET Core Attach",