Repository navigation
rename profiles.json to settings.json, clean up the defaults - #5199
Merged
6 commits merged intoApr 1, 2020
Merged
6 commits merged into
6 commits merged into
Conversation
This commit also changes Get*Settings from returning a string to returning a std::filesystem::path. We gain in expressiveness without a loss in clarity (since path still supports .c_str()). NOTE: I tried to do an atomic rename with the handle open, but it didn't work for reparse points (it moves the destination of a symbolic link out into the settings folder directly.) Fixes #5186 --- snip for atomic rename code --- auto path{ pathToSettingsFile.wstring() }; auto renameBufferSize{ sizeof(FILE_RENAME_INFO) + (path.size() * sizeof(wchar_t)) }; auto renameBuffer{ std::make_unique<std::byte[]>(renameBufferSize) }; auto renameInfo{ reinterpret_cast<FILE_RENAME_INFO*>(renameBuffer.get()) }; renameInfo->Flags = FILE_RENAME_FLAG_REPLACE_IF_EXISTS | FILE_RENAME_FLAG_POSIX_SEMANTICS; renameInfo->RootDirectory = nullptr; renameInfo->FileNameLength = gsl::narrow_cast<DWORD>(path.size()); std::copy(path.cbegin(), path.cend(), std::begin(renameInfo->FileName)); THROW_IF_WIN32_BOOL_FALSE(SetFileInformationByHandle(hLegacyFile.get(), FileRenameInfo, renameBuffer.get(), gsl::narrow_cast<DWORD>(renameBufferSize))); -----------------------------------
Dustin L. Howett (MSFT) (DHowett-MSFT)
requested a review
from Kayla Cinnamon (cinnamon-msft)
March 31, 2020 21:07
This comment has been minimized.
This comment has been minimized.
Dustin L. Howett (MSFT) (DHowett-MSFT)
marked this pull request as ready for review
March 31, 2020 21:09
Kayla Cinnamon (cinnamon-msft)
approved these changes
Mar 31, 2020
ghost
requested review from
Carlos Zamora (carlos-zamora),
Leon Liang (leonMSFT),
Michael Niksa (miniksa) and
Mike Griese (zadjii-msft)
April 1, 2020 00:05
Mike Griese (zadjii-msft)
approved these changes
Apr 1, 2020
Mike Griese (zadjii-msft)
left a comment
Member
There was a problem hiding this comment.
Looks good to me
Michael Niksa (miniksa)
approved these changes
Apr 1, 2020
Carlos Zamora (carlos-zamora)
approved these changes
Apr 1, 2020
|
Leon Liang (@leonMSFT) should approve this so that we get the whole team to approve it haha |
Contributor
Author
|
lol y’all |
Collaborator
|
I guess I should update my PR for WT env vars? |
Contributor
Author
|
Yeah! That'd be excellent. |
|
Hello Dustin L. Howett (MSFT) (@DHowett-MSFT)! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
ghost
deleted the
dev/duhowett/legacy_ii_legacy_harder
branch
April 1, 2020 19:09
Oisin Grehan (oising)
added a commit
to oising/terminal
that referenced
this pull request
Apr 1, 2020
2 of 4 tasks
Collaborator
|
🎉 Handy links: |
This was referenced Apr 22, 2020
Charles Milette (sylveon)
pushed a commit
to LazoVelko/Pokemon-Terminal
that referenced
this pull request
May 1, 2020
* Add Windows Terminal adapter * [Windows Terminal] Get defaultProfile on globals * [Windows Terminal] Update with latest version - profiles.json to settings.json microsoft/terminal#5199 - Change current profile microsoft/terminal#4852 * [Windows Terminal] Rename adapter to pass tests * [Windows Terminal] Update with default profile settings https://github.com/microsoft/terminal/blob/master/doc/user-docs/UsingJsonSettings.md#default-settings
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request migrates
profiles.jsontosettings.jsonand removes the legacy roaming AppData settings migrator.It also:
Fixes #5186.
Fixes #3291.
categorize key bindings
sync universal with main
kill stray newlines in template files
move profiles.json to settings.json
This commit also changes Get*Settings from returning a string to
returning a std::filesystem::path. We gain in expressiveness without a
loss in clarity (since path still supports .c_str()).
NOTE: I tried to do an atomic rename with the handle open, but it didn't
work for reparse points (it moves the destination of a symbolic link
out into the settings folder directly.)
(snip for atomic rename code)
(end snip)
Stop resurrecting dead roaming profiles