@@ -93,9 +93,9 @@ public struct UserDefaultPreferenceKeys {
9393 defaultValue: false ,
9494 key: " ShowHideWidgetShortcutGlobally "
9595 )
96-
96+
9797 // MARK: Update Channel
98-
98+
9999 public let installBetaBuilds = PreferenceKey (
100100 defaultValue: false ,
101101 key: " InstallBetaBuilds "
@@ -163,7 +163,7 @@ public extension UserDefaultPreferenceKeys {
163163 var gitHubCopilotProxyPort : PreferenceKey < String > {
164164 . init( defaultValue: " " , key: " GitHubCopilotProxyPort " )
165165 }
166-
166+
167167 var gitHubCopilotEnterpriseURI : PreferenceKey < String > {
168168 . init( defaultValue: " " , key: " GitHubCopilotEnterpriseURI " )
169169 }
@@ -290,15 +290,15 @@ public extension UserDefaultPreferenceKeys {
290290 var promptToCodeEmbeddingModelId : PreferenceKey < String > {
291291 . init( defaultValue: " " , key: " PromptToCodeEmbeddingModelId " )
292292 }
293-
293+
294294 var enableSenseScopeByDefaultInPromptToCode : PreferenceKey < Bool > {
295295 . init( defaultValue: false , key: " EnableSenseScopeByDefaultInPromptToCode " )
296296 }
297-
297+
298298 var promptToCodeCodeFontSize : PreferenceKey < Double > {
299299 . init( defaultValue: 13 , key: " PromptToCodeCodeFontSize " )
300300 }
301-
301+
302302 var hideCommonPrecedingSpacesInPromptToCode : PreferenceKey < Bool > {
303303 . init( defaultValue: true , key: " HideCommonPrecedingSpacesInPromptToCode " )
304304 }
@@ -310,7 +310,7 @@ public extension UserDefaultPreferenceKeys {
310310 var oldSuggestionFeatureProvider : DeprecatedPreferenceKey < BuiltInSuggestionFeatureProvider > {
311311 . init( defaultValue: . gitHubCopilot, key: " SuggestionFeatureProvider " )
312312 }
313-
313+
314314 var suggestionFeatureProvider : PreferenceKey < SuggestionFeatureProvider > {
315315 . init( defaultValue: . builtIn( . gitHubCopilot) , key: " NewSuggestionFeatureProvider " )
316316 }
@@ -354,11 +354,11 @@ public extension UserDefaultPreferenceKeys {
354354 var acceptSuggestionWithTab : PreferenceKey < Bool > {
355355 . init( defaultValue: true , key: " AcceptSuggestionWithTab " )
356356 }
357-
357+
358358 var dismissSuggestionWithEsc : PreferenceKey < Bool > {
359359 . init( defaultValue: true , key: " DismissSuggestionWithEsc " )
360360 }
361-
361+
362362 var isSuggestionSenseEnabled : PreferenceKey < Bool > {
363363 . init( defaultValue: false , key: " IsSuggestionSenseEnabled " )
364364 }
@@ -449,15 +449,15 @@ public extension UserDefaultPreferenceKeys {
449449 var enableWebScopeByDefaultInChatContext : PreferenceKey < Bool > {
450450 . init( defaultValue: false , key: " EnableWebScopeByDefaultInChatContext " )
451451 }
452-
452+
453453 var preferredChatModelIdForSenseScope : PreferenceKey < String > {
454454 . init( defaultValue: " " , key: " PreferredChatModelIdForSenseScope " )
455455 }
456-
456+
457457 var preferredChatModelIdForProjectScope : PreferenceKey < String > {
458458 . init( defaultValue: " " , key: " PreferredChatModelIdForProjectScope " )
459459 }
460-
460+
461461 var preferredChatModelIdForWebScope : PreferenceKey < String > {
462462 . init( defaultValue: " " , key: " PreferredChatModelIdForWebScope " )
463463 }
@@ -477,33 +477,42 @@ public extension UserDefaultPreferenceKeys {
477477 var syncChatCodeHighlightTheme : PreferenceKey < Bool > {
478478 . init( defaultValue: false , key: " SyncChatCodeHighlightTheme " )
479479 }
480-
480+
481481 var codeForegroundColorLight : PreferenceKey < UserDefaultsStorageBox < StorableColor ? > > {
482482 . init( defaultValue: . init( nil ) , key: " CodeForegroundColorLight " )
483483 }
484-
484+
485485 var codeForegroundColorDark : PreferenceKey < UserDefaultsStorageBox < StorableColor ? > > {
486486 . init( defaultValue: . init( nil ) , key: " CodeForegroundColorDark " )
487487 }
488-
488+
489489 var codeBackgroundColorLight : PreferenceKey < UserDefaultsStorageBox < StorableColor ? > > {
490490 . init( defaultValue: . init( nil ) , key: " CodeBackgroundColorLight " )
491491 }
492-
492+
493493 var codeBackgroundColorDark : PreferenceKey < UserDefaultsStorageBox < StorableColor ? > > {
494494 . init( defaultValue: . init( nil ) , key: " CodeBackgroundColorDark " )
495495 }
496-
497- var suggestionFont : PreferenceKey < UserDefaultsStorageBox < StorableFont ? > > {
498- . init( defaultValue: . init( nil ) , key: " SuggestionFont " )
496+
497+ var suggestionCodeFont : PreferenceKey < UserDefaultsStorageBox < StorableFont > > {
498+ . init(
499+ defaultValue: . init( . init( nsFont: . monospacedSystemFont( ofSize: 12 , weight: . regular) ) ) ,
500+ key: " SuggestionCodeFont "
501+ )
499502 }
500-
501- var promptToCodeFont : PreferenceKey < UserDefaultsStorageBox < StorableFont ? > > {
502- . init( defaultValue: . init( nil ) , key: " promptToCodeFont " )
503+
504+ var promptToCodeCodeFont : PreferenceKey < UserDefaultsStorageBox < StorableFont > > {
505+ . init(
506+ defaultValue: . init( . init( nsFont: . monospacedSystemFont( ofSize: 12 , weight: . regular) ) ) ,
507+ key: " promptToCodeCodeFont "
508+ )
503509 }
504-
505- var chatCodeFont : PreferenceKey < UserDefaultsStorageBox < StorableFont ? > > {
506- . init( defaultValue: . init( nil ) , key: " chatCodeFont " )
510+
511+ var chatCodeFont : PreferenceKey < UserDefaultsStorageBox < StorableFont > > {
512+ . init(
513+ defaultValue: . init( . init( nsFont: . monospacedSystemFont( ofSize: 12 , weight: . regular) ) ) ,
514+ key: " chatCodeFont "
515+ )
507516 }
508517}
509518
@@ -620,11 +629,11 @@ public extension UserDefaultPreferenceKeys {
620629 key: " FeatureFlag-DisableGitHubCopilotSettingsAutoRefreshOnAppear "
621630 )
622631 }
623-
632+
624633 var disableGitIgnoreCheck : FeatureFlag {
625634 . init( defaultValue: false , key: " FeatureFlag-DisableGitIgnoreCheck " )
626635 }
627-
636+
628637 var disableFileContentManipulationByCheatsheet : FeatureFlag {
629638 . init( defaultValue: true , key: " FeatureFlag-DisableFileContentManipulationByCheatsheet " )
630639 }
@@ -635,32 +644,32 @@ public extension UserDefaultPreferenceKeys {
635644 key: " FeatureFlag-DisableEnhancedWorkspace "
636645 )
637646 }
638-
647+
639648 var restartXcodeInspectorIfAccessibilityAPIIsMalfunctioning : FeatureFlag {
640649 . init(
641650 defaultValue: false ,
642651 key: " FeatureFlag-RestartXcodeInspectorIfAccessibilityAPIIsMalfunctioning "
643652 )
644653 }
645-
654+
646655 var restartXcodeInspectorIfAccessibilityAPIIsMalfunctioningNoTimer : FeatureFlag {
647656 . init(
648657 defaultValue: true ,
649658 key: " FeatureFlag-RestartXcodeInspectorIfAccessibilityAPIIsMalfunctioningNoTimer "
650659 )
651660 }
652-
661+
653662 var toastForTheReasonWhyXcodeInspectorNeedsToBeRestarted : FeatureFlag {
654663 . init(
655664 defaultValue: false ,
656665 key: " FeatureFlag-ToastForTheReasonWhyXcodeInspectorNeedsToBeRestarted "
657666 )
658667 }
659-
668+
660669 var observeToAXNotificationWithDefaultMode : FeatureFlag {
661670 . init( defaultValue: false , key: " FeatureFlag-observeToAXNotificationWithDefaultMode " )
662671 }
663-
672+
664673 var useCloudflareDomainNameForLicenseCheck : FeatureFlag {
665674 . init( defaultValue: false , key: " FeatureFlag-UseCloudflareDomainNameForLicenseCheck " )
666675 }
0 commit comments