Skip to content

Commit 47abf88

Browse files
[automated] Merge branch 'main' => 'prerelease' (#8498)
2 parents 1d3828f + 227284c commit 47abf88

Some content is hidden

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

61 files changed

+1188
-700
lines changed

.vscode/launch.json

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,38 @@
1111
"outFiles": ["${workspaceRoot}/dist/*.js"],
1212
"preLaunchTask": "packageDev"
1313
},
14+
{
15+
"name": "[Untrusted] Run Integration Test",
16+
"type": "extensionHost",
17+
"request": "launch",
18+
"runtimeExecutable": "${execPath}",
19+
"args": [
20+
// Launch VSCode using a specific profile to ensure that user settings are not used.
21+
// This profile must be imported into vscode before running this launch configuration.
22+
// The profile can be found under /test/csharp-test-profile.
23+
"--profile",
24+
"csharp-test-profile",
25+
"${workspaceRoot}/test/untrustedWorkspace/integrationTests/testAssets/empty/.vscode/empty.code-workspace",
26+
"--extensionDevelopmentPath=${workspaceRoot}",
27+
"--extensionTestsPath=${workspaceRoot}/out/test/untrustedWorkspace/integrationTests",
28+
"--log",
29+
"ms-dotnettools.csharp:trace"
30+
],
31+
"env": {
32+
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
33+
},
34+
"sourceMaps": true,
35+
"outFiles": [
36+
"${workspaceRoot}/dist/*.js",
37+
"${workspaceRoot}/out/test/**/*.js"
38+
],
39+
"resolveSourceMapLocations": [
40+
"${workspaceFolder}/**",
41+
"!**/node_modules/**"
42+
],
43+
"preLaunchTask": "packageDev",
44+
"internalConsoleOptions": "openOnSessionStart"
45+
},
1446
{
1547
"name": "[Roslyn] Run Current File Integration Tests",
1648
"type": "extensionHost",
@@ -187,9 +219,9 @@
187219
"args": ["updatePackageDependencies"],
188220
"env": {
189221
"NEW_DEPS_ID": "OmniSharp",
190-
"NEW_DEPS_URLS": "https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-linux-x64-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-linux-x86-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-linux-arm64-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-osx-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-win-x64-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-win-arm64-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-linux-musl-x64-net6.0-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-linux-musl-arm64-net6.0-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-linux-x64-net6.0-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-linux-arm64-net6.0-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-osx-x64-net6.0-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-osx-arm64-net6.0-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-win-x64-net6.0-1.39.12.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.12/omnisharp-win-arm64-net6.0-1.39.12.zip",
191-
"OLD_DEPS_VERSION": "1.39.11",
192-
"NEW_DEPS_VERSION": "1.39.12"
222+
"NEW_DEPS_URLS": "https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-linux-x64.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-linux-x86.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-linux-arm64.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-osx.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-win-x64.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-win-arm64.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-linux-musl-x64-net6.0.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-linux-musl-arm64-net6.0.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-linux-x64-net6.0.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-linux-arm64-net6.0.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-osx-x64-net6.0.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-osx-arm64-net6.0.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-win-x64-net6.0.zip,https://roslynomnisharp.blob.core.windows.net/releases/1.39.14/omnisharp-win-arm64-net6.0.zip",
223+
"OLD_DEPS_VERSION": "1.39.12",
224+
"NEW_DEPS_VERSION": "1.39.14"
193225
},
194226
"cwd": "${workspaceFolder}"
195227
},

.vscode/tasks.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"group": {
1616
"kind": "build",
1717
"isDefault": true
18-
}
18+
},
19+
"problemMatcher": "$tsc",
1920
},
2021
{
2122
"label": "buildDev",
@@ -25,7 +26,8 @@
2526
"group": {
2627
"kind": "build",
2728
"isDefault": true
28-
}
29+
},
30+
"problemMatcher": "$tsc",
2931
},
3032
{
3133
"label": "package",
@@ -35,7 +37,8 @@
3537
"group": {
3638
"kind": "build",
3739
"isDefault": true
38-
}
40+
},
41+
"problemMatcher": "$tsc",
3942
},
4043
{
4144
"label": "packageDev",
@@ -45,7 +48,8 @@
4548
"group": {
4649
"kind": "build",
4750
"isDefault": true
48-
}
51+
},
52+
"problemMatcher": "$tsc",
4953
},
5054
{
5155
"label": "test",

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,48 @@
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.88.x
7+
* Enable Razor Cohosting "on" by default (PR: [#8469](https://github.com/dotnet/vscode-csharp/pull/8469))
8+
* Bump Roslyn to 5.0.0-2.25405.5 (PR: [#8493](https://github.com/dotnet/vscode-csharp/pull/8493))
9+
* Fix file-based programs getting stuck in the host workspace(PR: [#79730](https://github.com/dotnet/roslyn/pull/79730))
10+
* Fixed irregular spacing between list items(PR: [#79388](https://github.com/dotnet/roslyn/pull/79388))
11+
* Introduce helper to ensure span mapping is consistent everywhere(PR: [#79729](https://github.com/dotnet/roslyn/pull/79729))
12+
* Fix formatting in use-auto-prop when attributes are present(PR: [#79735](https://github.com/dotnet/roslyn/pull/79735))
13+
* Razor span mapping in LSP for cohosting(PR: [#79677](https://github.com/dotnet/roslyn/pull/79677))
14+
* Handle concurrent requests to update workspace contents and workspace SG info.(PR: [#79628](https://github.com/dotnet/roslyn/pull/79628))
15+
* Update debugger.contracts to 18.0.0-beta.25379.1(PR: [#79661](https://github.com/dotnet/roslyn/pull/79661))
16+
* Fix logging when item counts change in LoadedProject(PR: [#79640](https://github.com/dotnet/roslyn/pull/79640))
17+
* File-based program directive diagnostics in editor(PR: [#79421](https://github.com/dotnet/roslyn/pull/79421))
18+
* Fixup quick info for suppressed nullable operations.(PR: [#79636](https://github.com/dotnet/roslyn/pull/79636))
19+
* Rename Razor source generated documents in all scenarios, and map edits(PR: [#79604](https://github.com/dotnet/roslyn/pull/79604))
20+
* Fix formatting of CDATA sections in quick info(PR: [#79627](https://github.com/dotnet/roslyn/pull/79627))
21+
* Add diagnostic provider for clients without dynamic registration(PR: [#77984](https://github.com/dotnet/roslyn/pull/77984))
22+
* Fix eol handling on the last token in a file when formatting code actions(PR: [#79602](https://github.com/dotnet/roslyn/pull/79602))
23+
* Reduce allocations during CommonCompletionItem.Create(PR: [#79591](https://github.com/dotnet/roslyn/pull/79591))
24+
* Add metadata documents to the MAS workspace upfront(PR: [#78886](https://github.com/dotnet/roslyn/pull/78886))
25+
* Update debugger contracts to 18.0.0-beta.25353.1(PR: [#79277](https://github.com/dotnet/roslyn/pull/79277))
26+
* Include comments written above local variables when getting quick info for them.(PR: [#79580](https://github.com/dotnet/roslyn/pull/79580))
27+
* Modify LSP folding ranges to account for AutoCollapse(PR: [#79551](https://github.com/dotnet/roslyn/pull/79551))
28+
* Have 'use explicit type' add usings as necessary to minimally qualify the type(PR: [#79574](https://github.com/dotnet/roslyn/pull/79574))
29+
* Fix issue where we weren't properly adding elastic trivia to newly generated members(PR: [#79571](https://github.com/dotnet/roslyn/pull/79571))
30+
* Properly handle optional arguments when converting a local function to a method.(PR: [#79531](https://github.com/dotnet/roslyn/pull/79531))
31+
* Fix issue with 'use explicit type' and nullable tuples(PR: [#79544](https://github.com/dotnet/roslyn/pull/79544))
32+
* Fix name qualification when moving a using alias outside of a file scoped namespace(PR: [#79540](https://github.com/dotnet/roslyn/pull/79540))
33+
* Allow add using to work on Razor generated documents(PR: [#79530](https://github.com/dotnet/roslyn/pull/79530))
34+
* Fix 'this' keyword not being recomended where allowed(PR: [#79514](https://github.com/dotnet/roslyn/pull/79514))
35+
* Fix 'switch' keyword recomendations after an expression(PR: [#79515](https://github.com/dotnet/roslyn/pull/79515))
36+
* Suggest proper 'Async'-suffixed name for Task-returning symbols(PR: [#79518](https://github.com/dotnet/roslyn/pull/79518))
37+
* Locate usable MSBuild when launching .NET Core BuildHost (PR: [#79494](https://github.com/dotnet/roslyn/pull/79494)
38+
* Bump Razor to 10.0.0-preview.25403.1 (PR: [#8485](https://github.com/dotnet/vscode-csharp/pull/8485))
39+
* Cache MEF composition in OOP and VS Code (PR: [#12041](https://github.com/dotnet/razor/pull/12041))
40+
* Make cohost formatting honour C# formatting options (PR: [#12042](https://github.com/dotnet/razor/pull/12042))
41+
* Correctly set the Html document uri for diagnostics requests (PR: [#12061](https://github.com/dotnet/razor/pull/12061))
42+
* Fix issue acquiring components when using proxies (PR: [#8457](https://github.com/dotnet/vscode-csharp/pull/8457))
43+
* Support activating the extension with limited support in untrusted workspaces (PR: [#8435](https://github.com/dotnet/vscode-csharp/pull/8435))
44+
* Report specific c# settings in issue template (PR: [#8433](https://github.com/dotnet/vscode-csharp/pull/8433))
45+
* Update OmniSharp to 1.39.14 (PR: [#8492](https://github.com/dotnet/vscode-csharp/pull/8492))
46+
* Update Roslyn to 4.14.0-3.25168.13 (PR: [omnisharp-roslyn/#2664](https://github.com/OmniSharp/omnisharp-roslyn/pull/2664))
47+
648
# 2.87.x
749
* Fix acquisition of components with proxies (PR: [#8462](https://github.com/dotnet/vscode-csharp/pull/8462))
850
* Bump Roslyn to 5.0.0-2.25404.10 (PR: [#8490](https://github.com/dotnet/vscode-csharp/pull/8490))

CODE-OF-CONDUCT.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Code of Conduct
2+
3+
This project has adopted the code of conduct defined by the Contributor Covenant
4+
to clarify expected behavior in our community.
5+
6+
For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).

CONTRIBUTING.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,22 +118,24 @@ This section provides instructions on how to debug locally built Roslyn and Razo
118118

119119
#### Configuring Roslyn Language Server
120120

121-
In your `settings.json` file, add the following lines:
121+
Add the following lines to your `settings.json`. Replace `<roslynRepoRoot>` with the actual path to your Roslyn repository.
122122

123123
```json
124124
"dotnet.server.waitForDebugger": true,
125125
"dotnet.server.path": "<roslynRepoRoot>/artifacts/bin/Microsoft.CodeAnalysis.LanguageServer/Debug/net9.0/Microsoft.CodeAnalysis.LanguageServer.dll"
126126
```
127127

128-
Replace <roslynRepoRoot> with the actual path to your Roslyn repository.
128+
---
129129

130-
If using C# Dev Kit, you can also override the Roslyn DevKit component in your `settings.json`:
130+
**If using C# Dev Kit**, you also need to override the Roslyn DevKit component in your `settings.json`. This step is not necessary if you are not loading the Dev Kit extension.
131131
```json
132132
"dotnet.server.componentPaths": {
133133
"roslynDevKit": "<roslynRepoRoot>/artifacts/bin/Microsoft.VisualStudio.LanguageServices.DevKit/Debug/net9.0"
134134
},
135135
```
136136

137+
---
138+
137139
Or, in VSCode settings (`Ctrl+,`):
138140

139141
1. Search for `dotnet server`.
@@ -143,15 +145,15 @@ Or, in VSCode settings (`Ctrl+,`):
143145

144146
#### Configuring Razor Language Server
145147

146-
In your workspace settings.json file, add the following lines:
148+
Add the following lines to your `settings.json`. Replace `<razorRepoRoot>` with the actual path to your Razor repository.
147149

148150
```json
149151
"razor.languageServer.debug": true,
150152
"razor.languageServer.directory": "<razorRepoRoot>/artifacts/bin/rzls/Debug/net9.0",
151153
"razor.server.trace": "Debug"
152154
```
153155

154-
Replace `$razorRepoRoot` with your actual values.
156+
---
155157

156158
Or, in VSCode settings (`Ctrl+,`):
157159

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ Copyright © .NET Foundation, and contributors.
4141
The Microsoft C# extension is subject to [these license terms](https://github.com/dotnet/vscode-csharp/blob/main/RuntimeLicenses/license.txt).
4242
The source code to this extension is available on [https://github.com/dotnet/vscode-csharp](https://github.com/dotnet/vscode-csharp) and licensed under the [MIT license](LICENSE.txt).
4343

44-
### Code of Conduct
45-
46-
This project has adopted the code of conduct defined by the [Contributor Covenant](http://contributor-covenant.org/)
47-
to clarify expected behavior in our community.
48-
For more information see the [.NET Foundation Code of Conduct](http://www.dotnetfoundation.org/code-of-conduct).
49-
5044
### Contribution License Agreement
5145

5246
By signing the [CLA](https://cla.dotnetfoundation.org/), the community is free to use your contribution to [.NET Foundation](http://www.dotnetfoundation.org) projects.

azure-pipelines/test-matrix.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
RazorCohostTests:
3232
npmCommand: test:integration:razor:cohost
3333
isIntegration: true
34+
UntrustedWorkspaceTest:
35+
npmCommand: test:integration:untrusted
36+
isIntegration: true
3437
pool: ${{ parameters.pool }}
3538
${{ if parameters.containerName }}:
3639
container: ${{ parameters.containerName }}
@@ -41,4 +44,4 @@ jobs:
4144
installAdditionalLinuxDependencies: ${{ parameters.installAdditionalLinuxDependencies }}
4245
npmCommand: $(npmCommand)
4346
testVSCodeVersion: ${{ parameters.testVSCodeVersion }}
44-
isIntegration: $(isIntegration)
47+
isIntegration: $(isIntegration)

jest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const config: Config = {
1313
'<rootDir>/test/omnisharp/omnisharpUnitTests/jest.config.ts',
1414
'<rootDir>/test/razor/razorIntegrationTests/jest.config.ts',
1515
'<rootDir>/test/razor/razorTests/jest.config.ts',
16+
'<rootDir>/test/untrustedWorkspace/integrationTests/jest.config.ts',
1617
],
1718
// Reporters are a global jest configuration property and cannot be set in the project jest config.
1819
// This configuration will create a 'junit.xml' file in the output directory, no matter which test project is running.

l10n/bundle.l10n.cs.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
"Razor issue data collection stopped. Copying issue content...": "Shromažďování dat o problému s Razorem se zastavilo. Kopíruje se obsah problému…",
139139
"Razor.VSCode version": "Verze Razor.VSCode",
140140
"Recording trace...": "Zaznamenává se trasování...",
141+
"Reload C# Extension": "Znovu načíst rozšíření C#",
141142
"Reload Window": "Znovu načíst okno",
142143
"Replace existing build and debug assets?": "Nahradit existující prostředky sestavení a ladění?",
143144
"Report Razor Issue": "Nahlásit problém s Razorem",
@@ -214,6 +215,7 @@
214215
"WARNING": "UPOZORNĚNÍ",
215216
"Workspace information": "Informace o pracovním prostoru",
216217
"Workspace projects": "Projekty pracovních prostorů",
218+
"Workspace trust has changed. Would you like to reload the C# extension?": "Vztah důvěryhodnosti pracovního prostoru se změnil. Chcete znovu načíst rozšíření C#?",
217219
"Yes": "Ano",
218220
"You can modify the default arguments if needed": "V případě potřeby můžete změnit výchozí argumenty.",
219221
"You must first start the data collection before copying.": "Před kopírováním je zapotřebí nejdříve spustit shromažďování dat.",

l10n/bundle.l10n.de.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
"Razor issue data collection stopped. Copying issue content...": "Die Sammlung von Razor-Problemdaten wurde beendet. Probleminhalt wird kopiert...",
139139
"Razor.VSCode version": "Razor.VSCode-Version",
140140
"Recording trace...": "Ablaufverfolgung wird aufgezeichnet...",
141+
"Reload C# Extension": "C#-Erweiterung neu laden",
141142
"Reload Window": "Fenster neu laden",
142143
"Replace existing build and debug assets?": "Vorhandene Build- und Debugressourcen ersetzen?",
143144
"Report Razor Issue": "Razor-Problem melden",
@@ -214,6 +215,7 @@
214215
"WARNING": "WARNUNG",
215216
"Workspace information": "Arbeitsbereichsinformationen",
216217
"Workspace projects": "Arbeitsbereichsprojekte",
218+
"Workspace trust has changed. Would you like to reload the C# extension?": "Die Vertrauensstellung des Arbeitsbereichs wurde geändert. Möchten Sie die C#-Erweiterung neu laden?",
217219
"Yes": "Ja",
218220
"You can modify the default arguments if needed": "Sie können die Standardargumente bei Bedarf ändern.",
219221
"You must first start the data collection before copying.": "Sie müssen die Datensammlung vor dem Kopieren starten.",

0 commit comments

Comments
 (0)