EthanBrown.SublimeText2.UtilPackages

- Sublime package featuring the best general utility, file manipulation,
   navigation, sidebar enhancements, themes, color schemes, etc
   - AdvancedNewFile, ConsoleExec, EncodingHelper, KeymapManager,
     MoveTab, Navigation History, Open Recent Files, OpenSearchResult,
     RecentActiveFiles, Search Anywhere, SideBarEnhancements,
     Sublime Files, Soda Theme
 - Also includes a custom keybinding package hosted on GitHub
 - Merges in customized settings for User Preferences
 - Fixed minor bug in JSON helpers when adding to a simple map
This commit is contained in:
Iristyle
2013-03-07 21:43:17 -05:00
parent 6f6ef5cb09
commit 4801bdf0fb
6 changed files with 198 additions and 1 deletions

View File

@@ -127,7 +127,15 @@ function Merge-JsonSimpleMap
$currentHash = $Destination.$Name
$SimpleMap.PSObject.Properties |
% {
$currentHash.($_.Name) = $_.Value
if (!$currentHash.($_.Name))
{
$currentHash |
Add-Member -Name ($_.Name) -Value $_.Value -MemberType NoteProperty
}
else
{
$currentHash.($_.Name) = $_.Value
}
}
}
}