-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Separate pruning of elevated/unelevated session buffers #19546
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
Changes from 2 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 |
|---|---|---|
|
|
@@ -1138,6 +1138,7 @@ NOYIELD | |
| NOZORDER | ||
| NPFS | ||
| nrcs | ||
| NRNW | ||
| NSTATUS | ||
| ntapi | ||
| ntdef | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,8 +8,7 @@ namespace TerminalApp | |
| None, | ||
| Content, | ||
| MovePane, | ||
| PersistLayout, | ||
| PersistAll | ||
| Persist, | ||
|
Member
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. Don't we want to keep the distinction between
Member
Author
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. Not anymore. Now, this code doesn't persist the content anymore, so any Persist will be a PersistLayout. |
||
| }; | ||
|
|
||
| runtimeclass BellEventArgs | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -140,22 +140,16 @@ namespace winrt::TerminalApp::implementation | |
| // "attach existing" rather than a "create" | ||
| args.ContentId(_control.ContentId()); | ||
| break; | ||
| case BuildStartupKind::PersistAll: | ||
| case BuildStartupKind::Persist: | ||
| { | ||
| const auto connection = _control.Connection(); | ||
| const auto id = connection ? connection.SessionId() : winrt::guid{}; | ||
|
|
||
| if (id != winrt::guid{}) | ||
| { | ||
| const auto settingsDir = CascadiaSettings::SettingsDirectory(); | ||
| const auto idStr = ::Microsoft::Console::Utils::GuidToPlainString(id); | ||
| const auto path = fmt::format(FMT_COMPILE(L"{}\\buffer_{}.txt"), settingsDir, idStr); | ||
| _control.PersistToPath(path); | ||
| args.SessionId(id); | ||
| } | ||
| break; | ||
| } | ||
| case BuildStartupKind::PersistLayout: | ||
|
Member
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. Seems like we'd want to keep the branches separate
Member
Author
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. Hmm you're right that what used to be PersistLayout, now also gets assigned a |
||
| default: | ||
| break; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.