Skip to content

Commit 01d51cb

Browse files
JustinGroteJustin Grote
andauthored
Add VSCode Launch and Tasks (#290)
* Add VSCode Launch and Tasks * Fix: Errant Comma Co-authored-by: Justin Grote <[email protected]>
1 parent 2baac5d commit 01d51cb

File tree

4 files changed

+101
-0
lines changed

4 files changed

+101
-0
lines changed

.vscode/extensions.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
// List of extensions which should be recommended for users of this workspace.
5+
"recommendations": [
6+
"ms-dotnettools.csharp",
7+
"ms-vscode.powershell-preview",
8+
"patcx.vscode-nuget-gallery",
9+
"fudge.auto-using"
10+
],
11+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
12+
"unwantedRecommendations": [
13+
"ms-vscode.powershell"
14+
]
15+
}

.vscode/launch.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug PSModule",
6+
"type": "coreclr",
7+
"request": "launch",
8+
"preLaunchTask": "publish",
9+
"program": "pwsh",
10+
"args": [
11+
"-noprofile",
12+
"-noexit",
13+
"-c",
14+
"Import-Module ${workspaceFolder}/out/PowerShellGet.dll -Verbose"
15+
],
16+
"cwd": "${workspaceFolder}",
17+
"console": "externalTerminal",
18+
"stopAtEntry": false,
19+
"logging": {
20+
"engineLogging": false,
21+
"moduleLoad": false,
22+
"exceptions": false,
23+
"browserStdOut": false
24+
}
25+
},
26+
{
27+
"name": ".NET Core Attach",
28+
"type": "coreclr",
29+
"request": "attach",
30+
"processId": "${command:pickProcess}"
31+
}
32+
]
33+
}

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"csharp.semanticHighlighting.enabled": true,
3+
"omnisharp.enableEditorConfigSupport": true,
4+
"omnisharp.enableRoslynAnalyzers": true
5+
}

.vscode/tasks.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "build",
8+
"command": "dotnet",
9+
"type": "shell",
10+
"args": [
11+
"build",
12+
"src/code",
13+
// Ask dotnet build to generate full paths for file names.
14+
"/property:GenerateFullPaths=true",
15+
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
16+
"/consoleloggerparameters:NoSummary"
17+
],
18+
"group": "build",
19+
"presentation": {
20+
"revealProblems": "onProblem",
21+
"clear": true,
22+
},
23+
"problemMatcher": "$msCompile"
24+
},
25+
{
26+
"label": "publish",
27+
"command": "dotnet",
28+
"type": "shell",
29+
"args": [
30+
"publish",
31+
"src/code",
32+
"-o",
33+
"out",
34+
"--framework",
35+
"netstandard2.0",
36+
// Ask dotnet build to generate full paths for file names.
37+
"/property:GenerateFullPaths=true",
38+
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
39+
"/consoleloggerparameters:NoSummary"
40+
],
41+
"group": "build",
42+
"presentation": {
43+
"reveal": "silent"
44+
},
45+
"problemMatcher": "$msCompile"
46+
}
47+
]
48+
}

0 commit comments

Comments
 (0)