mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-19 18:11:39 -05:00
Use .rc files in TSM instead of string literals (#16844)
More prerequisite work for Action IDs - turns out if we add the action IDs to the actions defined in `defaults.json` the string ends up being too large and the compiler complains about it. Use a `.rc` file for `defaults.json` instead and also for `enableColorSelection.json` + `userDefaults.json`.
This commit is contained in:
13
tools/CompressJson.ps1
Normal file
13
tools/CompressJson.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
# This script is used for taking a json file and stripping the whitespace from it.
|
||||
|
||||
param (
|
||||
[parameter(Mandatory = $true)]
|
||||
[string]$JsonFile,
|
||||
|
||||
[parameter(Mandatory = $true)]
|
||||
[string]$OutPath
|
||||
)
|
||||
|
||||
$jsonData = Get-Content -Raw $JsonFile | ConvertFrom-Json | ConvertTo-Json -Compress -Depth 100
|
||||
|
||||
$jsonData | Out-File -FilePath $OutPath -Encoding utf8
|
||||
Reference in New Issue
Block a user