Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid setttings json #11062

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"properties": {
/*
* Migration works by using the previous path that we stored in the VsUserSettingsRegister. This comes
* from the OptionsStorage strings related to the option with the form of "{collection}\{name}".
* Names much match exactly for the setting to work.
*/
* Migration works by using the previous path that we stored in the VsUserSettingsRegister. This comes
* from the OptionsStorage strings related to the option with the form of "{collection}\{name}".
* Names much match exactly for the setting to work.
*/
"textEditor.razor.advanced.formatOnType": {
"type": "boolean",
"default": true,
Expand All @@ -17,192 +17,189 @@
"path": "Razor\\FormatOnType"
}
}
},
"textEditor.razor.advanced.formatOnPaste": {
"type": "boolean",
"default": true,
"title": "@Setting_FormattingOnPasteDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_FormattingOnPasteDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"pass": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\FormatOnPaste"
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😭

},
"textEditor.razor.advanced.formatOnPaste": {
"type": "boolean",
"default": true,
"title": "@Setting_FormattingOnPasteDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_FormattingOnPasteDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"pass": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\FormatOnPaste"
}
}
},
"textEditor.razor.advanced.autoClosingTags": {
"type": "boolean",
"default": true,
"title": "@Setting_AutoClosingTagsDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_AutoClosingTagsDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"pass": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\AutoClosingTags"
}
}
},
"textEditor.razor.advanced.autoClosingTags": {
"type": "boolean",
"default": true,
"title": "@Setting_AutoClosingTagsDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_AutoClosingTagsDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"pass": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\AutoClosingTags"
}
}
},
"textEditor.razor.advanced.autoInsertAttributeQuotes": {
"type": "boolean",
"default": true,
"title": "@Setting_AutoInsertAttributeQuotesDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_AutoInsertAttributeQuotesDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"pass": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\AutoInsertAttributeQuotes"
}
}
},
"textEditor.razor.advanced.autoInsertAttributeQuotes": {
"type": "boolean",
"default": true,
"title": "@Setting_AutoInsertAttributeQuotesDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_AutoInsertAttributeQuotesDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"pass": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\AutoInsertAttributeQuotes"
}
}
},
"textEditor.razor.advanced.colorBackground": {
"type": "boolean",
"default": false,
"title": "@Setting_ColorBackgroundDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_ColorBackgroundDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"pass": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\ColorBackground"
}
}
},
"textEditor.razor.advanced.colorBackground": {
"type": "boolean",
"default": false,
"title": "@Setting_ColorBackgroundDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_ColorBackgroundDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"pass": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\ColorBackground"
}
}
},
"textEditor.razor.advanced.codeBlockBraceOnNextLine": {
"type": "boolean",
"default": false,
"title": "@Setting_CodeBlockBraceOnNextLineDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_CodeBlockBraceOnNextLineDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"pass": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\CodeBlockBraceOnNextLined"
}
}
},
"textEditor.razor.advanced.codeBlockBraceOnNextLine": {
"type": "boolean",
"default": false,
"title": "@Setting_CodeBlockBraceOnNextLineDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_CodeBlockBraceOnNextLineDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"pass": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\CodeBlockBraceOnNextLined"
}
}
},
"textEditor.razor.advanced.commitElementsWithSpace": {
"type": "boolean",
"default": true,
"title": "@Setting_CommitElementsWithSpaceDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_CommitElementsWithSpaceDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"pass": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\CommitElementsWithSpace"
}
}
},
"textEditor.razor.advanced.commitElementsWithSpace": {
"type": "boolean",
"default": true,
"title": "@Setting_CommitElementsWithSpaceDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_CommitElementsWithSpaceDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"pass": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\CommitElementsWithSpace"
}
}
},
"textEditor.razor.advanced.snippets": {
"type": "string",
"default": "all",
"enum": [
"all",
"custom",
"none"
],
"enumItemLabels": [
"@Setting_SnippetsAll;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_SnippetsCustom;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_SnippetsNone;{13b72f58-279e-49e0-a56d-296be02f0805}"
],
"title": "@Setting_SnippetsDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_SnippetsDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"enumIntegerToString": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\Snippets"
}
},
"textEditor.razor.advanced.snippets": {
"type": "string",
"default": "all",
"enum": ["all", "custom", "none"],
"enumItemLabels": [
"@Setting_SnippetsAll;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_SnippetsCustom;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_SnippetsNone;{13b72f58-279e-49e0-a56d-296be02f0805}"
],
"title": "@Setting_SnippetsDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_SnippetsDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"enumIntegerToString": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\Snippets"
},
"map": [
{
"result": "all",
"match": 0
},
"map": [
{
"result": "all",
"match": 0
},
{
"result": "custom",
"match": 1
},
{
"result": "none",
"match": 2
}
]
}
}
},
"textEditor.razor.advanced.logLevel": {
"type": "string",
"default": "warning",
"enum": [
"trace",
"debug",
"information",
"warning",
"error",
"critical",
"none"
],
"enumItemLabels": [
"@Setting_LogLevelTrace;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_LogLevelDebug;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_LogLevelInformation;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_LogLevelWarning;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_LogLevelError;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_LogLevelCritical;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_LogLevelNone;{13b72f58-279e-49e0-a56d-296be02f0805}"
],
"title": "@Setting_LogLevelDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_LogLevelDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"enumIntegerToString": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\LogLevel"
{
"result": "custom",
"match": 1
},
"map": [
{
"result": "trace",
"match": 0
},
{
"result": "debug",
"match": 1
},
{
"result": "information",
"match": 2
},
{
"result": "warning",
"match": 3
},
{
"result": "error",
"match": 4
},
{
"result": "critical",
"match": 5
},
{
"result": "none",
"match": 6
}
]
}
{
"result": "none",
"match": 2
}
]
}
}
},
"textEditor.razor.advanced.logLevel": {
"type": "string",
"default": "warning",
"enum": [
"trace",
"debug",
"information",
"warning",
"error",
"critical",
"none"
],
"enumItemLabels": [
"@Setting_LogLevelTrace;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_LogLevelDebug;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_LogLevelInformation;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_LogLevelWarning;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_LogLevelError;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_LogLevelCritical;{13b72f58-279e-49e0-a56d-296be02f0805}",
"@Setting_LogLevelNone;{13b72f58-279e-49e0-a56d-296be02f0805}"
],
"title": "@Setting_LogLevelDisplayName;{13b72f58-279e-49e0-a56d-296be02f0805}",
"description": "@Setting_LogLevelDescription;{13b72f58-279e-49e0-a56d-296be02f0805}",
"migration": {
"enumIntegerToString": {
"input": {
"store": "VsUserSettingsRegistry",
"path": "Razor\\LogLevel"
},
"map": [
{
"result": "trace",
"match": 0
},
{
"result": "debug",
"match": 1
},
{
"result": "information",
"match": 2
},
{
"result": "warning",
"match": 3
},
{
"result": "error",
"match": 4
},
{
"result": "critical",
"match": 5
},
{
"result": "none",
"match": 6
}
]
}
}
}
},
"categories": {
"textEditor.razor": {
"title": "@110;{13b72f58-279e-49e0-a56d-296be02f0805}" // Razor (ASP.NET Core)
Expand All @@ -212,4 +209,4 @@
"legacyOptionPageId": "8EBB7F64-5BF7-49E6-9023-7CD7B9912203"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

<ItemGroup>
<None Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
<EmbeddedResource Include="..\..\src\Microsoft.VisualStudio.RazorExtension\UnifiedSettings\razor.registration.json" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading
Loading