Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 28, 2025

This PR changes the default value of editor.inlineSuggest.experimental.triggerCommandOnProviderChange from true to false to adopt the NES (Notebook Extension Server) provider onchange event as the default behavior.

Background

The triggerCommandOnProviderChange setting controls whether to trigger a command when the inline suggestion provider changes. Based on experimental data showing no significant performance impact, we're now making the "onchange event" behavior the default.

Changes

  • Changed the default value in src/vs/editor/common/config/editorOptions.ts from true to false

Impact

With this change, when an inline completion provider changes, the code will now:

  • Execute the standard provider change handling logic (the "else branch")
  • Properly check for active suggestions from different providers before triggering
  • Use the more efficient onchange event mechanism by default

This aligns with the existing TODO comment in the codebase that suggests "remove this and always do the else branch", making the intended behavior the default.

Fixes #256458

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • electronjs.org
    • Triggering command: node-gyp (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: hediet <2931520+hediet@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Please set the default of triggerCommandOnProviderChange to false to fix #256458. Set triggerCommandOnProviderChange default to false to fix #256458 Jul 28, 2025
@Copilot Copilot AI requested a review from hediet July 28, 2025 09:52
Copilot finished work on behalf of hediet July 28, 2025 09:52
@hediet hediet marked this pull request as ready for review July 28, 2025 10:09
@hediet hediet enabled auto-merge (squash) July 28, 2025 10:10
@vs-code-engineering vs-code-engineering bot added this to the July 2025 milestone Jul 28, 2025
@hediet hediet merged commit ee89f51 into main Jul 28, 2025
18 checks passed
@hediet hediet deleted the copilot/fix-7ec154ab-9220-4e78-a874-66a48e7dceeb branch July 28, 2025 11:05
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.

Adopt NES provider onchange event
4 participants