-
-
Notifications
You must be signed in to change notification settings - Fork 472
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
Add option to not auto-update debug start settings when selected assembly changes #113
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
---|---|---|
|
@@ -43,10 +43,12 @@ sealed class StartDebuggingOptionsProvider { | |
readonly Lazy<StartDebuggingOptionsPageProvider>[] startDebuggingOptionsPageProviders; | ||
readonly Lazy<DbgProcessStarterService> dbgProcessStarterService; | ||
readonly Lazy<GenericDebugEngineGuidProvider, IGenericDebugEngineGuidProviderMetadata>[] genericDebugEngineGuidProviders; | ||
readonly Lazy<Settings.DebuggerSettingsImpl> debuggerSettingsImpl; | ||
readonly StartDebuggingOptionsMru mru; | ||
|
||
[ImportingConstructor] | ||
StartDebuggingOptionsProvider(IAppWindow appWindow, IDocumentTabService documentTabService, Lazy<DbgProcessStarterService> dbgProcessStarterService, [ImportMany] IEnumerable<Lazy<StartDebuggingOptionsPageProvider>> startDebuggingOptionsPageProviders, [ImportMany] IEnumerable<Lazy<GenericDebugEngineGuidProvider, IGenericDebugEngineGuidProviderMetadata>> genericDebugEngineGuidProviders) { | ||
StartDebuggingOptionsProvider(IAppWindow appWindow, IDocumentTabService documentTabService, Lazy<DbgProcessStarterService> dbgProcessStarterService, [ImportMany] IEnumerable<Lazy<StartDebuggingOptionsPageProvider>> startDebuggingOptionsPageProviders, [ImportMany] IEnumerable<Lazy<GenericDebugEngineGuidProvider, IGenericDebugEngineGuidProviderMetadata>> genericDebugEngineGuidProviders, Lazy<Settings.DebuggerSettingsImpl> debuggerSettingsImpl) { | ||
this.debuggerSettingsImpl = debuggerSettingsImpl; | ||
Comment on lines
+50
to
+51
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. Same as before, I am pretty sure we don't actually need the |
||
this.appWindow = appWindow; | ||
this.documentTabService = documentTabService; | ||
this.dbgProcessStarterService = dbgProcessStarterService; | ||
|
@@ -87,6 +89,9 @@ string GetCurrentFilename() { | |
|
||
var oldOptions = mru.TryGetOptions(filename); | ||
var lastOptions = mru.TryGetLastOptions(); | ||
if (oldOptions == null && lastOptions.HasValue && lastOptions!.Value.options != null && debuggerSettingsImpl.Value.DontAutoUpdateDebugLaunchSettings) | ||
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.
|
||
oldOptions = lastOptions.Value; | ||
|
||
foreach (var page in pages) { | ||
if (oldOptions?.pageGuid == page.Guid) | ||
page.InitializePreviousOptions(WithBreakKind(oldOptions!.Value.options, defaultBreakKind)); | ||
|
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.
I am pretty sure we don't actually need the
DebuggerSettingsImpl
and we could just DI the baseDebuggerSettings
class instead.