Skip to content

Commit b545060

Browse files
authored
Merge pull request #7729 from dotnet/merge/main-to-prerelease
[automated] Merge branch 'main' => 'prerelease'
2 parents de2caae + dbb87e5 commit b545060

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+349
-271
lines changed

.vscode/launch.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
"csharp-test-profile",
2525
"${workspaceRoot}/test/lsptoolshost/integrationTests/testAssets/slnWithCsproj/.vscode/slnWithCsproj.code-workspace",
2626
"--extensionDevelopmentPath=${workspaceRoot}",
27-
"--extensionTestsPath=${workspaceRoot}/out/test/lsptoolshost/integrationTests"
27+
"--extensionTestsPath=${workspaceRoot}/out/test/lsptoolshost/integrationTests",
28+
"--log",
29+
"ms-dotnettools.csharp:trace"
2830
],
2931
"env": {
3032
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
@@ -49,7 +51,9 @@
4951
"csharp-test-profile",
5052
"${workspaceRoot}/test/lsptoolshost/integrationTests/testAssets/slnWithCsproj/.vscode/devkit_slnWithCsproj.code-workspace",
5153
"--extensionDevelopmentPath=${workspaceRoot}",
52-
"--extensionTestsPath=${workspaceRoot}/out/test/lsptoolshost/integrationTests"
54+
"--extensionTestsPath=${workspaceRoot}/out/test/lsptoolshost/integrationTests",
55+
"--log",
56+
"ms-dotnettools.csharp:trace"
5357
],
5458
"env": {
5559
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
@@ -74,7 +78,9 @@
7478
"csharp-test-profile",
7579
"${workspaceRoot}/test/razor/razorIntegrationTests/testAssets/BasicRazorApp2_1/.vscode/lsp_tools_host_BasicRazorApp2_1.code-workspace",
7680
"--extensionDevelopmentPath=${workspaceRoot}",
77-
"--extensionTestsPath=${workspaceRoot}/out/test/razor/razorIntegrationTests"
81+
"--extensionTestsPath=${workspaceRoot}/out/test/razor/razorIntegrationTests",
82+
"--log",
83+
"ms-dotnettools.csharp:trace"
7884
],
7985
"env": {
8086
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,34 @@
33
- Diagnostics related feature requests and improvements [#5951](https://github.com/dotnet/vscode-csharp/issues/5951)
44
- Debug from .csproj and .sln [#5876](https://github.com/dotnet/vscode-csharp/issues/5876)
55

6+
# 2.55.x
7+
* Update Roslyn to 4.13.0-2.24531.3 (PR: [#7722](https://github.com/dotnet/vscode-csharp/pull/7722))
8+
* Proffer project system query service (PR: [#75682](https://github.com/dotnet/roslyn/pull/75682))
9+
* Ensure discards are initially soft selected in VSCode (PR: [#75655](https://github.com/dotnet/roslyn/pull/75655))
10+
* Reduce allocations in VirtualCharService.CreateVirtualCharSequence (PR: [#75654](https://github.com/dotnet/roslyn/pull/75654))
11+
* Reduce allocations in TextDocumentStates.AddRange (PR: [#75640](https://github.com/dotnet/roslyn/pull/75640))
12+
* Update Razor to 9.0.0-preview.24531.4 (PR: [#7723](https://github.com/dotnet/vscode-csharp/pull/7723))
13+
* Fix aggregate telemetry reliability (PR: [#11134](https://github.com/dotnet/razor/pull/11134))
14+
* [FUSE] Fix OnAutoInsert and override completion and possible others (PR: [#11122](https://github.com/dotnet/razor/pull/11122))
15+
* Update Roslyn to 4.13.0-2.24529.3 (PR: [#7705](https://github.com/dotnet/vscode-csharp/pull/7705))
16+
* Update Razor to 9.0.0-preview.24528.3 (PR: [#7705](https://github.com/dotnet/vscode-csharp/pull/7705))
17+
* Update project configuration from Roslyn info (#11092) (PR: [#11092](https://github.com/dotnet/razor/pull/11092))
18+
* Reduce the amount of telemetry emitted (#11094) (PR: [#11094](https://github.com/dotnet/razor/pull/11094))
19+
* Remove tooling MvcShims (#11088) (PR: [#11088](https://github.com/dotnet/razor/pull/11088))
20+
* Switch to new log output window API and remove `dotnet.server.trace` (PR: [#7688](https://github.com/dotnet/vscode-csharp/pull/7688))
21+
* Update Roslyn to 4.13.0-1.24528.3 (PR: [#7688](https://github.com/dotnet/vscode-csharp/pull/7688))
22+
* Fix crash when 'add await' analyzers binding expressions (PR: [#75644](https://github.com/dotnet/roslyn/pull/75644))
23+
* Shorten names shown in 'pull member up' (PR: [#75643](https://github.com/dotnet/roslyn/pull/75643))
24+
* Fix inaccessible constructors shown in sighelp (PR: [#75642](https://github.com/dotnet/roslyn/pull/75642))
25+
* Allow the client to update the server logging level dynamically (PR: [#75615](https://github.com/dotnet/roslyn/pull/75615))
26+
* Bumped xamlTools to 17.13.35431.11 (PR: [#7719](https://github.com/dotnet/vscode-csharp/pull/7719))
27+
* XAML validation improvements
28+
* Validating properties of Setters, Triggers, Conditions.
29+
* Validating text values like `<Color> Red </Color>`
30+
* Warnings for obsolete values like LayoutOptions.CenterAndExpand
31+
* XAML IntelliseSense completions for ResourceDictionary.Source
32+
* XAML IntelliseSense completions for name properties like Setter.TargetName
33+
634
# 2.54.x
735
* Update debugger packages to v2.54.0 (PR: [#7691](https://github.com/dotnet/vscode-csharp/pull/7691))
836
* Only show misc files warning toast after delay. (PR: [#7689](https://github.com/dotnet/vscode-csharp/pull/7689))
@@ -23,6 +51,7 @@
2351
* Report a better error for void components (#11041) (PR: [#11041](https://github.com/dotnet/razor/pull/11041))
2452
* Ensure model directives are mapped at runtime (#11007) (PR: [#11007](https://github.com/dotnet/razor/pull/11007))
2553
* Including @using for Out-of-Scope Razor Component References (#10651) (PR: [#10651](https://github.com/dotnet/razor/pull/10651))
54+
* Make checkDevCert a modal dialogue (PR: [#7704](https://github.com/dotnet/vscode-csharp/pull/7704))
2655

2756
# 2.53.x
2857
* Update Roslyn to 4.13.0-1.24518.1 (PR: [#7670](https://github.com/dotnet/vscode-csharp/pull/7670))

SUPPORT.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,25 @@ We highly recommend using the C# extension's built-in command, `CSharp: Report a
1919

2020
The template has a section to include the `C#` output window logs. These logs are not automatically included as they may contain personal information (such as full file paths and project names), but they are key to resolving problems.
2121

22-
1. First, set `dotnet.server.trace` to `Trace` in VSCode settings
23-
![settings window showing trace option](./docs/trace_logs.png)
24-
2. Reload the window via the `Developer: Reload Window` (`workbench.action.reloadWindow`) command
22+
1. Find the `C#` output window (`View` -> `Output`) and set the log level to `Trace`
23+
![c# output window showing trace option](./docs/csharp_trace.png)
24+
2. Reproduce the issue
25+
3. In the `C#` output window, select all (e.g. `cntrl+a`) and copy paste into the issue template under the 'C# Log' section. If you need to redact file paths and other information, please do so at this time.
26+
4. Once the logs are collected, reset the window log level to `Info`
27+
28+
If the issue only reproduces on extension startup, you can set `Trace` as the default (see screenshot above), reload the window, and trace logs will be captured on startup.
29+
30+
##### C# LSP Trace Logs
31+
Sometimes we need to know exactly what requests were sent to the Roslyn language server. To capture these logs:
32+
33+
1. Set the log level to `Trace` for the `C#` output window as described above.
34+
2. Find the `C# LSP Trace Logs` output window
2535
3. Reproduce the issue
26-
4. Open the output window via `View` -> `Output` and change to the `C#` output window.
27-
5. Select all (e.g. cntrl+a) and copy paste into the issue template under the 'C# Log' section. If you need to redact file paths and other information, please do so at this time.
28-
6. Once the logs are collected, reset `dotnet.server.trace` back to `Information`
36+
4. Copy the contents of the `C# LSP Trace Logs` output window.
2937

30-
Oftentimes the C# logs are enough, but sometimes when dealing with LSP server issues, the LSP trace logs are required. These can be found by following the same steps as above, but using the `C# LSP Trace Logs` output window instead.
38+
##### Other ways to set the log level
39+
1. When launching VSCode from the CLI, pass the `--log ms-dotnettools.csharp:trace` parameter.
40+
2. Invoke the `Developer: Set Log Level` command from the VSCode command palette, find the `C#` entry and set the level.
3141

3242
#### Project loading problems
3343

docs/csharp_trace.png

10.1 KB
Loading

docs/trace_logs.png

-12.6 KB
Binary file not shown.

l10n/bundle.l10n.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
"Can't parse envFile {0} because of {1}": "Can't parse envFile {0} because of {1}",
3030
"Open envFile": "Open envFile",
3131
"Yes": "Yes",
32+
"More Information": "More Information",
33+
"Security Warning": "Security Warning",
34+
"The selected launch configuration is configured to launch a web browser but no trusted development certificate was found. Create a trusted self-signed certificate?": "The selected launch configuration is configured to launch a web browser but no trusted development certificate was found. Create a trusted self-signed certificate?",
3235
"Self-signed certificate sucessfully {0}": "Self-signed certificate sucessfully {0}",
3336
"Couldn't create self-signed certificate. {0}\ncode: {1}\nstdout: {2}": "Couldn't create self-signed certificate. {0}\ncode: {1}\nstdout: {2}",
3437
"Show Output": "Show Output",
3538
"Couldn't create self-signed certificate. See output for more information.": "Couldn't create self-signed certificate. See output for more information.",
36-
"Not Now": "Not Now",
37-
"More Information": "More Information",
38-
"The selected launch configuration is configured to launch a web browser but no trusted development certificate was found. Create a trusted self-signed certificate?": "The selected launch configuration is configured to launch a web browser but no trusted development certificate was found. Create a trusted self-signed certificate?",
3939
"No executable projects": "No executable projects",
4040
"Select the project to launch": "Select the project to launch",
4141
"Invalid project index": "Invalid project index",
@@ -50,6 +50,7 @@
5050
"WARNING": "WARNING",
5151
"The C# extension was unable to automatically decode projects in the current workspace to create a runnable launch.json file. A template launch.json file has been created as a placeholder.\n\nIf the server is currently unable to load your project, you can attempt to resolve this by restoring any missing project dependencies (example: run 'dotnet restore') and by fixing any reported errors from building the projects in your workspace.\nIf this allows the server to now load your project then --\n * Delete this file\n * Open the Visual Studio Code command palette (View->Command Palette)\n * run the command: '.NET: Generate Assets for Build and Debug'.\n\nIf your project requires a more complex launch configuration, you may wish to delete this configuration and pick a different template using the 'Add Configuration...' button at the bottom of this file.": "The C# extension was unable to automatically decode projects in the current workspace to create a runnable launch.json file. A template launch.json file has been created as a placeholder.\n\nIf the server is currently unable to load your project, you can attempt to resolve this by restoring any missing project dependencies (example: run 'dotnet restore') and by fixing any reported errors from building the projects in your workspace.\nIf this allows the server to now load your project then --\n * Delete this file\n * Open the Visual Studio Code command palette (View->Command Palette)\n * run the command: '.NET: Generate Assets for Build and Debug'.\n\nIf your project requires a more complex launch configuration, you may wish to delete this configuration and pick a different template using the 'Add Configuration...' button at the bottom of this file.",
5252
"Failed to parse tasks.json file: {0}": "Failed to parse tasks.json file: {0}",
53+
"Not Now": "Not Now",
5354
"Don't Ask Again": "Don't Ask Again",
5455
"Required assets to build and debug are missing from '{0}'. Add them?": "Required assets to build and debug are missing from '{0}'. Add them?",
5556
"Cancel": "Cancel",
@@ -147,6 +148,7 @@
147148
"project.json is no longer a supported project format for .NET Core applications.": "project.json is no longer a supported project format for .NET Core applications.",
148149
"More Detail": "More Detail",
149150
"Some projects have trouble loading. Please review the output for more details.": "Some projects have trouble loading. Please review the output for more details.",
151+
"Select project": "Select project",
150152
"There are unresolved dependencies. Please execute the restore command to continue.": "There are unresolved dependencies. Please execute the restore command to continue.",
151153
"Restore": "Restore",
152154
"Package {0} download from {1} failed integrity check. Some features may not work as expected. Please restart Visual Studio Code to retrigger the download": "Package {0} download from {1} failed integrity check. Some features may not work as expected. Please restart Visual Studio Code to retrigger the download",

package-lock.json

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
}
3838
},
3939
"defaults": {
40-
"roslyn": "4.13.0-1.24525.2",
40+
"roslyn": "4.13.0-2.24531.3",
4141
"omniSharp": "1.39.11",
42-
"razor": "9.0.0-preview.24524.4",
42+
"razor": "9.0.0-preview.24531.4",
4343
"razorOmnisharp": "7.0.0-preview.23363.1",
44-
"xamlTools": "17.13.35422.31"
44+
"xamlTools": "17.13.35431.11"
4545
},
4646
"main": "./dist/extension",
4747
"l10n": "./l10n",
@@ -132,7 +132,7 @@
132132
"@types/tmp": "0.0.33",
133133
"@types/unzipper": "^0.9.1",
134134
"@types/uuid": "^9.0.1",
135-
"@types/vscode": "1.73.0",
135+
"@types/vscode": "1.93.0",
136136
"@types/yauzl": "2.10.0",
137137
"@typescript-eslint/eslint-plugin": "^8.5.0",
138138
"@typescript-eslint/parser": "^8.5.0",
@@ -689,7 +689,7 @@
689689
}
690690
],
691691
"engines": {
692-
"vscode": "^1.75.0"
692+
"vscode": "^1.93.0"
693693
},
694694
"activationEvents": [
695695
"onDebugInitialConfigurations",
@@ -1441,21 +1441,6 @@
14411441
"default": false,
14421442
"description": "%configuration.dotnet.server.waitForDebugger%"
14431443
},
1444-
"dotnet.server.trace": {
1445-
"scope": "window",
1446-
"type": "string",
1447-
"enum": [
1448-
"Trace",
1449-
"Debug",
1450-
"Information",
1451-
"Warning",
1452-
"Error",
1453-
"Critical",
1454-
"None"
1455-
],
1456-
"default": "Information",
1457-
"description": "%configuration.dotnet.server.trace%"
1458-
},
14591444
"dotnet.server.extensionPaths": {
14601445
"scope": "machine-overridable",
14611446
"type": [
@@ -5602,4 +5587,4 @@
56025587
}
56035588
}
56045589
}
5605-
}
5590+
}

package.nls.cs.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
"configuration.dotnet.server.startTimeout": "Určuje časový limit (v ms), aby se klient úspěšně spustil a připojil k jazykovému serveru.",
7070
"configuration.dotnet.server.suppressLspErrorToasts": "Potlačí zobrazování informačních zpráv o chybách, pokud na serveru dojde k chybě, ze které se dá zotavit.",
7171
"configuration.dotnet.server.suppressMiscellaneousFilesToasts": "Potlačí zobrazování informačních upozornění, pokud je aktivní dokument mimo otevřený pracovní prostor.",
72-
"configuration.dotnet.server.trace": "Nastaví úroveň protokolování pro jazykový server",
7372
"configuration.dotnet.server.useServerGC": "Nakonfigurujte jazykový server tak, aby používal uvolňování paměti serveru .NET. Uvolňování paměti serveru obecně přináší vyšší výkon za cenu vyšší spotřeby paměti.",
7473
"configuration.dotnet.server.waitForDebugger": "Při spuštění serveru předá příznak --debug, aby bylo možné připojit ladicí program. (Dříve omnisharp.waitForDebugger)",
7574
"configuration.dotnet.symbolSearch.searchReferenceAssemblies": "Hledat symboly v referenčních sestaveních Ovlivňuje funkce, které vyžadují vyhledávání symbolů, například přidání importů.",

package.nls.de.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
"configuration.dotnet.server.startTimeout": "Gibt ein Timeout (in ms) an, mit dem der Client erfolgreich gestartet und eine Verbindung mit dem Sprachserver hergestellt werden kann.",
7070
"configuration.dotnet.server.suppressLspErrorToasts": "Unterdrückt, dass Fehler-Popups angezeigt werden, wenn auf dem Server ein wiederherstellbarer Fehler auftritt.",
7171
"configuration.dotnet.server.suppressMiscellaneousFilesToasts": "Hiermit wird die Anzeige von Popupwarnungen unterdrückt, wenn sich das aktive Dokument außerhalb des geöffneten Arbeitsbereichs befindet.",
72-
"configuration.dotnet.server.trace": "Legt den Protokolliergrad für den Sprachserver fest.",
7372
"configuration.dotnet.server.useServerGC": "Konfigurieren Sie den Sprachserver für die Verwendung der GC des .NET-Servers. Die GC auf dem Server bietet im Allgemeinen eine bessere Leistung bei einem höheren Arbeitsspeicherverbrauch.",
7473
"configuration.dotnet.server.waitForDebugger": "Übergibt das Flag \"--debug\" beim Starten des Servers, damit ein Debugger angefügt werden kann. (Zuvor \"omnisharp.waitForDebugger\")",
7574
"configuration.dotnet.symbolSearch.searchReferenceAssemblies": "Symbole in Verweisassemblys suchen. Dies wirkt sich auf Features aus, die eine Symbolsuche erfordern, z. B. Importe hinzufügen.",

0 commit comments

Comments
 (0)