Skip to content

Commit ea25036

Browse files
author
Justin Grote
committed
Add VSCode Launch and Tasks
1 parent 2baac5d commit ea25036

File tree

4 files changed

+105
-0
lines changed

4 files changed

+105
-0
lines changed

.vscode/extensions.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
5+
// List of extensions which should be recommended for users of this workspace.
6+
"recommendations": [
7+
"ms-dotnettools.csharp",
8+
"ms-vscode.powershell-preview",
9+
"patcx.vscode-nuget-gallery",
10+
"fudge.auto-using"
11+
],
12+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
13+
"unwantedRecommendations": [
14+
"ms-vscode.powershell"
15+
]
16+
}

.vscode/launch.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Debug PSModule",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "publish",
12+
"program": "pwsh",
13+
"args": [
14+
"-noprofile",
15+
"-noexit",
16+
"-c",
17+
"Import-Module ${workspaceFolder}/out/PowerShellGet.dll -Verbose"
18+
],
19+
"cwd": "${workspaceFolder}",
20+
"console": "externalTerminal",
21+
"stopAtEntry": false,
22+
"logging": {
23+
"engineLogging": false,
24+
"moduleLoad": false,
25+
"exceptions": false,
26+
"browserStdOut": false
27+
},
28+
},
29+
{
30+
"name": ".NET Core Attach",
31+
"type": "coreclr",
32+
"request": "attach",
33+
"processId": "${command:pickProcess}"
34+
}
35+
]
36+
}

.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)