Skip to content

Commit

Permalink
Fix unified settings (#10607)
Browse files Browse the repository at this point in the history
While self-hosting I noticed unified settings were no longer available and were defaulting back to the classic experience. Looks like they updated how some of the registration works and added a fix for f5 debugging them. Worked locally on my machine but I will not claim any expertise here.
  • Loading branch information
ryzngard authored Jul 10, 2024
1 parent fda387e commit f8893e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,10 @@
"Value"=dword:00000000
"Title"="Force use of runtime code generation for Razor (requires restart)"
"PreviewPaneChannels"="IntPreview,int.main"

// CacheTag value should be changed when registration file changes
// See https://devdiv.visualstudio.com/DevDiv/_wiki/wikis/DevDiv.wiki/39345/Manifest-Build-Deployment-and-Setup-Authoring-In-Depth?anchor=example-pkgdef-key for more infomation
[$RootKey$\SettingsManifests\{13b72f58-279e-49e0-a56d-296be02f0805}]
@="Microsoft.VisualStudio.RazorExtension.RazorPackage"
"ManifestPath"="$PackageFolder$\UnifiedSettings\razor.registration.json"
"CacheTag"=qword:5DE8496A8900B809
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ namespace Microsoft.VisualStudio.RazorExtension;
[ProvideMenuResource("SyntaxVisualizerMenu.ctmenu", 1)]
[ProvideToolWindow(typeof(SyntaxVisualizerToolWindow))]
[ProvideLanguageEditorOptionPage(typeof(AdvancedOptionPage), RazorConstants.RazorLSPContentTypeName, category: null, "Advanced", pageNameResourceId: "#1050", keywordListResourceId: 1060)]
[ProvideSettingsManifest(PackageRelativeManifestFile = @"UnifiedSettings\razor.registration.json")]
[Guid(PackageGuidString)]
// We activate cohosting when the first Razor file is opened. This matches the previous behavior where the
// LSP client MEF export had the Razor content type metadata.
Expand Down

0 comments on commit f8893e8

Please sign in to comment.