Skip to content
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

Tab layout not persisted #13489

Closed
jerkovicl opened this issue Jul 12, 2022 · 2 comments
Closed

Tab layout not persisted #13489

jerkovicl opened this issue Jul 12, 2022 · 2 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@jerkovicl
Copy link

Windows Terminal version

1.15.1862.0

Windows build number

10.0.19044.0

Other Software

No response

Steps to reproduce

Open couple of tabs, close the terminal and previous state is not persisted with option "firstWindowPreference": "persistedWindowLayout"

Expected Behavior

No response

Actual Behavior

Terminal launched with a single tab and state was not retrieved.

state.json

{
	"generatedProfiles" : 
	[
		"{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
		"{2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}",
		"{c8181f4e-414a-5c81-b64e-814f31fca59a}"
	],
	"persistedWindowLayouts" : 
	[
		{
			"initialPosition" : "-31991,-32000",
			"initialSize" : 
			{
				"height" : 424.0,
				"width" : 1534.4000244140625
			},
			"launchMode" : "focus",
			"tabLayout" : 
			[
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				},
				{
					"action" : "renameWindow",
					"name" : "_quake"
				}
			]
		},
		{
			"initialPosition" : "217,119",
			"initialSize" : 
			{
				"height" : 586.4000244140625,
				"width" : 1188.800048828125
			},
			"launchMode" : "default",
			"tabLayout" : 
			[
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				},
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				},
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				},
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				},
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				}
			]
		}
	]
}

settings.json

{
  "$help": "https://aka.ms/terminal-documentation",
  "$schema": "https://aka.ms/terminal-profiles-schema",
  "alwaysOnTop": false,
  "alwaysShowTabs": true,
  "centerOnLaunch": true,
  "confirmCloseAllTabs": true,
  "copyFormatting": "all",
  "copyOnSelect": true,
  "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
  "disableAnimations": false,
  "firstWindowPreference": "persistedWindowLayout",
  "focusFollowMouse": true,
  "initialCols": 120,
  "initialRows": 30,
  "largePasteWarning": false,
  "launchMode": "default",
  "multiLinePasteWarning": false,
  "showTabsInTitlebar": true,
  "showTerminalTitleInTitlebar": true,
  "startOnUserLogin": false,
  "tabSwitcherMode": "mru",
  "tabWidthMode": "compact",
  "theme": "dark",
  "useAcrylicInTabRow": true,
  "windowingBehavior": "useExisting",
  "wordDelimiters": " /\\()\"'-.,:;<>~!@#$%^&*|+=[]{}~?\u2502",
  "actions": [
    {
      "command": "toggleReadOnlyMode",
      "keys": "ctrl+shift+r"
    },
    {
      "command": {
        "action": "switchToTab",
        "index": 0
      },
      "keys": "ctrl+1"
    },
    {
      "command": {
        "action": "switchToTab",
        "index": 1
      },
      "keys": "ctrl+2"
    },
    {
      "command": {
        "action": "switchToTab",
        "index": 2
      },
      "keys": "ctrl+3"
    },
    {
      "command": {
        "action": "switchToTab",
        "index": 3
      },
      "keys": "ctrl+4"
    },
    {
      "command": {
        "action": "switchToTab",
        "index": 4
      },
      "keys": "ctrl+5"
    },

    {
      "command": {
        "action": "switchToTab",
        "index": 5
      },
      "keys": "ctrl+6",
      "name": ""
    },
    {
      "command": {
        "action": "switchToTab",
        "index": 6
      },
      "keys": "ctrl+7",
      "name": ""
    },
    {
      "command": {
        "action": "switchToTab",
        "index": 7
      },
      "keys": "ctrl+8",
      "name": ""
    },
    {
      "command": {
        "action": "switchToTab",
        "index": 8
      },
      "keys": "ctrl+9",
      "name": ""
    },
    {
      "command": {
        "action": "sendInput",
        "input": "clear\r"
      },
      "keys": "alt+k"
    },
    {
      "command": {
        "action": "closeTab"
      },
      "keys": "ctrl+w"
    },
    {
      "command": {
        "action": "newWindow"
      },
      "keys": "ctrl+shift+n"
    },
    {
      "command": {
        "action": "globalSummon",
        "desktop": "toCurrent",
        "dropdownDuration": 200,
        "monitor": "toMouse",
        "name": "quake",
        "toggleVisibility": true
      },
      "icon": "🔥",
      "keys": "win+`"
    },
    {
      "icon": "🛑",
      "command": { "action": "newTab", "elevate": true },
      "keys": "ctrl+shift+1",
      "name": "new admin tab"
    },
    {
      "icon": "🛑I🛑",
      "command": { "action": "splitPane", "split": "auto", "elevate": true },
      "keys": "alt+shift+e",
      "name": "admin split pane"
    },
    {
      "command": "closePane",
      "keys": "ctrl+shift+w"
    },
    {
      "command": {
        "action": "prevTab"
      },
      "keys": "ctrl+shift+tab"
    },
    {
      "command": {
        "action": "copy",
        "singleLine": false
      },
      "keys": "ctrl+c",
      "name": null
    },
    {
      "command": {
        "action": "newTab",
        "index": 0
      },
      "keys": "ctrl+shift+1"
    },
    {
      "command": {
        "action": "newTab",
        "index": 1
      },
      "keys": "ctrl+shift+2"
    },
    {
      "command": {
        "action": "newTab",
        "index": 2
      },
      "keys": "ctrl+shift+3"
    },
    {
      "command": {
        "action": "newTab",
        "index": 3
      },
      "keys": "ctrl+shift+4"
    },
    {
      "command": {
        "action": "newTab",
        "index": 4
      },
      "keys": "ctrl+shift+5",
      "name": ""
    },
    {
      "command": {
        "action": "newTab",
        "index": 5
      },
      "keys": "ctrl+shift+6",
      "name": ""
    },
    {
      "command": {
        "action": "newTab",
        "index": 6
      },
      "keys": "ctrl+shift+7",
      "name": ""
    },
    {
      "command": {
        "action": "newTab",
        "index": 7
      },
      "keys": "ctrl+shift+8",
      "name": ""
    },
    {
      "command": {
        "action": "newTab",
        "index": 8
      },
      "keys": "ctrl+shift+9",
      "name": ""
    },
    {
      "command": "duplicateTab",
      "keys": "ctrl+shift+d"
    },
    {
      "command": "paste",
      "keys": "ctrl+v",
      "name": ""
    },
    {
      "command": {
        "action": "setTabColor",
        "color": "#3CB371"
      },
      "name": "Set Tab Color"
    },
    {
      "command": "find",
      "keys": "ctrl+shift+f"
    },
    {
      "command": {
        "action": "splitPane",
        "split": "auto",
        "splitMode": "duplicate"
      },
      "icon": "⚡",
      "keys": "ctrl+shift+s",
      "name": "Split duplicate"
    },
    {
      "command": "tabSearch",
      "keys": "ctrl+f"
    },
    {
      "command": {
        "action": "newTab"
      },
      "keys": "ctrl+t"
    },
    {
      "command": "toggleFocusMode",
      "keys": "shift+f11"
    },
    // focus on most recently used pane
    {
      "command": {
        "action": "moveFocus",
        "direction": "previous"
      },
      "keys": "ctrl+alt+left"
    },
    {
      "command": {
        "action": "nextTab"
      },
      "keys": "ctrl+tab"
    },
    {
      "command": {
        "action": "wt",
        "commandline": "new-tab pwsh.exe ; split-pane -p \"Command Prompt\" -d C:\\ ; split-pane -p \"Ubuntu\" -H"
      },
      "keys": "ctrl+a"
    },
    {
      "command": {
        "action": "scrollDown"
      },
      "keys": "ctrl+shift+down",
      "name": ""
    },
    {
      "command": {
        "action": "findMatch",
        "direction": "next"
      }
    },
    {
      "command": {
        "action": "findMatch",
        "direction": "prev"
      },
      "keys": "f9"
    },
    {
      "command": {
        "action": "commandPalette"
      },
      "keys": "f1"
    },
    {
      "command": "scrollUpPage",
      "keys": "ctrl+shift+pgup",
      "name": ""
    },
    {
      "command": {
        "action": "openSettings"
      },
      "keys": "ctrl+comma"
    },
    {
      "command": "scrollDownPage",
      "keys": "ctrl+shift+pgdn",
      "name": ""
    },
    {
      "command": {
        "action": "scrollUp"
      },
      "keys": "ctrl+shift+up",
      "name": ""
    },
    {
      "command": {
        "action": "sendInput",
        "input": "cd ..\r"
      },
      "keys": "ctrl+up"
    },
    {
      "command": {
        "action": "openSettings",
        "target": "settingsUI"
      },
      "keys": "ctrl+shift+comma"
    },
    {
      "command": "scrollToTop",
      "keys": "ctrl+shift+home"
    },
    {
      "command": "scrollToBottom",
      "keys": "ctrl+shift+end"
    },
    // move your tabs backward (left) and forward (right) using the keyboard
    {
      "command": {
        "action": "moveTab",
        "direction": "forward"
      }
    },
    {
      "command": {
        "action": "moveTab",
        "direction": "backward"
      }
    }
  ],
  "profiles": {
    "defaults": {
      "colorScheme": "Night Owl Dark",
      "font": {
        "face": "Delugia Nerd Font"
      },
      "unfocusedAppearance": {
        "backgroundImageOpacity": 0.3
      },
      "opacity": 80
    },
    "list": [
      {
        "background": "#012456",
        "closeOnExit": "graceful",
        "colorScheme": "Solarized Dark",
        "cursorColor": "#FFFFFF",
        "cursorShape": "bar",
        "font": {
          "face": "Delugia Nerd Font",
          "size": 10
        },
        "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
        "historySize": 9001,
        "icon": "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
        "name": "Windows PowerShell",
        "opacity": 50,
        "padding": "0, 0, 0, 0",
        "snapOnInput": true,
        "startingDirectory": "%USERPROFILE%",
        "useAcrylic": false
      },
      {
        "background": "#012456",
        "backgroundImage": "%USERPROFILE%/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/RoamingState/background_gif.gif",
        "backgroundImageOpacity": 0.69999998807907104,
        "backgroundImageStretchMode": "uniformToFill",
        "closeOnExit": "never",
        "colorScheme": "Night Owl Dark",
        "cursorColor": "#00FF00",
        "cursorHeight": 25,
        "cursorShape": "vintage",
        "font": {
          "face": "Recursive Mono Csl b030st",
          "size": 12
        },
        "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
        "historySize": 9001,
        "icon": "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
        "name": "Star Wars",
        "opacity": 85,
        "padding": "0, 0, 0, 0",
        "snapOnInput": true,
        "startingDirectory": "%USERPROFILE%",
        "useAcrylic": false
      },
      {
        "closeOnExit": "never",
        "colorScheme": "Solarized Dark",
        "commandline": "Azure",
        "cursorColor": "#FFFFFF",
        "cursorShape": "bar",
        "font": {
          "face": "Consolas",
          "size": 10
        },
        "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
        "hidden": false,
        "historySize": 9001,
        "icon": "ms-appx:///ProfileIcons/{b453ae62-4e3d-5e58-b989-0a998ec441b8}.png",
        "name": "Azure Cloud Shell",
        "opacity": 85,
        "padding": "0, 0, 0, 0",
        "snapOnInput": true,
        "source": "Windows.Terminal.Azure",
        "startingDirectory": "%USERPROFILE%",
        "useAcrylic": true
      },
      {
        "adjustIndistinguishableColors": true,
        "backgroundImage": "%USERPROFILE%/Pictures/Groovy_Gorilla.png",
        "backgroundImageAlignment": "bottomRight",
        "backgroundImageStretchMode": "none",
        "bellStyle": "all",
        //"elevate": true,
        "closeOnExit": "graceful",
        "colorScheme": "Night Owl Dark",
        "cursorColor": "#80A4C2",
        "cursorShape": "doubleUnderscore",
        "experimental.useAtlasEngine": true,
        "font": {
          "face": "Delugia",
          "size": 12,
          "weight": "normal"
        },
        "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
        "hidden": false,
        "historySize": 9001,
        "icon": "%USERPROFILE%/Pictures/github-octocat.png",
        "name": "PowerShell Core",
        "opacity": 85,
        "padding": "10, 5, 10, 5",
        "snapOnInput": true,
        "source": "Windows.Terminal.PowershellCore",
        "startingDirectory": "C:/Git/frontend",
        "suppressApplicationTitle": true,
        "tabColor": "#21CF78",
        "tabTitle": "PS Core",
        "useAcrylic": true
      },
      {
        "guid": "{c8181f4e-414a-5c81-b64e-814f31fca59a}",
        "hidden": false,
        "name": "Developer Command Prompt for VS 2017",
        "source": "Windows.Terminal.VisualStudio"
      }
    ]
  },
  "schemes": [
    {
      "name": "Campbell",
      "background": "#0C0C0C",
      "black": "#0C0C0C",
      "blue": "#0037DA",
      "brightBlack": "#767676",
      "brightBlue": "#3B78FF",
      "brightCyan": "#61D6D6",
      "brightGreen": "#16C60C",
      "brightPurple": "#B4009E",
      "brightRed": "#E74856",
      "brightWhite": "#F2F2F2",
      "brightYellow": "#F9F1A5",
      "cursorColor": "#FFFFFF",
      "cyan": "#3A96DD",
      "foreground": "#F2F2F2",
      "green": "#13A10E",
      "purple": "#881798",
      "red": "#C50F1F",
      "selectionBackground": "#FFFFFF",
      "white": "#CCCCCC",
      "yellow": "#C19C00"
    },
    {
      "name": "Campbell Powershell",
      "background": "#012456",
      "black": "#0C0C0C",
      "blue": "#0037DA",
      "brightBlack": "#767676",
      "brightBlue": "#3B78FF",
      "brightCyan": "#61D6D6",
      "brightGreen": "#16C60C",
      "brightPurple": "#B4009E",
      "brightRed": "#E74856",
      "brightWhite": "#F2F2F2",
      "brightYellow": "#F9F1A5",
      "cursorColor": "#FFFFFF",
      "cyan": "#3A96DD",
      "foreground": "#CCCCCC",
      "green": "#13A10E",
      "purple": "#881798",
      "red": "#C50F1F",
      "selectionBackground": "#FFFFFF",
      "white": "#CCCCCC",
      "yellow": "#C19C00"
    },
    {
      "name": "Dracula",
      "background": "#272935",
      "black": "#272935",
      "blue": "#BD93F9",
      "brightBlack": "#555555",
      "brightBlue": "#BD93F9",
      "brightCyan": "#8BE9FD",
      "brightGreen": "#50FA7B",
      "brightPurple": "#FF79C6",
      "brightRed": "#FF5555",
      "brightWhite": "#FFFFFF",
      "brightYellow": "#F1FA8C",
      "cursorColor": "#FFFFFF",
      "cyan": "#6272A4",
      "foreground": "#F8F8F2",
      "green": "#50FA7B",
      "purple": "#6272A4",
      "red": "#FF5555",
      "selectionBackground": "#FFFFFF",
      "white": "#F8F8F2",
      "yellow": "#FFB86C"
    },
    {
      "name": "Frost",
      "background": "#FFFFFF",
      "black": "#3C5712",
      "blue": "#17B2FF",
      "brightBlack": "#749B36",
      "brightBlue": "#27B2F6",
      "brightCyan": "#13A8C0",
      "brightGreen": "#89AF50",
      "brightPurple": "#F2A20A",
      "brightRed": "#F49B36",
      "brightWhite": "#741274",
      "brightYellow": "#991070",
      "cursorColor": "#FFFFFF",
      "cyan": "#3C96A6",
      "foreground": "#000000",
      "green": "#6AAE08",
      "purple": "#991070",
      "red": "#8D0C0C",
      "selectionBackground": "#FFFFFF",
      "white": "#6E386E",
      "yellow": "#991070"
    },
    {
      "name": "Horizon",
      "black": "#0a0a0d",
      "red": "#E95678",
      "green": "#29D398",
      "yellow": "#FAB795",
      "blue": "#26BBD9",
      "purple": "#EE64AC",
      "cyan": "#59E1E3",
      "white": "#e5e5e5",
      "brightBlack": "#848484",
      "brightRed": "#EC6A88",
      "brightGreen": "#3FDAA4",
      "brightYellow": "#FBC3A7",
      "brightBlue": "#3FC4DE",
      "brightPurple": "#F075B5",
      "brightCyan": "#6BE4E6",
      "brightWhite": "#e5e5e5",
      "background": "#1c1e26",
      "foreground": "#bdc0c2"
    },
    {
      "name": "Monokai Night",
      "background": "#1F1F1F",
      "black": "#1F1F1F",
      "blue": "#6699DF",
      "brightBlack": "#75715E",
      "brightBlue": "#66D9EF",
      "brightCyan": "#E69F66",
      "brightGreen": "#A6E22E",
      "brightPurple": "#AE81FF",
      "brightRed": "#F92672",
      "brightWhite": "#F8F8F2",
      "brightYellow": "#E6DB74",
      "cursorColor": "#FFFFFF",
      "cyan": "#E69F66",
      "foreground": "#F8F8F8",
      "green": "#A6E22E",
      "purple": "#AE81FF",
      "red": "#F92672",
      "selectionBackground": "#FFFFFF",
      "white": "#F8F8F2",
      "yellow": "#E6DB74"
    },
    {
      "name": "Night Owl Dark",
      "background": "#011627",
      "black": "#011627",
      "blue": "#82AAFF",
      "brightBlack": "#969696",
      "brightBlue": "#82AAFF",
      "brightCyan": "#7FDBCA",
      "brightGreen": "#22DA6E",
      "brightPurple": "#C792EA",
      "brightRed": "#EF5350",
      "brightWhite": "#FFFFFF",
      "brightYellow": "#FFEB95",
      "cursorColor": "#FFFFFF",
      "cyan": "#21C7A8",
      "foreground": "#D6DEEB",
      "green": "#22DA6E",
      "purple": "#C792EA",
      "red": "#EF5350",
      "selectionBackground": "#FFFFFF",
      "white": "#FFFFFF",
      "yellow": "#ADDB67"
    },
    {
      "name": "One Half Dark",
      "background": "#282C34",
      "black": "#282C34",
      "blue": "#61AFEF",
      "brightBlack": "#5A6374",
      "brightBlue": "#61AFEF",
      "brightCyan": "#56B6C2",
      "brightGreen": "#98C379",
      "brightPurple": "#C678DD",
      "brightRed": "#E06C75",
      "brightWhite": "#DCDFE4",
      "brightYellow": "#E5C07B",
      "cursorColor": "#FFFFFF",
      "cyan": "#56B6C2",
      "foreground": "#DCDFE4",
      "green": "#98C379",
      "purple": "#C678DD",
      "red": "#E06C75",
      "selectionBackground": "#FFFFFF",
      "white": "#DCDFE4",
      "yellow": "#E5C07B"
    },
    {
      "name": "One Half Light",
      "background": "#FAFAFA",
      "black": "#383A42",
      "blue": "#0184BC",
      "brightBlack": "#4F525D",
      "brightBlue": "#61AFEF",
      "brightCyan": "#56B5C1",
      "brightGreen": "#98C379",
      "brightPurple": "#C577DD",
      "brightRed": "#DF6C75",
      "brightWhite": "#FFFFFF",
      "brightYellow": "#E4C07A",
      "cursorColor": "#FFFFFF",
      "cyan": "#0997B3",
      "foreground": "#383A42",
      "green": "#50A14F",
      "purple": "#A626A4",
      "red": "#E45649",
      "selectionBackground": "#FFFFFF",
      "white": "#FAFAFA",
      "yellow": "#C18301"
    },
    {
      "name": "Raspberry",
      "background": "#3C0315",
      "black": "#282A2E",
      "blue": "#0170C5",
      "brightBlack": "#676E7A",
      "brightBlue": "#80C8FF",
      "brightCyan": "#8ABEB7",
      "brightGreen": "#B5D680",
      "brightPurple": "#AC79BB",
      "brightRed": "#BD6D85",
      "brightWhite": "#FFFFFD",
      "brightYellow": "#FFFD76",
      "cursorColor": "#FFFFFF",
      "cyan": "#3F8D83",
      "foreground": "#FFFFFD",
      "green": "#76AB23",
      "purple": "#7D498F",
      "red": "#BD0940",
      "selectionBackground": "#FFFFFF",
      "white": "#FFFFFD",
      "yellow": "#E0DE48"
    },
    {
      "name": "Retro",
      "background": "#000000",
      "black": "#00FF00",
      "blue": "#00FF00",
      "brightBlack": "#00FF00",
      "brightBlue": "#00FF00",
      "brightCyan": "#00FF00",
      "brightGreen": "#00FF00",
      "brightPurple": "#00FF00",
      "brightRed": "#00FF00",
      "brightWhite": "#00FF00",
      "brightYellow": "#00FF00",
      "cursorColor": "#FFFFFF",
      "cyan": "#00FF00",
      "foreground": "#00FF00",
      "green": "#00FF00",
      "purple": "#00FF00",
      "red": "#00FF00",
      "selectionBackground": "#FFFFFF",
      "white": "#00FF00",
      "yellow": "#00FF00"
    },
    {
      "name": "Solarized Dark",
      "background": "#073642",
      "black": "#073642",
      "blue": "#268BD2",
      "brightBlack": "#002B36",
      "brightBlue": "#839496",
      "brightCyan": "#93A1A1",
      "brightGreen": "#586E75",
      "brightPurple": "#6C71C4",
      "brightRed": "#CB4B16",
      "brightWhite": "#FDF6E3",
      "brightYellow": "#657B83",
      "cursorColor": "#FFFFFF",
      "cyan": "#2AA198",
      "foreground": "#FDF6E3",
      "green": "#859900",
      "purple": "#D33682",
      "red": "#D30102",
      "selectionBackground": "#FFFFFF",
      "white": "#EEE8D5",
      "yellow": "#B58900"
    },
    {
      "name": "Solarized Light",
      "background": "#FDF6E3",
      "black": "#073642",
      "blue": "#268BD2",
      "brightBlack": "#002B36",
      "brightBlue": "#839496",
      "brightCyan": "#93A1A1",
      "brightGreen": "#586E75",
      "brightPurple": "#6C71C4",
      "brightRed": "#CB4B16",
      "brightWhite": "#FDF6E3",
      "brightYellow": "#657B83",
      "cursorColor": "#FFFFFF",
      "cyan": "#2AA198",
      "foreground": "#073642",
      "green": "#859900",
      "purple": "#D33682",
      "red": "#D30102",
      "selectionBackground": "#FFFFFF",
      "white": "#EEE8D5",
      "yellow": "#B58900"
    },
    {
      "name": "Tango Dark",
      "background": "#000000",
      "black": "#000000",
      "blue": "#3465A4",
      "brightBlack": "#555753",
      "brightBlue": "#729FCF",
      "brightCyan": "#34E2E2",
      "brightGreen": "#8AE234",
      "brightPurple": "#AD7FA8",
      "brightRed": "#EF2929",
      "brightWhite": "#EEEEEC",
      "brightYellow": "#FCE94F",
      "cursorColor": "#FFFFFF",
      "cyan": "#06989A",
      "foreground": "#FFFFFF",
      "green": "#4E9A06",
      "purple": "#75507B",
      "red": "#CC0000",
      "selectionBackground": "#FFFFFF",
      "white": "#D3D7CF",
      "yellow": "#C4A000"
    },
    {
      "name": "Tango Light",
      "background": "#FFFFFF",
      "black": "#000000",
      "blue": "#3465A4",
      "brightBlack": "#555753",
      "brightBlue": "#729FCF",
      "brightCyan": "#34E2E2",
      "brightGreen": "#8AE234",
      "brightPurple": "#AD7FA8",
      "brightRed": "#EF2929",
      "brightWhite": "#EEEEEC",
      "brightYellow": "#FCE94F",
      "cursorColor": "#000000",
      "cyan": "#06989A",
      "foreground": "#000000",
      "green": "#4E9A06",
      "purple": "#75507B",
      "red": "#CC0000",
      "selectionBackground": "#FFFFFF",
      "white": "#D3D7CF",
      "yellow": "#C4A000"
    },
    {
      "name": "Vintage",
      "background": "#000000",
      "black": "#000000",
      "blue": "#000080",
      "brightBlack": "#808080",
      "brightBlue": "#0000FF",
      "brightCyan": "#00FFFF",
      "brightGreen": "#00FF00",
      "brightPurple": "#FF00FF",
      "brightRed": "#FF0000",
      "brightWhite": "#FFFFFF",
      "brightYellow": "#FFFF00",
      "cursorColor": "#FFFFFF",
      "cyan": "#008080",
      "foreground": "#C0C0C0",
      "green": "#008000",
      "purple": "#800080",
      "red": "#800000",
      "selectionBackground": "#FFFFFF",
      "white": "#C0C0C0",
      "yellow": "#808000"
    }
  ]
}

@jerkovicl jerkovicl added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Jul 12, 2022
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Jul 12, 2022
@zadjii-msft
Copy link
Member

"initialPosition" : "-31991,-32000",

That seems.... incredibly suspicious.Do you have like, a whole pile of ultrawide monitors? Nevermind, that's for the _quake window, so that actually (kinda) makes sense. <aside>We should probably not store that that way, but that doesn't seem like something that would prevent this from working. </aside>

Curiously, when you exit the Terminal, is state.json rewritten to only have one new tab action in it/? It's interesting to me that both the persistedWindowLayouts are ignored, but also not written to...

@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jul 12, 2022
@jerkovicl
Copy link
Author

jerkovicl commented Jul 12, 2022

@zadjii-msft yes its rewritten to only have one new tab

state.json with all tabs:

{
	"generatedProfiles" : 
	[
		"{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
		"{2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}",
		"{c8181f4e-414a-5c81-b64e-814f31fca59a}"
	],
	"persistedWindowLayouts" : 
	[
		{
			"initialPosition" : "-31991,-32000",
			"initialSize" : 
			{
				"height" : 424.0,
				"width" : 1534.4000244140625
			},
			"launchMode" : "focus",
			"tabLayout" : 
			[
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				},
				{
					"action" : "renameWindow",
					"name" : "_quake"
				}
			]
		},
		{
			"initialPosition" : "0,-9",
			"initialSize" : 
			{
				"height" : 792.0,
				"width" : 1536.0
			},
			"launchMode" : "maximized",
			"tabLayout" : 
			[
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				},
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				},
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				},
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				},
				{
					"action" : "setTabColor",
					"color" : "#C71585"
				},
				{
					"action" : "focusPane",
					"id" : 0
				},
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				},
				{
					"action" : "setTabColor",
					"color" : "#C71585"
				},
				{
					"action" : "focusPane",
					"id" : 0
				}
			]
		}
	]
}

state.json on reopen with 1 tab:

{
	"generatedProfiles" : 
	[
		"{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
		"{2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}",
		"{c8181f4e-414a-5c81-b64e-814f31fca59a}"
	],
	"persistedWindowLayouts" : 
	[
		{
			"initialPosition" : "217,119",
			"initialSize" : 
			{
				"height" : 586.4000244140625,
				"width" : 1188.800048828125
			},
			"launchMode" : "default",
			"tabLayout" : 
			[
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				}
			]
		},
		{
			"initialPosition" : "-31991,-32000",
			"initialSize" : 
			{
				"height" : 424.0,
				"width" : 1534.4000244140625
			},
			"launchMode" : "focus",
			"tabLayout" : 
			[
				{
					"action" : "newTab",
					"commandline" : "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
					"profile" : "PowerShell Core",
					"startingDirectory" : "C:/Git/frontend",
					"suppressApplicationTitle" : true,
					"tabColor" : "#21CF78",
					"tabTitle" : "PS Core"
				},
				{
					"action" : "renameWindow",
					"name" : "_quake"
				}
			]
		}
	]
}

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

2 participants