Skip to content

Browser Search - #317408

Merged
Joaquín Ruales (jruales) merged 20 commits into
mainfrom
jruales/2026.05-browser-search
Jun 9, 2026
Merged

Joaquín Ruales (jruales) merged 20 commits into
mainfrom
jruales/2026.05-browser-search

Conversation

@jruales

@jruales Joaquín Ruales (jruales) commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings May 19, 2026 22:28
@jruales Joaquín Ruales (jruales) changed the title Search, first version Browser Search May 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds first-pass “search from the integrated browser address bar” support by classifying address-bar input as URL vs query, building a search URL for configured engines, and wiring UI/telemetry updates in the integrated browser editor.

Changes:

  • Introduces shared address-bar input classification + search URL construction utilities (with unit tests).
  • Adds experimental settings for enabling address-bar search and selecting a search engine.
  • Updates the integrated browser editor to (optionally) search on Enter, show an inline action preview icon, and emit distinct telemetry for search vs URL navigation.
Show a summary per file
File Description
src/vs/workbench/contrib/browserView/test/common/browserSearch.test.ts Adds unit coverage for input classification and search URL building.
src/vs/workbench/contrib/browserView/electron-browser/media/browser.css Styles for the address-bar “search vs URL” preview indicator.
src/vs/workbench/contrib/browserView/electron-browser/features/browserSearchFeatures.ts Registers experimental settings for address-bar search and engine choice.
src/vs/workbench/contrib/browserView/electron-browser/browserView.contribution.ts Wires the new search settings contribution into the integrated browser feature set.
src/vs/workbench/contrib/browserView/electron-browser/browserEditor.ts Integrates search behavior on navigation, dynamic placeholder, and preview-indicator updates.
src/vs/workbench/contrib/browserView/electron-browser/addressBarInputPreviewWidget.ts Implements the decorative address-bar action preview widget (magnifier/globe).
src/vs/workbench/contrib/browserView/common/browserView.ts Extends navigation telemetry + model API to distinguish search-triggered navigations.
src/vs/workbench/contrib/browserView/common/browserSearch.ts New shared utilities: input classification and per-engine search URL construction.

Copilot's findings

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

This reverts commit 6676b06.
…er-search

# Conflicts:
#	src/vs/workbench/contrib/browserView/common/browserView.ts
#	src/vs/workbench/contrib/browserView/electron-browser/browserEditor.ts
#	src/vs/workbench/contrib/browserView/electron-browser/media/browser.css
…er-search

# Conflicts:
#	src/vs/workbench/contrib/browserView/electron-browser/widgets/browserUrlBarWidget.ts
Address PR review: move address-bar search resolution into the nav bar so navigate()/loadURL() take a plain URL.

- navigate() is now a pure load-this-URL entry point taking an optional telemetry source; removes IBrowserNavigateOptions and the config-service/search dependencies from BrowserEditorInput.
- loadURL() takes a BrowserNavigationSource override instead of fromSearch; http:// fixup runs unconditionally again.
- Collapse IBrowserUrlPrimaryAction into IUrlPickerItem; getPrimaryActions returns picker items directly and raw-text commits route through the host default item.
- Remove now-dead resolveAddressBarNavigation and its tests.
- Drop the stale 'first entry is the default' comment on BROWSER_SEARCH_ENGINES.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

Comments suppressed due to low confidence (1)

src/vs/workbench/contrib/browserView/electron-browser/widgets/browserUrlBarWidget.ts:131

  • refreshUrl() updates the display placeholder attribute but does not update the placeholder of an already-open quick pick. If the host placeholder changes while the picker is open (e.g. toggling search engine), the picker continues to show the stale placeholder until it is reopened.
		// Keep the placeholder in sync with host state (e.g. search enablement).
		this._urlDisplay.setAttribute('data-placeholder', this._placeholder);
		const picker = this._picker.value;
		if (picker) {
			picker.value = this._canonicalUrl;
		}
  • Files reviewed: 8/8 changed files
  • Comments generated: 1

@jruales
Joaquín Ruales (jruales) enabled auto-merge (squash) June 9, 2026 22:03
@jruales
Joaquín Ruales (jruales) merged commit bbb4286 into main Jun 9, 2026
39 of 40 checks passed
@jruales
Joaquín Ruales (jruales) deleted the jruales/2026.05-browser-search branch June 9, 2026 22:42
@vs-code-engineering vs-code-engineering Bot added this to the 1.125.0 milestone Jun 9, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jul 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrated Browser: Web search

4 participants