-
Notifications
You must be signed in to change notification settings - Fork 386
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
Adds unified settings with migration #9108
Changes from all commits
4e7ee44
9906849
7d08f19
e75ba85
f3d7fd8
89d4118
2df6d1b
e46f762
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -657,3 +657,6 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\zh-Hant" | |
file source="$(VisualStudioXamlRulesDir)zh-Hant\ResolvedProjectReference.xaml" | ||
file source="$(VisualStudioXamlRulesDir)zh-Hant\ResolvedSdkReference.xaml" | ||
file source="$(VisualStudioXamlRulesDir)zh-Hant\SdkReference.xaml" | ||
|
||
folder "Extensions\Microsoft\ManagedProjectSystem\UnifiedSettings" | ||
file source="$(VisualStudioExtensionSetupDir)\ProjectSystemSetup\UnifiedSettings\ManagedProjectSystem.registration.json" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we pick this up from output rather than the source project? The file has There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or just don't copy it to the output directory. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a static file, so it's not necessary to pick up from output. @tmeschter removed copying to output dir. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
"properties": { | ||
"projectsAndSolutions.sdkStyleProjects.fastUpToDateCheck.enabled": { | ||
"type": "boolean", | ||
"title": "@Setting_FastUpToDateCheck_Enabled_Title;{860A27C0-B665-47F3-BC12-637E16A1050A}", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The GUID identifies the VS package? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct. I'd comment the json, if it were possible |
||
"default": true, | ||
"requiresRestart": false, | ||
"migration": { | ||
"pass": { | ||
"input": { | ||
"store": "SettingsManager", | ||
"path": "ManagedProjectSystem\\FastUpToDateCheckEnabled" | ||
} | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Migration" implies that the unified settings will move the current value of the setting as specified in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No concerns about round-tripping, as this migration field takes care of converting legacy <-> unified settings location. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are settings stored in both locations then, at least for now? I wonder how conflicts are resolved. |
||
}, | ||
"projectsAndSolutions.sdkStyleProjects.fastUpToDateCheck.loggingLevel": { | ||
"type": "string", | ||
"title": "@Setting_FastUpToDateCheck_LoggingLevel_Title;{860A27C0-B665-47F3-BC12-637E16A1050A}", | ||
"default": "none", | ||
"enum": [ | ||
"none", | ||
"minimal", | ||
"info", | ||
"verbose" | ||
], | ||
"enumItemLabels": [ | ||
"@Setting_FastUpToDateCheck_LoggingLevel_None;{860A27C0-B665-47F3-BC12-637E16A1050A}", | ||
"@Setting_FastUpToDateCheck_LoggingLevel_Minimal;{860A27C0-B665-47F3-BC12-637E16A1050A}", | ||
"@Setting_FastUpToDateCheck_LoggingLevel_Info;{860A27C0-B665-47F3-BC12-637E16A1050A}", | ||
"@Setting_FastUpToDateCheck_LoggingLevel_Verbose;{860A27C0-B665-47F3-BC12-637E16A1050A}" | ||
], | ||
"requiresRestart": false, | ||
"migration": { | ||
"enumIntegerToString": { | ||
"input": { | ||
"store": "SettingsManager", | ||
"path": "ManagedProjectSystem\\FastUpToDateLogLevel" | ||
}, | ||
"map": [ | ||
{ | ||
"result": "none", | ||
"match": 0 | ||
}, | ||
{ | ||
"result": "minimal", | ||
"match": 1 | ||
}, | ||
{ | ||
"result": "info", | ||
"match": 2 | ||
}, | ||
{ | ||
"result": "verbose", | ||
"match": 3 | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"projectsAndSolutions.sdkStyleProjects.fileNestingSettings.ignoreSolutionAndProjectSettings": { | ||
"type": "boolean", | ||
"title": "@Setting_FileNesting_IgnoreSolutionAndProjectSettings_Title;{860A27C0-B665-47F3-BC12-637E16A1050A}", | ||
"default": false, | ||
"requiresRestart": false, | ||
"migration": { | ||
"pass": { | ||
"input": { | ||
"store": "SettingsManager", | ||
"path": "Cps.NestingIgnoreSolutionAndProjectProfiles" | ||
} | ||
} | ||
} | ||
}, | ||
"projectsAndSolutions.sdkStyleProjects.multiTargetingSettings.preferSingleTargetBuilds": { | ||
"type": "boolean", | ||
"title": "@Setting_FileNesting_PreferSingleTargetBuilds_Title;{860A27C0-B665-47F3-BC12-637E16A1050A}", | ||
"description": "@Setting_FileNesting_PreferSingleTargetBuilds_Description;{860A27C0-B665-47F3-BC12-637E16A1050A}", | ||
"default": false, | ||
"requiresRestart": false, | ||
"migration": { | ||
"pass": { | ||
"input": { | ||
"store": "SettingsManager", | ||
"path": "ManagedProjectSystem\\PreferSingleTargetBuilds" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"categories": { | ||
"projectsAndSolutions.sdkStyleProjects": { | ||
"title": "@Settings_Category_SdkStyleProjects;{860A27C0-B665-47F3-BC12-637E16A1050A}" | ||
}, | ||
"projectsAndSolutions.sdkStyleProjects.fastUpToDateCheck": { | ||
"title": "@Settings_Category_FastUpToDateCheck;{860A27C0-B665-47F3-BC12-637E16A1050A}", | ||
"order": 1, | ||
"additionalKeywords": [ "futd", "up-to-date", "build" ] | ||
}, | ||
"projectsAndSolutions.sdkStyleProjects.fileNestingSettings": { | ||
"title": "@Settings_Category_FileNestingSettings;{860A27C0-B665-47F3-BC12-637E16A1050A}", | ||
"order": 2 | ||
}, | ||
"projectsAndSolutions.sdkStyleProjects.multiTargetingSettings": { | ||
"title": "@Settings_Category_MultiTargetingSettings;{860A27C0-B665-47F3-BC12-637E16A1050A}", | ||
"order": 3, | ||
"additionalKeywords": [ "build" ] | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're required to place the settings in this specific place: ExtensionRoot\UnifiedSettings*.registration.json