Skip to content

Conversation

@JeffreyCA
Copy link
Member

@JeffreyCA JeffreyCA commented Nov 10, 2025

Fixes #272352
Arguments are now grouped together instead of being mixed with flags/options:
arg-grouped

Fixes #276406
Symlink files and folders are now grouped together with regular files and folders
symlinks

Fixes #276407
Options marked with isPersistent: true are now shown in suggestions:
persistent

Copilot AI review requested due to automatic review settings November 10, 2025 00:22
Copy link
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

This PR enhances terminal completion sorting to properly prioritize different item kinds and adds support for Fig's persistent options feature. The changes introduce a hierarchical sorting order (methods/aliases → arguments → flags/options → files/folders) and enable persistent options to be inherited by subcommands in Fig completion specs.

  • Adds argument prioritization in completion sorting to place arguments before flags/options
  • Includes symbolic link files and folders in the resource category for sorting
  • Implements Fig persistent options support with test coverage

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionModel.ts Updates comparison function to prioritize arguments and include symbolic links in resource sorting
src/vs/workbench/contrib/terminalContrib/suggest/test/browser/terminalCompletionModel.test.ts Adds tests for mixed kind sorting behavior
extensions/terminal-suggest/src/fig/figInterface.ts Adds persistent options to completion suggestions
extensions/terminal-suggest/src/test/fig.test.ts Adds test suite for Fig persistent options feature

@Tyriar Tyriar added this to the November 2025 milestone Nov 10, 2025
@meganrogge meganrogge self-requested a review November 10, 2025 15:26
Copy link
Contributor

@meganrogge meganrogge left a comment

Choose a reason for hiding this comment

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

Thank you!

@meganrogge meganrogge requested a review from Tyriar November 10, 2025 15:31
@meganrogge meganrogge merged commit 94755ed into microsoft:main Nov 10, 2025
17 checks passed
@JeffreyCA JeffreyCA deleted the terminal-suggest-isPersistent branch November 11, 2025 01:54
Kosta-Github added a commit to Kosta-Github/vscode that referenced this pull request Nov 11, 2025
…nal-tooltips-markdown

* 'main' of https://github.com/microsoft/vscode: (56 commits)
  edits: show diff for sensitive edit confirmations (microsoft#276620)
  Enable Back button on the Manage Accounts picker (microsoft#276622)
  Ignore obsolete chat content parts when loading persisted session (microsoft#276615)
  settings cleanup (microsoft#276602)
  Remove unused `args: any` parameter
  Terminal suggest - include persistent options in suggestions and improve suggestion grouping (microsoft#276409)
  fix selections not being added (microsoft#276600)
  Embed AI search into the existing search view message (microsoft#276586)
  Cleanup some eslint exemptions (microsoft#276581)
  fix microsoft#276579 (microsoft#276590)
  SCM - cleanup some more eslint rules (microsoft#276571)
  Bump gpu types and skip lib check for gpu typing issue
  Fix in smoke tests
  Remove `forChatSessionTypeAndId`
  Fix one more import
  detect `press any/a key` and ask if user wants to send `a` to terminal (microsoft#276554)
  Filter subagent and todo tools from subagent requests (microsoft#276553)
  Expand hover setting to allow for key modifier mode (microsoft#274001)
  Allow partial monacoEnvironment.getWorker/getWorkerUrl
  Update imports
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants