Skip to content

Commit d8ea9cd

Browse files
authored
Update VSCode settings and add demo server configuration (#4115)
* Update VSCode Settings * Add VSCode Profile * Add Run Demo Server
1 parent daaacf0 commit d8ea9cd

File tree

6 files changed

+139
-2
lines changed

6 files changed

+139
-2
lines changed

.vscode/VSCode-Profile-CSharp.code-profile

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"editorconfig.editorconfig",
4+
"ms-dotnettools.csdevkit"
5+
]
6+
}

.vscode/keybindings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[
2+
{
3+
"key": "ctrl+b",
4+
"command": "workbench.action.tasks.runTask",
5+
"args": "build-current-project",
6+
"when": "editorTextFocus"
7+
},
8+
{
9+
"key": "ctrl+shift+b",
10+
"command": "workbench.action.tasks.runTask",
11+
"args": "build-solution"
12+
}
13+
]

.vscode/launch.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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": "Watch Demo Server",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "",
12+
"program": "dotnet",
13+
"args": [
14+
"watch",
15+
"run",
16+
"--project",
17+
"Examples/Demo/Server/FluentUI.Demo.Server.csproj",
18+
"--framework",
19+
"net9.0",
20+
"--launch-profile",
21+
"FluentUI.Demo.Server",
22+
"-v:detailed"
23+
],
24+
"cwd": "${workspaceFolder}",
25+
"console": "integratedTerminal",
26+
"launchBrowser": {
27+
"enabled": true
28+
},
29+
"stopAtEntry": false
30+
},
31+
{
32+
"name": "Run Demo Server",
33+
"type": "coreclr",
34+
"request": "launch",
35+
"preLaunchTask": "",
36+
"program": "dotnet",
37+
"args": [
38+
"run",
39+
"--project",
40+
"Examples/Demo/Server/FluentUI.Demo.Server.csproj",
41+
"--framework",
42+
"net9.0",
43+
"--launch-profile",
44+
"FluentUI.Demo.Server",
45+
"-v:detailed"
46+
],
47+
"cwd": "${workspaceFolder}",
48+
"console": "integratedTerminal",
49+
"launchBrowser": {
50+
"enabled": true
51+
},
52+
"stopAtEntry": false
53+
}
54+
]
55+
}

.vscode/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"dotnet.defaultSolution": "Microsoft.FluentUI.sln",
3-
"azure-pipelines.1ESPipelineTemplatesSchemaFile": true
2+
"dotnet.defaultSolution": "Microsoft.FluentUI.sln"
43
}

.vscode/tasks.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
// Ctrl+Shift+B → To run the default build task (build-solution)
5+
{
6+
"label": "build-solution",
7+
"type": "shell",
8+
"command": "dotnet",
9+
"args": [
10+
"build",
11+
"Microsoft.FluentUI.sln", // 👈 Update this line with your default solution file name
12+
"--configuration",
13+
"Debug"
14+
],
15+
"group": {
16+
"kind": "build",
17+
"isDefault": true
18+
},
19+
"problemMatcher": "$msCompile",
20+
"presentation": {
21+
"echo": true,
22+
"reveal": "always",
23+
"focus": false,
24+
"panel": "shared",
25+
"showReuseMessage": true,
26+
"clear": false
27+
},
28+
"options": {
29+
"cwd": "${workspaceFolder}"
30+
}
31+
},
32+
// Ctrl+B → Build current project based on active file
33+
{
34+
"label": "build-current-project",
35+
"type": "shell",
36+
"command": "powershell.exe",
37+
"args": [
38+
"-NoProfile",
39+
"-ExecutionPolicy",
40+
"Bypass",
41+
"-File",
42+
"${workspaceFolder}/.vscode/scripts/build-current-project.ps1"
43+
],
44+
"group": "build",
45+
"problemMatcher": "$msCompile",
46+
"presentation": {
47+
"echo": true,
48+
"reveal": "always",
49+
"focus": false,
50+
"panel": "shared",
51+
"showReuseMessage": true,
52+
"clear": false
53+
},
54+
"options": {
55+
"cwd": "${workspaceFolder}",
56+
"env": {
57+
"VSCODE_ACTIVE_FILE": "${file}",
58+
"WORKSPACE_FOLDER": "${workspaceFolder}"
59+
}
60+
}
61+
}
62+
]
63+
}

0 commit comments

Comments
 (0)