豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

fix(devcontainer): remove duplicate keys and invalid setting in VS Code config#39

Merged
arilivigni merged 1 commit intomainfrom
copilot/setup-terminal-in-editor-area
Apr 6, 2026
Merged

fix(devcontainer): remove duplicate keys and invalid setting in VS Code config#39
arilivigni merged 1 commit intomainfrom
copilot/setup-terminal-in-editor-area

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 6, 2026

The devcontainer VS Code settings block contained duplicate JSON keys (workbench.startupEditor, workbench.panel.opensMaximized) and an invalid entry (workbench.action.terminal.focus, which is a command ID, not a setting) — all silently ignored or shadowed at runtime.

Changes

  • Removed duplicate workbench.startupEditor (was defined twice, both "none")
  • Removed duplicate workbench.panel.opensMaximized (was defined twice, both "always")
  • Removed workbench.action.terminal.focus: true — not a valid VS Code setting

The two settings that configure terminal-in-editor-area behavior were already correct and are preserved:

"terminal.integrated.defaultLocation": "editor",
"terminal.integrated.showOnStartup": "always"

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Cleans up the devcontainer’s VS Code settings to avoid silently ignored configuration caused by duplicate JSON keys and an invalid “setting” entry, ensuring the intended editor/terminal behavior is applied consistently in the devcontainer environment.

Changes:

  • Removed duplicate workbench.startupEditor and workbench.panel.opensMaximized keys from .devcontainer/devcontainer.json.
  • Removed invalid workbench.action.terminal.focus entry (command ID, not a setting).
  • Kept terminal-in-editor-area configuration (terminal.integrated.defaultLocation, terminal.integrated.showOnStartup) intact.
Show a summary per file
File Description
.devcontainer/devcontainer.json Deduplicates VS Code settings and removes an invalid config key so devcontainer settings aren’t shadowed/ignored.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@arilivigni arilivigni marked this pull request as ready for review April 6, 2026 00:58
@arilivigni
Copy link
Copy Markdown
Collaborator

@copilot are these settings set in the devcontainer config

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 6, 2026

@copilot are these settings set in the devcontainer config

Yes, both settings are present in the devcontainer config:

  • "terminal.integrated.defaultLocation": "editor" (line 37) — routes new terminals to open as tabs in the editor area instead of the bottom panel
  • "terminal.integrated.showOnStartup": "always" (line 47) — automatically opens a terminal when VS Code starts

Together these ensure the terminal opens in the editor area automatically on container startup.

Copilot AI requested a review from arilivigni April 6, 2026 00:59
@arilivigni arilivigni merged commit de5027e into main Apr 6, 2026
5 checks passed
@arilivigni arilivigni deleted the copilot/setup-terminal-in-editor-area branch April 6, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants