Skip to content

Commit

Permalink
Update Razor to 5.0.0-rc.1.20417.4.
Browse files Browse the repository at this point in the history
- 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))
  • Loading branch information
NTaylorMullen committed Aug 18, 2020
1 parent 9b8ec71 commit 6022f0e
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,13 @@
* Include version matched target files with minimal MSBuild (PR: [omnisharp-roslyn#1895](https://github.com/OmniSharp/omnisharp-roslyn/pull/1895))
* Fix lack of trailing italics in quickinfo (PR: [omnisharp-roslyn#1894](https://github.com/OmniSharp/omnisharp-roslyn/pull/1894))
* Set meaning of UseGlobalMono "auto" to "never" until Mono updates their MSBuild (PR: [#3998](https://github.com/OmniSharp/omnisharp-vscode/pull/3998))
* 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))
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

20 changes: 10 additions & 10 deletions package.json
Expand Up @@ -31,7 +31,7 @@
],
"defaults": {
"omniSharp": "1.37.0",
"razor": "5.0.0-rc.1.20378.7"
"razor": "5.0.0-rc.1.20417.4"
},
"main": "./dist/extension",
"scripts": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down
13 changes: 13 additions & 0 deletions test-plan.md
Expand Up @@ -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 `<SomeUnknownTag>` 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 (`<Counter>`) providing light bulbs to "Fully Qualify" and to "@using SomeOtherNamespace".
- Executing Fully Qualify results in `<SomeOtherNamespace.Counter>`
- 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. `<Counter>`) brings you to the corresponding .razor file.

#### Rename
* Renaming a component (i.e. `<Counter>`) 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`)
Expand Down

0 comments on commit 6022f0e

Please sign in to comment.