Repository navigation
Add terminal.integrated.suggest.insertTrailingSpace setting - #273384
Merged
Daniel Imms (Tyriar) merged 5 commits intoOct 27, 2025
Merged
Conversation
Co-authored-by: Tyriar <[email protected]>
Co-authored-by: Tyriar <[email protected]>
Copilot
AI
changed the title
[WIP] Add setting to insert trailing space for terminal commands
Add terminal.integrated.suggest.insertTrailingSpace setting
Oct 26, 2025
Contributor
Daniel Imms (Tyriar)
marked this pull request as ready for review
October 26, 2025 11:42
Daniel Imms (Tyriar)
approved these changes
Oct 26, 2025
Daniel Imms (Tyriar)
enabled auto-merge
October 26, 2025 11:42
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a user-configurable setting (terminal.integrated.suggest.insertTrailingSpace) to automatically insert a trailing space after accepting terminal suggestions, addressing user feedback about having to manually add spaces after completions.
- Adds new configuration setting with default value of
falsefor backward compatibility - Implements logic to append space when accepting non-folder suggestions
- Triggers re-suggestion after space insertion to enable continuous tab-completion workflow
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| terminalSuggestConfiguration.ts | Adds new boolean setting with enum value, interface property, and configuration schema |
| terminalSuggestAddon.ts | Implements trailing space insertion logic with folder exclusion and re-suggestion triggering |
| { | ||
| let sent = false; | ||
|
|
||
| // If completions were requested from the addon |
Collaborator
There was a problem hiding this comment.
This comment is confusing as it's within the addon class.
Contributor
There was a problem hiding this comment.
It is the addon that requested it though, open to suggestions
Megan Rogge (meganrogge)
approved these changes
Oct 27, 2025
Daniel Imms (Tyriar)
deleted the
copilot/add-terminal-insert-trailing-space
branch
October 27, 2025 13:34
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

Adds user-configurable setting to automatically insert a space after accepting terminal suggestions, addressing feedback that users must manually space after completions.
Changes
Configuration (
terminalSuggestConfiguration.ts)terminal.integrated.suggest.insertTrailingSpaceboolean setting (default:false)TerminalSuggestSettingIdenum andITerminalSuggestConfigurationinterfaceImplementation (
terminalSuggestAddon.ts)acceptSelectedSuggestionto append space toresultSequencewhen enabledFolderandSymbolicLinkFoldertypes to preserve seamless directory navigationBehavior
Default remains
falsefor backward compatibility. Aligns with issue discussion about making this a user preference rather than forced behavior.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.