Skip to content

Commit 0388fb3

Browse files
author
N. Taylor Mullen
authored
Update Razor to 5.0.0-rc.1.20417.4. (#3999)
- Updated changelog & testplan as well. This includes: * Fully qualify component light bulb ([dotnet/aspnetcore-tooling#22309](https://github.com/dotnet/aspnetcore/issues/22309)) * Add using for component light bulb ([dotnet/aspnetcore-tooling#22308](https://github.com/dotnet/aspnetcore/issues/22308)) * Create component from tag light bulb ([dotnet/aspnetcore-tooling#22307](https://github.com/dotnet/aspnetcore/issues/22307)) * Go to definition on Blazor components ([dotnet/aspnetcore-tooling#17044](https://github.com/dotnet/aspnetcore/issues/17044)) * Rename Blazor components ([dotnet/aspnetcore-tooling#22312](https://github.com/dotnet/aspnetcore/issues/22312)) * Prepare Blazor debugging to have better support for "Start without debugging" scenarios ([dotnet/aspnetcore-tooling#24623](dotnet/aspnetcore#24623))
1 parent 9b8ec71 commit 0388fb3

File tree

4 files changed

+32
-12
lines changed

4 files changed

+32
-12
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
* Include version matched target files with minimal MSBuild (PR: [omnisharp-roslyn#1895](https://github.com/OmniSharp/omnisharp-roslyn/pull/1895))
1616
* Fix lack of trailing italics in quickinfo (PR: [omnisharp-roslyn#1894](https://github.com/OmniSharp/omnisharp-roslyn/pull/1894))
1717
* Set meaning of UseGlobalMono "auto" to "never" until Mono updates their MSBuild (PR: [#3998](https://github.com/OmniSharp/omnisharp-vscode/pull/3998))
18+
* Updated Razor support
19+
* Fully qualify component light bulb ([dotnet/aspnetcore-tooling#22309](https://github.com/dotnet/aspnetcore/issues/22309))
20+
* Add using for component light bulb ([dotnet/aspnetcore-tooling#22308](https://github.com/dotnet/aspnetcore/issues/22308))
21+
* Create component from tag light bulb ([dotnet/aspnetcore-tooling#22307](https://github.com/dotnet/aspnetcore/issues/22307))
22+
* Go to definition on Blazor components ([dotnet/aspnetcore-tooling#17044](https://github.com/dotnet/aspnetcore/issues/17044))
23+
* Rename Blazor components ([dotnet/aspnetcore-tooling#22312](https://github.com/dotnet/aspnetcore/issues/22312))
24+
* Prepare Blazor debugging to have better support for "Start without debugging" scenarios ([dotnet/aspnetcore-tooling#24623](https://github.com/dotnet/aspnetcore/issues/24623))
1825

1926
## 1.23.0 (August 14, 2020)
2027
* Fix typo in supressBuildAssetsNotification setting name ([#3941](https://github.com/OmniSharp/omnisharp-vscode/issues/3941), PR: [#3942](https://github.com/OmniSharp/omnisharp-vscode/pull/3942))

package-lock.json

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

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
],
3232
"defaults": {
3333
"omniSharp": "1.37.0",
34-
"razor": "5.0.0-rc.1.20378.7"
34+
"razor": "5.0.0-rc.1.20417.4"
3535
},
3636
"main": "./dist/extension",
3737
"scripts": {
@@ -80,7 +80,7 @@
8080
"http-proxy-agent": "2.1.0",
8181
"https-proxy-agent": "^3.0.1",
8282
"jsonc-parser": "2.0.3",
83-
"microsoft.aspnetcore.razor.vscode": "https://download.visualstudio.microsoft.com/download/pr/06d56166-1d06-4552-a100-07de3e04e645/7ef9924e895e9b703860836d2409f20b/microsoft.aspnetcore.razor.vscode-5.0.0-rc.1.20378.7.tgz",
83+
"microsoft.aspnetcore.razor.vscode": "https://download.visualstudio.microsoft.com/download/pr/7ce7bb73-ea73-4c97-8b32-a897d45f853a/708c4ce219111a3bdf62fc29b5cd3768/microsoft.aspnetcore.razor.vscode-5.0.0-rc.1.20417.4.tgz",
8484
"mkdirp": "^1.0.3",
8585
"node-filter-async": "1.1.1",
8686
"node-machine-id": "1.1.12",
@@ -305,8 +305,8 @@
305305
{
306306
"id": "Razor",
307307
"description": "Razor Language Server (Windows / x64)",
308-
"url": "https://download.visualstudio.microsoft.com/download/pr/06d56166-1d06-4552-a100-07de3e04e645/59e7f8b4cb0bf3bbd47ac52c28791336/razorlanguageserver-win-x64-5.0.0-rc.1.20378.7.zip",
309-
"fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-win-x64-5.0.0-rc.1.20378.7.zip",
308+
"url": "https://download.visualstudio.microsoft.com/download/pr/7ce7bb73-ea73-4c97-8b32-a897d45f853a/b81c6338f89d3912d7750337398cd253/razorlanguageserver-win-x64-5.0.0-rc.1.20417.4.zip",
309+
"fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-win-x64-5.0.0-rc.1.20417.4.zip",
310310
"installPath": ".razor",
311311
"platforms": [
312312
"win32"
@@ -318,8 +318,8 @@
318318
{
319319
"id": "Razor",
320320
"description": "Razor Language Server (Windows / x86)",
321-
"url": "https://download.visualstudio.microsoft.com/download/pr/06d56166-1d06-4552-a100-07de3e04e645/831474e05ddc247d27fe92abdf745107/razorlanguageserver-win-x86-5.0.0-rc.1.20378.7.zip",
322-
"fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-win-x86-5.0.0-rc.1.20378.7.zip",
321+
"url": "https://download.visualstudio.microsoft.com/download/pr/7ce7bb73-ea73-4c97-8b32-a897d45f853a/ebc7996959de1a5be40d72dec6c1a2fb/razorlanguageserver-win-x86-5.0.0-rc.1.20417.4.zip",
322+
"fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-win-x86-5.0.0-rc.1.20417.4.zip",
323323
"installPath": ".razor",
324324
"platforms": [
325325
"win32"
@@ -331,8 +331,8 @@
331331
{
332332
"id": "Razor",
333333
"description": "Razor Language Server (Linux / x64)",
334-
"url": "https://download.visualstudio.microsoft.com/download/pr/06d56166-1d06-4552-a100-07de3e04e645/66beb65ebb9d9716115eb31da64598e9/razorlanguageserver-linux-x64-5.0.0-rc.1.20378.7.zip",
335-
"fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-linux-x64-5.0.0-rc.1.20378.7.zip",
334+
"url": "https://download.visualstudio.microsoft.com/download/pr/7ce7bb73-ea73-4c97-8b32-a897d45f853a/a7b2070fa56680573ad75f627b5ef6a6/razorlanguageserver-linux-x64-5.0.0-rc.1.20417.4.zip",
335+
"fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-linux-x64-5.0.0-rc.1.20417.4.zip",
336336
"installPath": ".razor",
337337
"platforms": [
338338
"linux"
@@ -347,8 +347,8 @@
347347
{
348348
"id": "Razor",
349349
"description": "Razor Language Server (macOS / x64)",
350-
"url": "https://download.visualstudio.microsoft.com/download/pr/06d56166-1d06-4552-a100-07de3e04e645/2e43f9c1e4db68621923c07bbb467310/razorlanguageserver-osx-x64-5.0.0-rc.1.20378.7.zip",
351-
"fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-osx-x64-5.0.0-rc.1.20378.7.zip",
350+
"url": "https://download.visualstudio.microsoft.com/download/pr/7ce7bb73-ea73-4c97-8b32-a897d45f853a/87ba98c9c045bbeb9f901af0fb2c1aeb/razorlanguageserver-osx-x64-5.0.0-rc.1.20417.4.zip",
351+
"fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-osx-x64-5.0.0-rc.1.20417.4.zip",
352352
"installPath": ".razor",
353353
"platforms": [
354354
"darwin"

test-plan.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,19 @@ To setup a test project to verify on you can do:
184184
2. `dotnet new blazorserverside`
185185
3. Open `Pages/Index.razor`
186186

187+
#### Light bulbs
188+
* Typing `@code { public int MyProperty { get; set; } }` and putting your cursor over `@code` provides you with a light bulb to "Extract block to code behind". Executing the light bulb results in the code block you wrote being removed and a new `*.razor.cs` file being created side-by-side.
189+
* Typing `<SomeUnknownTag>` provides a light bulb to "Create component from tag". Executing the light bulb creates a new `SomeUnknokwnTag.razor` file.
190+
* Updating a component (`Counter.razor`) to have a different namesapce (`@namespace SomeOtherNamespace`) results in attempted usages (`<Counter>`) providing light bulbs to "Fully Qualify" and to "@using SomeOtherNamespace".
191+
- Executing Fully Qualify results in `<SomeOtherNamespace.Counter>`
192+
- Executing "@using SomeOtherNamespace" adds a `@using SomeOtherNamespace` statement at the top of the file.
193+
194+
#### Go-to-definition
195+
* Performing go to definition on a Component (i.e. `<Counter>`) brings you to the corresponding .razor file.
196+
197+
#### Rename
198+
* Renaming a component (i.e. `<Counter>`) renames all usages of that component and renames the components file name.
199+
187200
##### C# Completion
188201
* Typing `@DateTime.Now` and `@(DateTime.Now)` provides completions throughout typing.
189202
* Completion is available for types that exist in the project (i.e. `Program`)

0 commit comments

Comments
 (0)