Skip to content

Commit

Permalink
Merge pull request #7729 from dotnet/merge/main-to-prerelease
Browse files Browse the repository at this point in the history
[automated] Merge branch 'main' => 'prerelease'
  • Loading branch information
dibarbet authored Nov 2, 2024
2 parents de2caae + dbb87e5 commit b545060
Show file tree
Hide file tree
Showing 46 changed files with 349 additions and 271 deletions.
12 changes: 9 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"csharp-test-profile",
"${workspaceRoot}/test/lsptoolshost/integrationTests/testAssets/slnWithCsproj/.vscode/slnWithCsproj.code-workspace",
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test/lsptoolshost/integrationTests"
"--extensionTestsPath=${workspaceRoot}/out/test/lsptoolshost/integrationTests",
"--log",
"ms-dotnettools.csharp:trace"
],
"env": {
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
Expand All @@ -49,7 +51,9 @@
"csharp-test-profile",
"${workspaceRoot}/test/lsptoolshost/integrationTests/testAssets/slnWithCsproj/.vscode/devkit_slnWithCsproj.code-workspace",
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test/lsptoolshost/integrationTests"
"--extensionTestsPath=${workspaceRoot}/out/test/lsptoolshost/integrationTests",
"--log",
"ms-dotnettools.csharp:trace"
],
"env": {
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
Expand All @@ -74,7 +78,9 @@
"csharp-test-profile",
"${workspaceRoot}/test/razor/razorIntegrationTests/testAssets/BasicRazorApp2_1/.vscode/lsp_tools_host_BasicRazorApp2_1.code-workspace",
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test/razor/razorIntegrationTests"
"--extensionTestsPath=${workspaceRoot}/out/test/razor/razorIntegrationTests",
"--log",
"ms-dotnettools.csharp:trace"
],
"env": {
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
Expand Down
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@
- Diagnostics related feature requests and improvements [#5951](https://github.com/dotnet/vscode-csharp/issues/5951)
- Debug from .csproj and .sln [#5876](https://github.com/dotnet/vscode-csharp/issues/5876)

# 2.55.x
* Update Roslyn to 4.13.0-2.24531.3 (PR: [#7722](https://github.com/dotnet/vscode-csharp/pull/7722))
* Proffer project system query service (PR: [#75682](https://github.com/dotnet/roslyn/pull/75682))
* Ensure discards are initially soft selected in VSCode (PR: [#75655](https://github.com/dotnet/roslyn/pull/75655))
* Reduce allocations in VirtualCharService.CreateVirtualCharSequence (PR: [#75654](https://github.com/dotnet/roslyn/pull/75654))
* Reduce allocations in TextDocumentStates.AddRange (PR: [#75640](https://github.com/dotnet/roslyn/pull/75640))
* Update Razor to 9.0.0-preview.24531.4 (PR: [#7723](https://github.com/dotnet/vscode-csharp/pull/7723))
* Fix aggregate telemetry reliability (PR: [#11134](https://github.com/dotnet/razor/pull/11134))
* [FUSE] Fix OnAutoInsert and override completion and possible others (PR: [#11122](https://github.com/dotnet/razor/pull/11122))
* Update Roslyn to 4.13.0-2.24529.3 (PR: [#7705](https://github.com/dotnet/vscode-csharp/pull/7705))
* Update Razor to 9.0.0-preview.24528.3 (PR: [#7705](https://github.com/dotnet/vscode-csharp/pull/7705))
* Update project configuration from Roslyn info (#11092) (PR: [#11092](https://github.com/dotnet/razor/pull/11092))
* Reduce the amount of telemetry emitted (#11094) (PR: [#11094](https://github.com/dotnet/razor/pull/11094))
* Remove tooling MvcShims (#11088) (PR: [#11088](https://github.com/dotnet/razor/pull/11088))
* Switch to new log output window API and remove `dotnet.server.trace` (PR: [#7688](https://github.com/dotnet/vscode-csharp/pull/7688))
* Update Roslyn to 4.13.0-1.24528.3 (PR: [#7688](https://github.com/dotnet/vscode-csharp/pull/7688))
* Fix crash when 'add await' analyzers binding expressions (PR: [#75644](https://github.com/dotnet/roslyn/pull/75644))
* Shorten names shown in 'pull member up' (PR: [#75643](https://github.com/dotnet/roslyn/pull/75643))
* Fix inaccessible constructors shown in sighelp (PR: [#75642](https://github.com/dotnet/roslyn/pull/75642))
* Allow the client to update the server logging level dynamically (PR: [#75615](https://github.com/dotnet/roslyn/pull/75615))
* Bumped xamlTools to 17.13.35431.11 (PR: [#7719](https://github.com/dotnet/vscode-csharp/pull/7719))
* XAML validation improvements
* Validating properties of Setters, Triggers, Conditions.
* Validating text values like `<Color> Red </Color>`
* Warnings for obsolete values like LayoutOptions.CenterAndExpand
* XAML IntelliseSense completions for ResourceDictionary.Source
* XAML IntelliseSense completions for name properties like Setter.TargetName

# 2.54.x
* Update debugger packages to v2.54.0 (PR: [#7691](https://github.com/dotnet/vscode-csharp/pull/7691))
* Only show misc files warning toast after delay. (PR: [#7689](https://github.com/dotnet/vscode-csharp/pull/7689))
Expand All @@ -23,6 +51,7 @@
* Report a better error for void components (#11041) (PR: [#11041](https://github.com/dotnet/razor/pull/11041))
* Ensure model directives are mapped at runtime (#11007) (PR: [#11007](https://github.com/dotnet/razor/pull/11007))
* Including @using for Out-of-Scope Razor Component References (#10651) (PR: [#10651](https://github.com/dotnet/razor/pull/10651))
* Make checkDevCert a modal dialogue (PR: [#7704](https://github.com/dotnet/vscode-csharp/pull/7704))

# 2.53.x
* Update Roslyn to 4.13.0-1.24518.1 (PR: [#7670](https://github.com/dotnet/vscode-csharp/pull/7670))
Expand Down
24 changes: 17 additions & 7 deletions SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,25 @@ We highly recommend using the C# extension's built-in command, `CSharp: Report a

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.

1. First, set `dotnet.server.trace` to `Trace` in VSCode settings
![settings window showing trace option](./docs/trace_logs.png)
2. Reload the window via the `Developer: Reload Window` (`workbench.action.reloadWindow`) command
1. Find the `C#` output window (`View` -> `Output`) and set the log level to `Trace`
![c# output window showing trace option](./docs/csharp_trace.png)
2. Reproduce the issue
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.
4. Once the logs are collected, reset the window log level to `Info`

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.

##### C# LSP Trace Logs
Sometimes we need to know exactly what requests were sent to the Roslyn language server. To capture these logs:

1. Set the log level to `Trace` for the `C#` output window as described above.
2. Find the `C# LSP Trace Logs` output window
3. Reproduce the issue
4. Open the output window via `View` -> `Output` and change to the `C#` output window.
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.
6. Once the logs are collected, reset `dotnet.server.trace` back to `Information`
4. Copy the contents of the `C# LSP Trace Logs` output window.

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.
##### Other ways to set the log level
1. When launching VSCode from the CLI, pass the `--log ms-dotnettools.csharp:trace` parameter.
2. Invoke the `Developer: Set Log Level` command from the VSCode command palette, find the `C#` entry and set the level.

#### Project loading problems

Expand Down
Binary file added docs/csharp_trace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/trace_logs.png
Binary file not shown.
8 changes: 5 additions & 3 deletions l10n/bundle.l10n.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"Can't parse envFile {0} because of {1}": "Can't parse envFile {0} because of {1}",
"Open envFile": "Open envFile",
"Yes": "Yes",
"More Information": "More Information",
"Security Warning": "Security Warning",
"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?",
"Self-signed certificate sucessfully {0}": "Self-signed certificate sucessfully {0}",
"Couldn't create self-signed certificate. {0}\ncode: {1}\nstdout: {2}": "Couldn't create self-signed certificate. {0}\ncode: {1}\nstdout: {2}",
"Show Output": "Show Output",
"Couldn't create self-signed certificate. See output for more information.": "Couldn't create self-signed certificate. See output for more information.",
"Not Now": "Not Now",
"More Information": "More Information",
"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?",
"No executable projects": "No executable projects",
"Select the project to launch": "Select the project to launch",
"Invalid project index": "Invalid project index",
Expand All @@ -50,6 +50,7 @@
"WARNING": "WARNING",
"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.",
"Failed to parse tasks.json file: {0}": "Failed to parse tasks.json file: {0}",
"Not Now": "Not Now",
"Don't Ask Again": "Don't Ask Again",
"Required assets to build and debug are missing from '{0}'. Add them?": "Required assets to build and debug are missing from '{0}'. Add them?",
"Cancel": "Cancel",
Expand Down Expand Up @@ -147,6 +148,7 @@
"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.",
"More Detail": "More Detail",
"Some projects have trouble loading. Please review the output for more details.": "Some projects have trouble loading. Please review the output for more details.",
"Select project": "Select project",
"There are unresolved dependencies. Please execute the restore command to continue.": "There are unresolved dependencies. Please execute the restore command to continue.",
"Restore": "Restore",
"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",
Expand Down
19 changes: 10 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 6 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
}
},
"defaults": {
"roslyn": "4.13.0-1.24525.2",
"roslyn": "4.13.0-2.24531.3",
"omniSharp": "1.39.11",
"razor": "9.0.0-preview.24524.4",
"razor": "9.0.0-preview.24531.4",
"razorOmnisharp": "7.0.0-preview.23363.1",
"xamlTools": "17.13.35422.31"
"xamlTools": "17.13.35431.11"
},
"main": "./dist/extension",
"l10n": "./l10n",
Expand Down Expand Up @@ -132,7 +132,7 @@
"@types/tmp": "0.0.33",
"@types/unzipper": "^0.9.1",
"@types/uuid": "^9.0.1",
"@types/vscode": "1.73.0",
"@types/vscode": "1.93.0",
"@types/yauzl": "2.10.0",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
Expand Down Expand Up @@ -689,7 +689,7 @@
}
],
"engines": {
"vscode": "^1.75.0"
"vscode": "^1.93.0"
},
"activationEvents": [
"onDebugInitialConfigurations",
Expand Down Expand Up @@ -1441,21 +1441,6 @@
"default": false,
"description": "%configuration.dotnet.server.waitForDebugger%"
},
"dotnet.server.trace": {
"scope": "window",
"type": "string",
"enum": [
"Trace",
"Debug",
"Information",
"Warning",
"Error",
"Critical",
"None"
],
"default": "Information",
"description": "%configuration.dotnet.server.trace%"
},
"dotnet.server.extensionPaths": {
"scope": "machine-overridable",
"type": [
Expand Down Expand Up @@ -5602,4 +5587,4 @@
}
}
}
}
}
1 change: 0 additions & 1 deletion package.nls.cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"configuration.dotnet.server.startTimeout": "Určuje časový limit (v ms), aby se klient úspěšně spustil a připojil k jazykovému serveru.",
"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.",
"configuration.dotnet.server.suppressMiscellaneousFilesToasts": "Potlačí zobrazování informačních upozornění, pokud je aktivní dokument mimo otevřený pracovní prostor.",
"configuration.dotnet.server.trace": "Nastaví úroveň protokolování pro jazykový server",
"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.",
"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)",
"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ů.",
Expand Down
1 change: 0 additions & 1 deletion package.nls.de.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"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.",
"configuration.dotnet.server.suppressLspErrorToasts": "Unterdrückt, dass Fehler-Popups angezeigt werden, wenn auf dem Server ein wiederherstellbarer Fehler auftritt.",
"configuration.dotnet.server.suppressMiscellaneousFilesToasts": "Hiermit wird die Anzeige von Popupwarnungen unterdrückt, wenn sich das aktive Dokument außerhalb des geöffneten Arbeitsbereichs befindet.",
"configuration.dotnet.server.trace": "Legt den Protokolliergrad für den Sprachserver fest.",
"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.",
"configuration.dotnet.server.waitForDebugger": "Übergibt das Flag \"--debug\" beim Starten des Servers, damit ein Debugger angefügt werden kann. (Zuvor \"omnisharp.waitForDebugger\")",
"configuration.dotnet.symbolSearch.searchReferenceAssemblies": "Symbole in Verweisassemblys suchen. Dies wirkt sich auf Features aus, die eine Symbolsuche erfordern, z. B. Importe hinzufügen.",
Expand Down
1 change: 0 additions & 1 deletion package.nls.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"configuration.dotnet.server.startTimeout": "Especifica un tiempo de espera (en ms) para que el cliente se inicie correctamente y se conecte al servidor de lenguaje.",
"configuration.dotnet.server.suppressLspErrorToasts": "Suprime la visualización de notificaciones del sistema de error si el servidor encuentra un error recuperable.",
"configuration.dotnet.server.suppressMiscellaneousFilesToasts": "Impida que aparezcan notificaciones de advertencia si el documento activo se encuentra fuera del área de trabajo abierta.",
"configuration.dotnet.server.trace": "Establece el nivel de registro para el servidor de lenguaje",
"configuration.dotnet.server.useServerGC": "Configure el servidor de idiomas para usar la recolección de elementos no utilizados del servidor de .NET. La recolección de elementos no utilizados del servidor suele proporcionar un mejor rendimiento a costa de un mayor consumo de memoria.",
"configuration.dotnet.server.waitForDebugger": "Pasa la marca --debug al iniciar el servidor para permitir que se adjunte un depurador. (Anteriormente \"omnisharp.waitForDebugger\")",
"configuration.dotnet.symbolSearch.searchReferenceAssemblies": "Buscar símbolos en ensamblados de referencia. Afecta a las características y requiere la búsqueda de símbolos, como agregar importaciones.",
Expand Down
Loading

0 comments on commit b545060

Please sign in to comment.