Skip to content

Browser Search#317408

Draft
jruales wants to merge 2 commits into
mainfrom
jruales/2026.05-browser-search
Draft

Browser Search#317408
jruales wants to merge 2 commits into
mainfrom
jruales/2026.05-browser-search

Conversation

@jruales
Copy link
Copy Markdown
Contributor

@jruales jruales commented May 19, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 19, 2026 22:28
@jruales jruales changed the title Search, first version Browser Search May 19, 2026
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

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

Comment thread src/vs/workbench/contrib/browserView/electron-browser/browserEditor.ts Outdated
{
id: BrowserSearchEngineId.Google,
label: localize('browser.search.engine.google', "Google"),
buildSearchUrl: (q) => `https://www.google.com/search?q=${encodeQuery(q)}`,
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.

Do we need to account for regional variants, like google.de etc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

From what I'm reading (https://www.cnet.com/tech/services-and-software/one-google-to-rule-them-all-country-specific-search-domains-are-no-more/), Google moved away from regional domains in 2025 and redirects all of those to the simple .com domain

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