From 5fd5d0de745c4b9d48e9ca67aec864d7ae94dd59 Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Tue, 18 Aug 2020 12:26:26 -0700 Subject: [PATCH] Update Razor to 5.0.0-rc.1.20417.4. - 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](https://github.com/dotnet/aspnetcore/issues/24623)) --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 20 ++++++++++---------- test-plan.md | 13 +++++++++++++ 4 files changed, 32 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd08ee751f..d6477dc39e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,13 @@ ## 1.23.1 (Not yet released) * Register FixAll commands for disposal ([#3984](https://github.com/OmniSharp/omnisharp-vscode/issues/3984), PR: [#3985](https://github.com/OmniSharp/omnisharp-vscode/pull/3985)) +* Updated Razor support + * 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](https://github.com/dotnet/aspnetcore/issues/24623)) ## 1.23.0 (August 14, 2020) * 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)) diff --git a/package-lock.json b/package-lock.json index 2e6893e272..14e560c022 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6183,8 +6183,8 @@ } }, "microsoft.aspnetcore.razor.vscode": { - "version": "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", - "integrity": "sha512-1R4lWi8FU48VCbXoZRjPUK6Y8omlpwpxtLvwIO7zfTv3wPUSJoRZRvAkgLDGPg08GgnRleWuCRhmuPCAs9uPcQ==", + "version": "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", + "integrity": "sha512-Ut3D4NXF/RLyHaVJidBc2KUBjYo6MF2K9U7wS3mISTfFybsW1AZDqqWhaM8sKjeNH6xaYuRAFSXSS/CsN5zQpQ==", "requires": { "ps-list": "^7.0.0", "vscode-html-languageservice": "2.1.7", diff --git a/package.json b/package.json index cb4b6cc3d8..1eeee47b8e 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ ], "defaults": { "omniSharp": "1.36.1", - "razor": "5.0.0-rc.1.20378.7" + "razor": "5.0.0-rc.1.20417.4" }, "main": "./dist/extension", "scripts": { @@ -80,7 +80,7 @@ "http-proxy-agent": "2.1.0", "https-proxy-agent": "^3.0.1", "jsonc-parser": "2.0.3", - "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", + "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", "mkdirp": "^1.0.3", "node-filter-async": "1.1.1", "node-machine-id": "1.1.12", @@ -305,8 +305,8 @@ { "id": "Razor", "description": "Razor Language Server (Windows / x64)", - "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", - "fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-win-x64-5.0.0-rc.1.20378.7.zip", + "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", + "fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-win-x64-5.0.0-rc.1.20417.4.zip", "installPath": ".razor", "platforms": [ "win32" @@ -318,8 +318,8 @@ { "id": "Razor", "description": "Razor Language Server (Windows / x86)", - "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", - "fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-win-x86-5.0.0-rc.1.20378.7.zip", + "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", + "fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-win-x86-5.0.0-rc.1.20417.4.zip", "installPath": ".razor", "platforms": [ "win32" @@ -331,8 +331,8 @@ { "id": "Razor", "description": "Razor Language Server (Linux / x64)", - "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", - "fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-linux-x64-5.0.0-rc.1.20378.7.zip", + "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", + "fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-linux-x64-5.0.0-rc.1.20417.4.zip", "installPath": ".razor", "platforms": [ "linux" @@ -347,8 +347,8 @@ { "id": "Razor", "description": "Razor Language Server (macOS / x64)", - "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", - "fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-osx-x64-5.0.0-rc.1.20378.7.zip", + "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", + "fallbackUrl": "https://razorvscodetest.blob.core.windows.net/languageserver/RazorLanguageServer-osx-x64-5.0.0-rc.1.20417.4.zip", "installPath": ".razor", "platforms": [ "darwin" diff --git a/test-plan.md b/test-plan.md index 65aec2d7af..8867848cab 100644 --- a/test-plan.md +++ b/test-plan.md @@ -184,6 +184,19 @@ To setup a test project to verify on you can do: 2. `dotnet new blazorserverside` 3. Open `Pages/Index.razor` +#### Light bulbs +* 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. +* Typing `` provides a light bulb to "Create component from tag". Executing the light bulb creates a new `SomeUnknokwnTag.razor` file. +* Updating a component (`Counter.razor`) to have a different namesapce (`@namespace SomeOtherNamespace`) results in attempted usages (``) providing light bulbs to "Fully Qualify" and to "@using SomeOtherNamespace". + - Executing Fully Qualify results in `` + - Executing "@using SomeOtherNamespace" adds a `@using SomeOtherNamespace` statement at the top of the file. + +#### Go-to-definition +* Performing go to definition on a Component (i.e. ``) brings you to the corresponding .razor file. + +#### Rename +* Renaming a component (i.e. ``) renames all usages of that component and renames the components file name. + ##### C# Completion * Typing `@DateTime.Now` and `@(DateTime.Now)` provides completions throughout typing. * Completion is available for types that exist in the project (i.e. `Program`)