Skip to content

Commit ae284e9

Browse files
committed
update to 2.80.16
2 parents 1ad5bf1 + a3e53fc commit ae284e9

File tree

111 files changed

+2106
-652
lines changed

Some content is hidden

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

111 files changed

+2106
-652
lines changed

.config/branch-merge.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/branch-merge.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
// The profile can be found under /test/csharp-test-profile.
7777
"--profile",
7878
"csharp-test-profile",
79-
"${workspaceRoot}/test/razor/razorIntegrationTests/testAssets/RazorApp/.vscode/RazorApp.code-workspace",
79+
"${workspaceRoot}/test/razor/razorIntegrationTests/testAssets/RazorApp/.vscode/devkit_RazorApp.code-workspace",
8080
"--extensionDevelopmentPath=${workspaceRoot}",
8181
"--extensionTestsPath=${workspaceRoot}/out/test/razor/razorIntegrationTests",
8282
"--log",

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
"editor.formatOnSave": false,
2121
"eslint.lintTask.enable": true,
2222
"dotnet.defaultSolution": "disable",
23-
"jest.autoRun": "off",
23+
"jest.runMode": "on-demand",
2424
}

CHANGELOG.md

Lines changed: 128 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,127 @@
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.80.x
7+
* Fix license link in marketplace (PR: [#8318](https://github.com/dotnet/vscode-csharp/pull/8318))
8+
* Localization (PR: [#8309](https://github.com/dotnet/vscode-csharp/pull/8309))
9+
* Re-enabling and stabilizing completion tests (PR: [#8306](https://github.com/dotnet/vscode-csharp/pull/8306))
10+
11+
# 2.79.x
12+
* Bump Roslyn to 5.0.0-1.25266.2 (PR: [#8298](https://github.com/dotnet/vscode-csharp/pull/8298))
13+
* hotfix to fix restore and stop including bin/obj artifacts in directory with loose files(PR: [#78615](https://github.com/dotnet/roslyn/pull/78615))
14+
* Ensure we pass unique binlog paths to each BuildHost(PR: [#78599](https://github.com/dotnet/roslyn/pull/78599))
15+
* Fix embedded language classification inside multi-line string(PR: [#78588](https://github.com/dotnet/roslyn/pull/78588))
16+
17+
# 2.78.x
18+
* Bump Roslyn to 5.0.0-1.25263.3 (PR: [#8287](https://github.com/dotnet/vscode-csharp/pull/8287))
19+
* File based programs IDE support(PR: [#78488](https://github.com/dotnet/roslyn/pull/78488))
20+
* Gracefully handle span mapping failing(PR: [#78520](https://github.com/dotnet/roslyn/pull/78520))
21+
* Cancel running requests when the connection terminates(PR: [#78525](https://github.com/dotnet/roslyn/pull/78525))
22+
* Cache extension method import info per project ID(PR: [#78542](https://github.com/dotnet/roslyn/pull/78542))
23+
* Fix crash in 'introduce variable' on top-level statements(PR: [#78507](https://github.com/dotnet/roslyn/pull/78507))
24+
* Fix information logs getting logged as debug in VSCode(PR: [#78522](https://github.com/dotnet/roslyn/pull/78522))
25+
* Shorten log category name(PR: [#78526](https://github.com/dotnet/roslyn/pull/78526))
26+
* Reduce allocations during SourceGeneration(PR: [#78403](https://github.com/dotnet/roslyn/pull/78403))
27+
* Fix razor redirect(PR: [#78448](https://github.com/dotnet/roslyn/pull/78448))
28+
* Bump Razor to 10.0.0-preview.25262.1(PR: [#8283](https://github.com/dotnet/vscode-csharp/pull/8283))
29+
* Compiler: Replace SyntaxListBuilder with PooledArrayBuilder<T> and miscellaneous performance tweaks (PR: [#11841](https://github.com/dotnet/razor/pull/11841))
30+
* Allow html requests to be properly cancelled (PR: [#11829](https://github.com/dotnet/razor/pull/11829))
31+
* Fuse/typeparamintellisense (PR: [#11795](https://github.com/dotnet/razor/pull/11795))
32+
* Port auto insert to VS Code (PR: [#11828](https://github.com/dotnet/razor/pull/11828))
33+
34+
# 2.77.x
35+
* Bump xamlTools to 17.14.36106.43 (PR: [#8260](https://github.com/dotnet/vscode-csharp/pull/8260))
36+
* Bump Razor to 10.0.0-preview.25256.6 (PR: [#8259](https://github.com/dotnet/vscode-csharp/pull/8259))
37+
* Improve document handling in VS Code and cohosting (#11825) (PR: [#11825](https://github.com/dotnet/razor/pull/11825))
38+
* Use new select and order method (#11826) (PR: [#11826](https://github.com/dotnet/razor/pull/11826))
39+
* Make it so validation happens after filtering and normalization (#11811) (PR: [#11811](https://github.com/dotnet/razor/pull/11811))
40+
* Port remaining cohosting endpoints to VS Code (#11815) (PR: [#11815](https://github.com/dotnet/razor/pull/11815))
41+
* Fix cohost semantic tokens in VS Code (#11816) (PR: [#11816](https://github.com/dotnet/razor/pull/11816))
42+
* Fix some hardcoded values in cohosting (#11817) (PR: [#11817](https://github.com/dotnet/razor/pull/11817))
43+
* Add new shared SelectXXXAsArray helpers (#11796) (PR: [#11796](https://github.com/dotnet/razor/pull/11796))
44+
45+
# 2.76.x
46+
* Bump Roslyn to 5.0.0-1.25263.2 (PR: [#8286](https://github.com/dotnet/vscode-csharp/pull/8286))
47+
* [release/vscode] Gracefully handle span mapping failing(PR: [#78562](https://github.com/dotnet/roslyn/pull/78562))
48+
* Fix razor redirect(PR: [#78448](https://github.com/dotnet/roslyn/pull/78448))
49+
* Bump Roslyn to 5.0.0-1.25257.6 (PR: [#8264](https://github.com/dotnet/vscode-csharp/pull/8264))
50+
* Do not parse URIs during LSP serialization/deserialization(PR: [#76691](https://github.com/dotnet/roslyn/pull/76691))
51+
* Ensure hover markdown for supported platforms uses non-breaking spaces for indentation(PR: [#78405](https://github.com/dotnet/roslyn/pull/78405))
52+
* Change O(n) + O(lg n) search in SolutionState.SortedProjectStates to just O(lg n) (#78427) (PR: [#78427](https://github.com/dotnet/roslyn/pull/78427))
53+
* Fix syntax tree creation when modifying source generated documents (#78343) (PR: [#78343](https://github.com/dotnet/roslyn/pull/78343))
54+
* Bump Razor to 10.0.0-preview.25252.1 (PR: [#8239](https://github.com/dotnet/vscode-csharp/pull/8239))
55+
* If SupportDiagnostics is false then dynamic files don't report diagnostics... (PR: #11807)
56+
* Client settings tweaks, and implement VS Code configuration monitoring (PR: #11800)
57+
* [main] [PRERELEASE] If SupportDiagnostics then dynamic files don't report diagnostics... (PR: #11810)
58+
* Update RazorSyntaxGenerator to reduce generated syntax code (PR: #11806)
59+
* Improve initialization, logging, and add more features to cohosting in VS Code (PR: #11788)
60+
* Bump Roslyn to 5.0.0-1.25252.3 (PR: [#8239](https://github.com/dotnet/vscode-csharp/pull/8239))
61+
* Extract base LanguageServerProjectLoader from LanguageServerProjectSystem(PR: [#78329](https://github.com/dotnet/roslyn/pull/78329))
62+
* Edit & Continue support for field access in auto-properties(PR: [#78289](https://github.com/dotnet/roslyn/pull/78289))
63+
* Allow Razor cohosting to hook into configuration change notifications(PR: [#78364](https://github.com/dotnet/roslyn/pull/78364))
64+
* Insert missing space in XML documentation(PR: [#78361](https://github.com/dotnet/roslyn/pull/78361))
65+
* Do not offer 'remove unnecessary parens' when it would change a collection initializer(PR: [#78336](https://github.com/dotnet/roslyn/pull/78336))
66+
* Do not offer use-expr-body for properties with initializers(PR: [#78360](https://github.com/dotnet/roslyn/pull/78360))
67+
* Add BuildHost APIs for loading an in-memory project(PR: [#78303](https://github.com/dotnet/roslyn/pull/78303))
68+
* Allow Razor logs to be directed to the right output window in VS Code(PR: [#78334](https://github.com/dotnet/roslyn/pull/78334))
69+
* Switch Project data structures from ImmutableDictionary => Dictionary and lock(PR: [#78287](https://github.com/dotnet/roslyn/pull/78287))
70+
* Only show MiscFile toast when the uri scheme is file(PR: [#8240](https://github.com/dotnet/vscode-csharp/pull/8240))
71+
* Support more things in VS Code cohosting(PR: [#8218](https://github.com/dotnet/vscode-csharp/pull/8218))
72+
* Add SpanMapping for VS Code(PR: [#8225](https://github.com/dotnet/vscode-csharp/pull/8225))
73+
* [main] Update Razor to Fix Missing DLL(PR: [#8224](https://github.com/dotnet/vscode-csharp/pull/8224))
74+
* [release] Ignore updates with no changes for csharp files(PR: [#8170](https://github.com/dotnet/vscode-csharp/pull/8170))
75+
76+
# 2.75.x
77+
* Bump Razor to 10.0.0-preview.25228.4 (PR: [#8225](https://github.com/dotnet/vscode-csharp/pull/8225))
78+
* Don't return null if we couldn't sync the document for breakpoint validation (PR: [#11790](https://github.com/dotnet/razor/pull/11790))
79+
* Add VS Code IMappingService (PR: [#11760](https://github.com/dotnet/razor/pull/11760))
80+
* Fix cases where there is a space in the URI (PR: [#11745](https://github.com/dotnet/razor/pull/11745))
81+
* Bump Roslyn to 5.0.0-1.25224.9 (PR: [#8211](https://github.com/dotnet/vscode-csharp/pull/8211))
82+
* Update ICSharpCode.Decompiler to 9.1.0.7988(PR: [#78270](https://github.com/dotnet/roslyn/pull/78270))
83+
* Reduce allocations in NamespaceSymbol.GetExtensionContainers(PR: [#78243](https://github.com/dotnet/roslyn/pull/78243))
84+
* Allow Razor files to be additional documents in a misc files project(PR: [#78267](https://github.com/dotnet/roslyn/pull/78267))
85+
* Hook up IDocumentServiceProvider in VS Code(PR: [#78266](https://github.com/dotnet/roslyn/pull/78266))
86+
* Allow Razor cohosting to run in VS Code, and fix it in VS(PR: [#78167](https://github.com/dotnet/roslyn/pull/78167))
87+
* Fix razor analyzer loading(PR: [#78116](https://github.com/dotnet/roslyn/pull/78116))
88+
* Fix crash when converting primary constructor to normal constructor(PR: [#78234](https://github.com/dotnet/roslyn/pull/78234))
89+
* Reduce LOH allocations in MetadataWriter(PR: [#78245](https://github.com/dotnet/roslyn/pull/78245))
90+
* Support empty root namespaces in ResxSourceGenerator(PR: [#78233](https://github.com/dotnet/roslyn/pull/78233))
91+
* Allocate slightly less in ImmutableArrayExtensions.ConditionallyDeOrder(PR: [#78235](https://github.com/dotnet/roslyn/pull/78235))
92+
* Ensure FindSourceDefinitionAsync works in frozen compilation cases(PR: [#78195](https://github.com/dotnet/roslyn/pull/78195))
93+
* Fix quick info for pp symbols(PR: [#78173](https://github.com/dotnet/roslyn/pull/78173))
94+
* Fix issue where we were inappropriately suggesting we remove a ref-field(PR: [#78191](https://github.com/dotnet/roslyn/pull/78191))
95+
* System.CommandLine update (PR: [#78142](https://github.com/dotnet/roslyn/pull/78142))
96+
* Ensure LSP uses actual signature help trigger characters(PR: [#78076](https://github.com/dotnet/roslyn/pull/78076))
97+
* Do not return metadata names for document symbols(PR: [#78077](https://github.com/dotnet/roslyn/pull/78077))
98+
* Improve detection of code whose updates may not have effect(PR: [#78009](https://github.com/dotnet/roslyn/pull/78009))
99+
* Fix crash in backing field nullability cycle scenario(PR: [#77993](https://github.com/dotnet/roslyn/pull/77993))
100+
* Fix EA layering for Razor.ExternalAccess(PR: [#77927](https://github.com/dotnet/roslyn/pull/77927))
101+
* Simplify workspace initialization in the LSP server(PR: [#78010](https://github.com/dotnet/roslyn/pull/78010))
102+
* Support Html requests in cohosting(PR: [#8210](https://github.com/dotnet/vscode-csharp/pull/8210))
103+
* Allow the Roslyn client to log messages from Razor(PR: [#8201](https://github.com/dotnet/vscode-csharp/pull/8201))
104+
* Add cohost option to Razor(PR: [#8189](https://github.com/dotnet/vscode-csharp/pull/8189))
105+
106+
# 2.74.x
107+
* Bump xamlTools to 17.14.36010.33 (PR: [#8178](https://github.com/dotnet/vscode-csharp/pull/8178))
108+
* Bump razor to 10.0.0-preview.25210.3 (PR: [#8171](https://github.com/dotnet/vscode-csharp/pull/8171))
109+
* Allow graceful handling of ArgumentException when trying to apply changes to SourceText in LspTextChangesLoader (PR: [#11727](https://github.com/dotnet/razor/pull/11727))
110+
* Tweak a log message (PR: [#11705](https://github.com/dotnet/razor/pull/11705))
111+
* Improve performance and memory usage of TagHelperBinder (PR: [#11671](https://github.com/dotnet/razor/pull/11671))
112+
113+
# 2.73.x
114+
* Bump Roslyn to 5.0.0-1.25204.1 (PR: [#8138](https://github.com/dotnet/vscode-csharp/pull/8138))
115+
* Ensure that newline is inserted after file scoped namespace declarations (PR: [#77821](https://github.com/dotnet/roslyn/pull/77821))
116+
* Allow modification of source generated documents (PR: [#77587](https://github.com/dotnet/roslyn/pull/77587))
117+
* Simplify the code for getting source generator diagnostics into the diagnostics service. (PR: [#77898](https://github.com/dotnet/roslyn/pull/77898))
118+
* Make GlobalOptionService initialization synchronous. (PR: [#77823](https://github.com/dotnet/roslyn/pull/77823))
119+
* Change keys for import caching (PR: [#77627](https://github.com/dotnet/roslyn/pull/77627))
120+
* Don't show duplicate toast if C# Dev Kit fails to activate (PR: [#8135](https://github.com/dotnet/vscode-csharp/pull/8135))
121+
* Bump xamlTools to 17.14.36004.3 (PR: [#8134](https://github.com/dotnet/vscode-csharp/pull/8134))
122+
* Acquire aspnetcore runtime when using Dev Kit to avoid double acquisition (PR: [#8132](https://github.com/dotnet/vscode-csharp/pull/8132))
123+
6124
# 2.72.x
125+
* Bump Razor to 9.0.0-preview.25211.4 (PR: [#8181](https://github.com/dotnet/vscode-csharp/pull/8181))
126+
* Allow graceful handling of ArgumentException when trying to apply changes to SourceText in LspTextChangesLoader (PR: [#11727](https://github.com/dotnet/razor/pull/11727))
7127
* Revert xamlTools to 17.14.35913.250 (PR: [#8121](https://github.com/dotnet/vscode-csharp/pull/8121))
8128
* Update Roslyn to 4.14.0-3.25178.1 (PR: [#8103](https://github.com/dotnet/vscode-csharp/pull/8103))
9129
* Merge `null conditional assignment` to main (PR: [#77867](https://github.com/dotnet/roslyn/pull/77867))
@@ -16,18 +136,18 @@
16136
* Cleanup and make semantic token processing and testing code more consistent (PR: [#77684](https://github.com/dotnet/roslyn/pull/77684))
17137
* Fix generation of attribute with array constant (PR: [#77661](https://github.com/dotnet/roslyn/pull/77661))
18138
* Bump Razor to (PR: [#8096](https://github.com/dotnet/vscode-csharp/pull/8096))
19-
* Some code actions ordering and cleanup (#11659) (PR: [#11659](https://github.com/dotnet/razor/pull/11659))
20-
* Emit pragmas for empty @ expressions in MVC (#11653) (PR: [#11653](https://github.com/dotnet/razor/pull/11653))
21-
* Couple of small code actions tweaks (#11630) (PR: [#11630](https://github.com/dotnet/razor/pull/11630))
22-
* Fix text area formatting in the new formatting engine (#11624) (PR: [#11624](https://github.com/dotnet/razor/pull/11624))
139+
* Some code actions ordering and cleanup (PR: [#11659](https://github.com/dotnet/razor/pull/11659))
140+
* Emit pragmas for empty @ expressions in MVC (PR: [#11653](https://github.com/dotnet/razor/pull/11653))
141+
* Couple of small code actions tweaks (PR: [#11630](https://github.com/dotnet/razor/pull/11630))
142+
* Fix text area formatting in the new formatting engine (PR: [#11624](https://github.com/dotnet/razor/pull/11624))
23143

24144
# 2.71.x
25145
* Bump xamlTools to 17.14.35920.284 (PR: [#8083](https://github.com/dotnet/vscode-csharp/pull/8083))
26146
* Localization (PR: [#8084](https://github.com/dotnet/vscode-csharp/pull/8084))
27-
* Update wording on Razor Report Issue(PR: [#8081](https://github.com/dotnet/vscode-csharp/pull/8081))
28-
* Use the new SDK install experience when available.(PR: [#8080](https://github.com/dotnet/vscode-csharp/pull/8080))
29-
* Only enable Generate Assets command when the extension is activated.(PR: [#8079](https://github.com/dotnet/vscode-csharp/pull/8079))
30-
* Expose `sendRequestWithProgress` as experimental API(PR: [#8074](https://github.com/dotnet/vscode-csharp/pull/8074))
147+
* Update wording on Razor Report Issue (PR: [#8081](https://github.com/dotnet/vscode-csharp/pull/8081))
148+
* Use the new SDK install experience when available. (PR: [#8080](https://github.com/dotnet/vscode-csharp/pull/8080))
149+
* Only enable Generate Assets command when the extension is activated. (PR: [#8079](https://github.com/dotnet/vscode-csharp/pull/8079))
150+
* Expose `sendRequestWithProgress` as experimental API (PR: [#8074](https://github.com/dotnet/vscode-csharp/pull/8074))
31151

32152
# 2.70.x
33153
* Bump razor to 9.0.0-preview.25161.2 (PR: [#8058](https://github.com/dotnet/vscode-csharp/pull/8058))

CONTRIBUTING.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- [Configuring Razor Language Server](#configuring-razor-language-server)
1414
- [Creating VSIX Packages for the Extension](#creating-vsix-packages-for-the-extension)
1515
- [Updating the `Roslyn` Language Server Version](#updating-the-roslyn-language-server-version)
16+
- [Snapping for releases](#snapping-for-releases)
1617

1718
## Setting Up Local Development Environment
1819

@@ -167,3 +168,22 @@ To update the version of the roslyn server used by the extension do the followin
167168
3. In the [package.json](package.json) inside the `defaults` section update the `roslyn` key to point to the version number you found above in step 2.
168169
4. Ensure that version of the package is in the proper feeds by running `gulp updateRoslynVersion`. Note: you may need to install the [Azure Artifacts NuGet Credential Provider](https://github.com/microsoft/artifacts-credprovider#installation-on-windows) to run interactive authentication.
169170
5. Build and test the change. If everything looks good, submit a PR.
171+
172+
## Snapping for releases
173+
Extension releases on the marketplace are done from the prerelease and release branches (corresponding to the prerelease or release version of the extension). Code flows from main -> prerelease -> release. Every week we snap main -> prerelease. Monthly, we snap prerelease -> release.
174+
175+
The snap is done via the "Branch snap" github action. To run the snap from main -> prerelease, run the action via "Run workflow" and choose main as the base branch.
176+
![branch snap action](./docs/main_snap.png)
177+
178+
This will generate two PRs that must be merged. One merging the main branch into prerelease, and the other bumps the version in main.
179+
![generated prs](./docs/generated_prs.png)
180+
181+
To snap from prerelease to main, run the same action but use **prerelease** as the workflow branch. This will generate a single PR merging from prerelease to release.
182+
183+
### Marketplace release
184+
The marketplace release is managed by an internal AzDo pipeline. On the pipeline page, hit run pipeline. This will bring up the pipeline parameters to fill out:
185+
1. The branch will **always** be main, no matter if release a build from prerelease or release.
186+
2. Uncheck the "test" option.
187+
3. In "Resources", choose "dotnet-vscode-csharp [officialBuildCI]", then check only the build that should be released, and then confirm with "Use selected run". Based on the selected build, it will automatically determine if it is prerelease or release. ![release pipeline image](./docs/release_pipeline.png)
188+
4. The pipeline parameters should then look something like the following image. Hit "Run". ![release pipeline parameters image](./docs/release_pipeline_params.png)
189+
5. After a bit, the pipeline will request approval from an authorized approver before it actually uploads to the marketplace. Hit approve and it will continue.

0 commit comments

Comments
 (0)