Skip to content

Commit

Permalink
feat: Adjust vscode tasks/launch configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Nov 28, 2021
1 parent ebf0220 commit 9f8eb9c
Show file tree
Hide file tree
Showing 8 changed files with 228 additions and 108 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,45 @@
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (Uno Platform App)",
"type": "coreclr",
"request": "launch",
"program": "dotnet",
"args": [ "run" ],
"cwd": "${workspaceFolder}/UnoQuickStart.Wasm",
"env": {
}
},
{
"name": ".NET Core Debug Uno Platform WebAssembly in Chrome",
"type": "pwa-chrome",
"request": "launch",
"timeout": 30000,
// If you have changed the default port / launch URL make sure to update the expectation below
"url": "http://localhost:5000",
"webRoot": "${workspaceFolder}/UnoQuickStart.Wasm",
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}"
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": "Debug (Chrome, WebAssembly)",
"type": "pwa-chrome",
"request": "launch",
"url": "http://localhost:5000",
"webRoot": "${workspaceFolder}/UnoQuickStart.Wasm",
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"server": {
"runtimeExecutable": "dotnet",
"program": "run",
"outputCapture": "std",
"cwd": "${workspaceFolder}/UnoQuickStart.Wasm"
}
},
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": "Skia.GTK (Debug)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-skia-gtk",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/UnoQuickStart.Skia.Gtk/bin/Debug/net6.0/UnoQuickStart.Skia.Gtk.dll",
"args": [],
"env": {
"DOTNET_MODIFIABLE_ASSEMBLIES": "debug"
},
"cwd": "${workspaceFolder}/UnoQuickStart.Skia.Gtk",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "2.0.0",
"tasks": [
{
"label": "build",
"label": "build-wasm",
"command": "dotnet",
"type": "process",
"args": [
Expand All @@ -14,7 +14,7 @@
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"label": "publish-wasm",
"command": "dotnet",
"type": "process",
"args": [
Expand All @@ -26,15 +26,24 @@
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"label": "build-skia-gtk",
"command": "dotnet",
"type": "process",
"options": { "cwd": "${workspaceFolder}/UnoQuickStart.Wasm" },
"isBackground": true,
"args": [
"watch",
"run",
"${workspaceFolder}/UnoQuickStart.Wasm/UnoQuickStart.Wasm.csproj",
"build",
"${workspaceFolder}/UnoQuickStart.Skia.Gtk/UnoQuickStart.Skia.Gtk.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish-skia-gtk",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/UnoQuickStart.Skia.Gtk/UnoQuickStart.Skia.Gtk.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,45 @@
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (Uno Platform App)",
"type": "coreclr",
"request": "launch",
"program": "dotnet",
"args": [ "run" ],
"cwd": "${workspaceFolder}/UnoWinUIQuickStart.Wasm",
"env": {
}
},
{
"name": ".NET Core Debug Uno Platform WebAssembly in Chrome",
"type": "pwa-chrome",
"request": "launch",
"timeout": 30000,
// If you have changed the default port / launch URL make sure to update the expectation below
"url": "http://localhost:5000",
"webRoot": "${workspaceFolder}/UnoWinUIQuickStart.Wasm",
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}"
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": "Debug (Chrome, WebAssembly)",
"type": "pwa-chrome",
"request": "launch",
"url": "http://localhost:5000",
"webRoot": "${workspaceFolder}/UnoQuickStart.Wasm",
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"server": {
"runtimeExecutable": "dotnet",
"program": "run",
"outputCapture": "std",
"cwd": "${workspaceFolder}/UnoQuickStart.Wasm"
}
},
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": "Skia.GTK (Debug)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-skia-gtk",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/UnoQuickStart.Skia.Gtk/bin/Debug/net6.0/UnoQuickStart.Skia.Gtk.dll",
"args": [],
"env": {
"DOTNET_MODIFIABLE_ASSEMBLIES": "debug"
},
"cwd": "${workspaceFolder}/UnoQuickStart.Skia.Gtk",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,48 @@
"version": "2.0.0",
"tasks": [
{
"label": "build",
"label": "build-wasm",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/UnoWinUIQuickStart.Wasm/UnoWinUIQuickStart.Wasm.csproj",
"${workspaceFolder}/UnoQuickStart.Wasm/UnoQuickStart.Wasm.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"label": "publish-wasm",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/UnoWinUIQuickStart.Wasm/UnoWinUIQuickStart.Wasm.csproj",
"${workspaceFolder}/UnoQuickStart.Wasm/UnoQuickStart.Wasm.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"label": "build-skia-gtk",
"command": "dotnet",
"type": "process",
"options": { "cwd": "${workspaceFolder}/UnoWinUIQuickStart.Wasm" },
"isBackground": true,
"args": [
"watch",
"run",
"${workspaceFolder}/UnoWinUIQuickStart.Wasm/UnoWinUIQuickStart.Wasm.csproj",
"build",
"${workspaceFolder}/UnoQuickStart.Skia.Gtk/UnoQuickStart.Skia.Gtk.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish-skia-gtk",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/UnoQuickStart.Skia.Gtk/UnoQuickStart.Skia.Gtk.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,45 @@
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (Uno Platform App)",
"type": "coreclr",
"request": "launch",
"program": "dotnet",
"args": [ "run" ],
"cwd": "${workspaceFolder}/UnoWinUIQuickStart.Wasm",
"env": {
}
},
{
"name": ".NET Core Debug Uno Platform WebAssembly in Chrome",
"type": "pwa-chrome",
"request": "launch",
"timeout": 30000,
// If you have changed the default port / launch URL make sure to update the expectation below
"url": "http://localhost:5000",
"webRoot": "${workspaceFolder}/UnoWinUIQuickStart.Wasm",
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}"
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": "Debug (Chrome, WebAssembly)",
"type": "pwa-chrome",
"request": "launch",
"url": "http://localhost:5000",
"webRoot": "${workspaceFolder}/UnoQuickStart.Wasm",
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"server": {
"runtimeExecutable": "dotnet",
"program": "run",
"outputCapture": "std",
"cwd": "${workspaceFolder}/UnoQuickStart.Wasm"
}
},
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": "Skia.GTK (Debug)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-skia-gtk",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/UnoQuickStart.Skia.Gtk/bin/Debug/net5.0/UnoQuickStart.Skia.Gtk.dll",
"args": [],
"env": {
"DOTNET_MODIFIABLE_ASSEMBLIES": "debug"
},
"cwd": "${workspaceFolder}/UnoQuickStart.Skia.Gtk",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,48 @@
"version": "2.0.0",
"tasks": [
{
"label": "build",
"label": "build-wasm",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/UnoWinUIQuickStart.Wasm/UnoWinUIQuickStart.Wasm.csproj",
"${workspaceFolder}/UnoQuickStart.Wasm/UnoQuickStart.Wasm.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"label": "publish-wasm",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/UnoWinUIQuickStart.Wasm/UnoWinUIQuickStart.Wasm.csproj",
"${workspaceFolder}/UnoQuickStart.Wasm/UnoQuickStart.Wasm.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"label": "build-skia-gtk",
"command": "dotnet",
"type": "process",
"options": { "cwd": "${workspaceFolder}/UnoWinUIQuickStart.Wasm" },
"isBackground": true,
"args": [
"watch",
"run",
"${workspaceFolder}/UnoWinUIQuickStart.Wasm/UnoWinUIQuickStart.Wasm.csproj",
"build",
"${workspaceFolder}/UnoQuickStart.Skia.Gtk/UnoQuickStart.Skia.Gtk.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish-skia-gtk",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/UnoQuickStart.Skia.Gtk/UnoQuickStart.Skia.Gtk.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
Expand Down
Loading

0 comments on commit 9f8eb9c

Please sign in to comment.