Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/import{ Event }from'../../../base/common/event.js';import{ VSBuffer }from'../../../base/common/buffer.js';import{ extUriBiasedIgnorePathCase }from'../../../base/common/resources.js';import{URI, UriComponents }from'../../../base/common/uri.js';import{ localize }from'../../../nls.js';import{ ITunnelProxyInfo }from'../../tunnel/common/tunnelProxy.js';import{ IPermissionCategoryState, ISerializedBrowserPermissionsSnapshot, IBrowserDeviceCandidate, BrowserDeviceType, PermissionCategory }
IntegratedBrowserOpenSource
commandPrefix
BrowserViewCommandId
Open
OpenFile
NewTab
QuickOpen
OpenOrList
CloseAll
CloseAllInGroup
GoBack
GoForward
Reload
HardReload
FocusUrlInput
OpenExternal
OpenSettings
ToggleFavorite
ShowHistory
ManagePermissions
AddElementToChat
AddElementCommentToChat
AddConsoleLogsToChat
AddScreenshotToChat
AddAreaScreenshotToChat
AddFullPageScreenshotToChat
ToggleDevTools
ClearGlobalStorage
ClearWorkspaceStorage
ClearEphemeralStorage
ShowFind
HideFind
FindNext
FindPrevious
tagName
id
classNames
BrowserElementSelectionMode
Select
Comment
highlightFocusedElement
continuous
mode BrowserElementSelectionMode
active
options IBrowserElementSelectionOptions
url
elementId
comment
outerHTML
computedStyle
bounds x y width height
ancestors IElementAncestor
attributes Record
computedStyles Record
dimensions top left width height
innerText
elementId
body
comments IBrowserElementComment
pendingCommentIdsToDiscard
x
y
width
height
addComment
addCommentPlaceholder
commentOnSelectedElement
elementComment
elementCommentWithBody
emptyElementComment
removeComment
removeElementComment
focusBorder
buttonBackground
buttonForeground
widgetBackground
widgetForeground
widgetBorder
widgetShadow
contrastBorder
descriptionForeground
inputPlaceholderForeground
toolbarHoverBackground
font
reducedMotion
theme IBrowserViewTheme
keybindings commandId
aiFeaturesDisabled
maxHistoryEntries
proxyInfo ITunnelProxyInfo
trustedFileRoots
trustAllFiles
windowId
x
y
width
height
zoomFactor
cornerRadius
emulation
scale
quality
format
screenRect IBrowserViewRect
pageRect IBrowserViewRect
fullPage
awaitNextPaint
type
type sessionId
type
sessionId
IBrowserViewAgentAudience
first IBrowserViewAudience second IBrowserViewAudience
firsttype secondtype
firstsessionId secondsessionId
candidate IBrowserViewAudience pattern IBrowserViewAudience
candidatetype patterntype
patternsessionId patternsessionId candidatesessionId
id
hostWindowId
owner IBrowserViewOwner
associatedResource UriComponents
state IBrowserViewState
preserveFocus
background
pinned
parentViewId
auxiliaryWindow x y width height
info IBrowserViewInfo
initialUrl
editorOpenRequest IBrowserViewEditorOpenOptions
hostWindowId
owner IBrowserViewOwner
session BrowserViewSessionSelector
initialAudiences IBrowserViewAudience
associatedResource UriComponents
initialUrl
openSource IntegratedBrowserOpenSource
associatedResource target
targetResource target
extUriBiasedIgnorePathCase
associatedResource query fragment
targetResource query fragment
history
favicons
permissions
url
title
canGoBack
canGoForward
loading
focused
visible
isDevToolsOpen
lastScreenshot VSBuffer
lastFavicon
lastError IBrowserViewLoadError
certificateError IBrowserViewCertificateError
storageScope BrowserViewStorageScope
storageKeys IBrowserViewStorageKeys
permissions ISerializedBrowserPermissionsSnapshot
browserZoomIndex
elementSelectionState IBrowserElementSelectionState
isRemoteSession
isAreaSelectionActive
device IBrowserDeviceProfile
audiences IBrowserViewAudience
url
title
canGoBack
canGoForward
certificateError IBrowserViewCertificateError
loading
error IBrowserViewLoadError
url
errorCode
errorDescription
certificateError IBrowserViewCertificateError
host
fingerprint
error
url
hasTrustedException
issuerName
subjectName
validStart
validExpiry
focused
visible
isDevToolsOpen
key
keyCode
code
ctrlKey
shiftKey
altKey
metaKey
repeat
title
favicon
origin
category PermissionCategory
device IBrowserViewDeviceRequest
requestId
deviceType BrowserDeviceType
devices IBrowserDeviceCandidate
recompute
forward
matchCase
activeMatchOrdinal
matches
selectionArea IBrowserViewRect
finalUpdate
BrowserViewStorageScope
Global
Workspace
Ephemeral
scope BrowserViewStorageScopeGlobal
scope BrowserViewStorageScopeWorkspace
scope BrowserViewStorageScopeEphemeral
affinity
IBrowserViewSessionOptions
sessionId
owner type sessionId
initialAudiences type
session
scope BrowserViewStorageScopeEphemeral
affinity sessionId
ipcBrowserViewChannelName
browserZoomFactors
browserZoomDefaultIndex browserZoomFactors
zoomFactor
MathzoomFactor
zoomFactor
MathzoomFactor
width
height
mobile
userAgent
deviceScaleFactor
browserViewIsolatedWorldId
onDidCreateBrowserView EventIBrowserViewCreatedEvent
id EventIBrowserViewNavigationEvent
id EventIBrowserViewLoadingEvent
id EventIBrowserViewFocusEvent
id EventIBrowserViewVisibilityEvent
id EventIBrowserViewDevToolsStateEvent
id EventIBrowserViewKeyDownEvent
id EventIBrowserViewTitleChangeEvent
id EventIBrowserViewFaviconChangeEvent
id EventIBrowserViewFindInPageResult
id Event
id EventIElementData
id Event
id EventIBrowserElementSelectionState
id EventIBrowserViewRect
id Event
id EventIBrowserDeviceProfile
id Event
id EventIBrowserViewAudience
id EventIBrowserViewPermissionRequestEvent
id EventISerializedBrowserPermissionsSnapshot
windowId IBrowserViewInfo
id options IBrowserViewCreateOptions IBrowserViewInfo
id
id IBrowserViewState
id audience IBrowserViewAudience enabled
id bounds IBrowserViewBounds
id visible
id url
id
id
id
id hard
id
id
id
id options IBrowserViewCaptureScreenshotOptions VSBuffer
id force
id text options IBrowserViewFindInPageOptions
id keepSelection
id
workspaceId
id
id zoomIndex
id device IBrowserDeviceProfile
id host fingerprint
id host fingerprint
id entryIds
id origin grants IPermissionCategoryState
id requestId deviceId
id
id enabled options IBrowserElementSelectionOptions
id update IBrowserElementCommentsUpdate
id enabled
windowId config IBrowserViewWindowConfiguration
/**
* The full set of configuration a window contributes for the browser views it
* owns. Sent as a single unit by the owning window.
*/
export
interface
IBrowserViewWindowConfiguration
{
/** Theme variables for injected UI. */
readonly
:
;
/** Map of command ID to accelerator label for context menus. */
readonly
:
{
[
:
string
]
:
string
}
;
/** Whether AI features are disabled for this window. */
readonly
?
:
boolean
;
/** Maximum number of entries to retain per browser session history. */
readonly
?
:
number
;
/**
* Resolved tunnel-proxy credentials for the window's remote browser views,
* produced by the window's local node extension host (which hosts the HTTPS
* tunnel proxy). `undefined` until the proxy has started, or when no proxy
* is used. Applied to the Electron sessions of the window's remote views.
*/
readonly
?
:
;
/**
* The window's contribution to the `file://` allowlist used by integrated
* browser sessions. Main unions every window's contribution into a
* process-wide allowlist; entries are dropped when the window is destroyed.
* Usually `getTrustedUris()` plus, when the workspace itself is trusted, its
* workspace folder paths.
*/
readonly
:
readonly
string
[
]
;
/**
* Whether Workspace Trust is disabled entirely
* (`security.workspace.trust.enabled: false`) for this window. When
* `true`, every `file://` request is allowed regardless of
* {@link trustedFileRoots} since there is no meaningful notion of an
* untrusted folder to enforce.
*/
readonly
:
boolean
;
}
export
interface
IBrowserViewBounds
{
:
number
;
:
number
;
:
number
;
:
number
;
:
number
;
:
number
;
:
number
;
?
:
{
:
number
;
}
;
}
export
interface
IBrowserViewCaptureScreenshotOptions
{
/**
* JPEG quality from 0-100. Only applies when `format` is `'jpeg'`.
*/
?
:
number
;
/**
* Encoding for the captured image. Defaults to `'jpeg'`.
* `'png'` is lossless (no compression artifacts) at the cost of a larger buffer.
*/
?
:
'jpeg'
|
'png'
;
?
:
;
?
:
;
/**
* When true, capture the full scrollable document, not just the visible viewport.
* Ignored when `screenRect` or `pageRect` is set.
*/
?
:
boolean
;
/**
* When true, wait for the next compositor frame to be presented before capturing.
* Use this when the caller has just torn down an in-page overlay (e.g. the area
* picker's dashed selection rectangle) that would otherwise still be present in
* the GPU surface that `capturePage` reads.
*
* Adds ~1 frame of latency (bounded by a short timeout fallback), so leave off
* for captures that don't follow a DOM teardown.
*/
?
:
boolean
;
}
/** Identifies who controls a browser view. */
export
type
IBrowserViewOwner
=
|
{
readonly
:
'user'
}
|
{
readonly
:
'agent'
;
readonly
:
string
}
;
/**
* Grants matching agents access to a browser view. Omitted identifiers match all values.
*/
export
interface
IBrowserViewAgentAudience
{
readonly
:
'agent'
;
readonly
?
:
string
;
}
export
type
IBrowserViewAudience
=
;
export
function
equalsBrowserViewAudience
(
:
,
:
)
:
boolean
{
return
.
===
.
&&
.
===
.
;
}
/**
* Returns whether an audience satisfies a pattern whose omitted identifiers are wildcards.
*/
export
function
matchesBrowserViewAudience
(
:
,
:
)
:
boolean
{
return
.
===
.
&&
(
.
===
undefined
||
.
===
.
)
;
}
/**
* Summary information about a browser view, including its current state and
* ownership. Returned by the main service when listing or creating views.
*/
export
interface
IBrowserViewInfo
{
readonly
:
string
;
readonly
:
number
;
readonly
:
;
readonly
?
:
;
readonly
:
;
}
/** Controls how the workbench presents a newly created browser view as an editor. */
export
interface
IBrowserViewEditorOpenOptions
{
readonly
?
:
boolean
;
readonly
?
:
boolean
;
readonly
?
:
boolean
;
/** The parent view ID. Used by the workbench to place the new tab in the same editor group. */
readonly
?
:
string
;
/** When set, open in an auxiliary (new) window with these bounds. */
readonly
?
:
{
?
:
number
;
?
:
number
;
?
:
number
;
?
:
number
}
;
}
export
interface
IBrowserViewCreatedEvent
{
readonly
:
;
readonly
?
:
string
;
/** Omitted when the creator does not request an editor. */
readonly
?
:
;
}
/** Host, ownership, storage, and initial access for a newly created browser view. */
export
interface
IBrowserViewCreationContext
{
readonly
:
number
;
readonly
:
;
readonly
:
;
/** Grants automation clients access before the view is announced to other processes. */
readonly
?
:
readonly
[
]
;
}
/** Complete main-process creation contract for a browser view. */
export
interface
IBrowserViewCreateOptions
extends
IBrowserViewCreationContext
{
readonly
?
:
;
readonly
?
:
string
;
readonly
?
:
;
}
export
function
isBrowserViewAssociatedResourceNavigation
(
:
URI
,
:
string
)
:
boolean
{
const
=
URI
.
parse
(
)
;
return
.
isEqual
(
.
with
(
{
:
null
,
:
null
}
)
,
.
with
(
{
:
null
,
:
null
}
)
)
;
}
/** `applicationSharedStorage` keys this session writes to. Empty for ephemeral sessions. */
export
interface
IBrowserViewStorageKeys
{
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
}
export
interface
IBrowserViewState
{
:
string
;
:
string
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
:
|
undefined
;
:
string
|
undefined
;
:
|
undefined
;
:
|
undefined
;
:
;
:
;
:
;
:
number
;
:
;
:
boolean
;
:
boolean
;
:
|
undefined
;
:
[
]
;
}
export
interface
IBrowserViewNavigationEvent
{
:
string
;
:
string
;
:
boolean
;
:
boolean
;
:
|
undefined
;
}
export
interface
IBrowserViewLoadingEvent
{
:
boolean
;
?
:
;
}
export
interface
IBrowserViewLoadError
{
:
string
;
:
number
;
:
string
;
?
:
;
}
export
interface
IBrowserViewCertificateError
{
:
string
;
:
string
;
:
string
;
:
string
;
:
boolean
;
:
string
;
:
string
;
:
number
;
:
number
;
}
export
interface
IBrowserViewFocusEvent
{
:
boolean
;
}
export
interface
IBrowserViewVisibilityEvent
{
:
boolean
;
}
export
interface
IBrowserViewDevToolsStateEvent
{
:
boolean
;
}
export
interface
IBrowserViewKeyDownEvent
{
:
string
;
:
number
;
:
string
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
}
export
interface
IBrowserViewTitleChangeEvent
{
:
string
;
}
export
interface
IBrowserViewFaviconChangeEvent
{
:
string
|
undefined
;
}
export
interface
IBrowserViewPermissionRequestEvent
{
:
string
;
:
;
?
:
;
}
export
interface
IBrowserViewDeviceRequest
{
:
string
;
:
;
:
[
]
;
}
export
interface
IBrowserViewFindInPageOptions
{
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
}
export
interface
IBrowserViewFindInPageResult
{
:
number
;
:
number
;
?
:
;
:
boolean
;
}
export
enum
{
=
'global'
,
=
'workspace'
,
=
'ephemeral'
}
export
type
IBrowserViewSessionOptions
=
|
{
readonly
:
.
}
|
{
readonly
:
.
}
|
{
readonly
:
.
;
/** Views with the same affinity share one in-memory browser session. */
readonly
?
:
string
;
}
;
/** Selects an existing browser context by ID or resolves one from storage options. */
export
type
BrowserViewSessionSelector
=
string
|
;
export
function
getAgentBrowserViewCreationDefaults
(
:
string
)
{
return
{
:
{
:
'agent'
,
}
as
const
,
:
[
{
:
'agent'
}
]
as
const
,
:
{
:
.
,
:
}
as
const
}
;
}
export
const
=
'browserView'
;
/**
* Discrete zoom levels matching Edge/Chrome.
* Note: When those browsers say "33%" and "67%" zoom, they really mean 33.33...% and 66.66...%
*/
export
const
=
[
0.25
,
1
/
3
,
0.5
,
2
/
3
,
0.75
,
0.8
,
0.9
,
1
,
1.1
,
1.25
,
1.5
,
1.75
,
2
,
2.5
,
3
,
4
,
5
]
as
const
;
export
const
=
.
indexOf
(
1
)
;
export
function
browserZoomLabel
(
:
number
)
:
string
{
return
localize
(
'browserZoomPercent'
,
"{0}%"
,
.
round
(
*
100
)
)
;
}
export
function
browserZoomAccessibilityLabel
(
:
number
)
:
string
{
return
localize
(
'browserZoomAccessibilityLabel'
,
"Page Zoom: {0}%"
,
.
round
(
*
100
)
)
;
}
/**
* The active device emulation profile. `undefined` fields mean "use the host default" for that property.
*/
export
interface
IBrowserDeviceProfile
{
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
boolean
;
readonly
?
:
string
;
readonly
?
:
number
;
}
/**
* This should match the isolated world ID defined in `preload-browserView.ts`.
*/
export
const
=
999
;
export
interface
IBrowserViewService
{
/**
* Fires when a new browser view is created.
*/
:
<
>
;
/**
* Dynamic events that return an Event for a specific browser view ID.
*/
onDynamicDidNavigate
(
:
string
)
:
<
>
;
onDynamicDidChangeLoadingState
(
:
string
)
:
<
>
;
onDynamicDidChangeFocus
(
:
string
)
:
<
>
;
onDynamicDidChangeVisibility
(
:
string
)
:
<
>
;
onDynamicDidChangeDevToolsState
(
:
string
)
:
<
>
;
onDynamicDidKeyCommand
(
:
string
)
:
<
>
;
onDynamicDidChangeTitle
(
:
string
)
:
<
>
;
onDynamicDidChangeFavicon
(
:
string
)
:
<
>
;
onDynamicDidFindInPage
(
:
string
)
:
<
>
;
onDynamicDidClose
(
:
string
)
:
<
void
>
;
onDynamicDidSelectElement
(
:
string
)
:
<
>
;
onDynamicDidRemoveElementComment
(
:
string
)
:
<
string
>
;
onDynamicDidChangeElementSelectionState
(
:
string
)
:
<
>
;
onDynamicDidPickArea
(
:
string
)
:
<
|
undefined
>
;
onDynamicDidChangeAreaSelectionActive
(
:
string
)
:
<
boolean
>
;
onDynamicDidChangeDeviceEmulation
(
:
string
)
:
<
|
undefined
>
;
onDynamicDidChangeRemoteStatus
(
:
string
)
:
<
boolean
>
;
onDynamicDidChangeAudiences
(
:
string
)
:
<
[
]
>
;
onDynamicDidRequestPermission
(
:
string
)
:
<
>
;
onDynamicDidChangePermissions
(
:
string
)
:
<
>
;
/**
* Get all known browser views with their ownership and state information.
*/
getBrowserViews
(
?
:
number
)
:
Promise
<
[
]
>
;
/**
* Get or create a browser view instance.
*
* @paramid The browser view identifier
* @paramoptions Creation options. If a view with the given ID already exists, these options are ignored.
*/
getOrCreateBrowserView
(
:
string
,
:
)
:
Promise
<
>
;
/**
* Destroy a browser view instance
* @paramid The browser view identifier
*/
destroyBrowserView
(
:
string
)
:
Promise
<
void
>
;
/**
* Get the state of an existing browser view by ID, or throw if it doesn't exist
* @paramid The browser view identifier
* @return The state of the browser view for the given ID
* @throws If no browser view exists for the given ID
*/
getState
(
:
string
)
:
Promise
<
>
;
/**
* Adds an audience or, when disabled, removes every audience matching it.
*/
setAudience
(
:
string
,
:
,
:
boolean
)
:
Promise
<
void
>
;
/**
* Update the bounds of a browser view
* @paramid The browser view identifier
* @parambounds The new bounds for the view
*/
layout
(
:
string
,
:
)
:
Promise
<
void
>
;
/**
* Set the visibility of a browser view
* @paramid The browser view identifier
* @paramvisible Whether the view should be visible
*/
setVisible
(
:
string
,
:
boolean
)
:
Promise
<
void
>
;
/**
* Navigate the browser view to a URL
* @paramid The browser view identifier
* @paramurl The URL to navigate to
*/
loadURL
(
:
string
,
:
string
)
:
Promise
<
void
>
;
/**
* Get the current URL of a browser view
* @paramid The browser view identifier
*/
getURL
(
:
string
)
:
Promise
<
string
>
;
/**
* Go back in navigation history
* @paramid The browser view identifier
*/
goBack
(
:
string
)
:
Promise
<
void
>
;
/**
* Go forward in navigation history
* @paramid The browser view identifier
*/
goForward
(
:
string
)
:
Promise
<
void
>
;
/**
* Reload the current page
* @paramid The browser view identifier
* @paramhard Whether to do a hard reload (bypassing cache)
*/
reload
(
:
string
,
?
:
boolean
)
:
Promise
<
void
>
;
/**
* Toggle developer tools for the browser view.
* @paramid The browser view identifier
*/
toggleDevTools
(
:
string
)
:
Promise
<
void
>
;
/**
* Check if the view can go back
* @paramid The browser view identifier
*/
canGoBack
(
:
string
)
:
Promise
<
boolean
>
;
/**
* Check if the view can go forward
* @paramid The browser view identifier
*/
canGoForward
(
:
string
)
:
Promise
<
boolean
>
;
/**
* Capture a screenshot of the browser view
* @paramid The browser view identifier
* @paramoptions Screenshot options (quality and rect)
* @returns Screenshot as a buffer
*/
captureScreenshot
(
:
string
,
?
:
)
:
Promise
<
>
;
/**
* Focus the browser view
* @paramid The browser view identifier
* @paramforce Whether to force focus even if the view's window is not focused.
*/
focus
(
:
string
,
?
:
boolean
)
:
Promise
<
void
>
;
/**
* Find text in the browser view's page
* @paramid The browser view identifier
* @paramtext The text to search for
* @paramoptions Find options (forward direction, find next)
*/
findInPage
(
:
string
,
:
string
,
?
:
)
:
Promise
<
void
>
;
/**
* Stop the find in page session
* @paramid The browser view identifier
* @paramkeepSelection Whether to keep the current selection
*/
stopFindInPage
(
:
string
,
?
:
boolean
)
:
Promise
<
void
>
;
/**
* Get the currently selected text in the browser view.
* Returns immediately with empty string if the page is still loading.
* @paramid The browser view identifier
* @returns The selected text, or empty string if no selection or page is loading
*/
getSelectedText
(
:
string
)
:
Promise
<
string
>
;
/**
* Clear all storage data for the global browser session
*/
clearGlobalStorage
(
)
:
Promise
<
void
>
;
/**
* Clear all storage data for a specific workspace browser session
* @paramworkspaceId The workspace identifier
*/
clearWorkspaceStorage
(
:
string
)
:
Promise
<
void
>
;
/**
* Clear storage data for a specific browser view
* @paramid The browser view identifier
*/
clearStorage
(
:
string
)
:
Promise
<
void
>
;
/** Set the browser zoom index (independent from VS Code zoom). */
setBrowserZoomIndex
(
:
string
,
:
number
)
:
Promise
<
void
>
;
/** Set or clear the active device profile for a browser view. */
setDeviceEmulation
(
:
string
,
:
|
undefined
)
:
Promise
<
void
>
;
/**
* Trust a certificate for a given host in the browser view's session.
* The page will be automatically reloaded after trusting.
* @paramid The browser view identifier
* @paramhost The hostname that presented the certificate
* @paramfingerprint The SHA-256 fingerprint of the certificate to trust
*/
trustCertificate
(
:
string
,
:
string
,
:
string
)
:
Promise
<
void
>
;
/**
* Revoke trust for a previously trusted certificate.
* The browser view will be automatically closed after revoking.
* @paramid The browser view identifier
* @paramhost The hostname to revoke the certificate for
* @paramfingerprint The SHA-256 fingerprint of the certificate to revoke
*/
untrustCertificate
(
:
string
,
:
string
,
:
string
)
:
Promise
<
void
>
;
/**
* Delete entries from this view's session history.
* @paramid The browser view identifier
* @paramentryIds The IDs of the history entries to delete. If omitted, deletes all history.
*/
deleteBrowserHistory
(
:
string
,
?
:
readonly
number
[
]
)
:
Promise
<
void
>
;
/**
* Record permission decisions for an origin in this view's session. This is
* the single write API for permissions: it is used both by the management UI
* and to answer an outstanding {@link onDynamicDidRequestPermission} prompt.
* Recording a decision for a category auto-resolves any pending request for
* that (origin, category). The only values ever stored are `'allow'` and
* `'deny'`; passing a `null` decision clears the saved choice, falling back
* to the category default. Changes are persisted immediately.
*
* @paramid The browser view identifier
* @paramorigin The origin (URL or origin string) to record decisions for
* @paramgrants The per-category decisions to record
*/
setPermissions
(
:
string
,
:
string
,
:
readonly
[
]
)
:
Promise
<
void
>
;
/**
* Answer an in-progress hardware-device chooser raised via
* {@link onDynamicDidRequestPermission} (its `device` payload). Pass the
* chosen `deviceId`, or `null` to cancel the chooser.
*
* @paramid The browser view identifier
* @paramrequestId The device request to answer
* @paramdeviceId The selected device id, or `null` to cancel
*/
selectDevice
(
:
string
,
:
string
,
:
string
|
null
)
:
Promise
<
void
>
;
/**
* Get captured console logs for a browser view.
* Console messages are automatically captured from the moment the view is created.
* @paramid The browser view identifier
* @returns The captured console logs as a single string
*/
getConsoleLogs
(
:
string
)
:
Promise
<
string
>
;
/**
* Toggle element selection mode in a browser view.
* Element selections are delivered via {@link onDynamicDidSelectElement}.
* State changes are delivered via {@link onDynamicDidChangeElementSelectionState}.
*
* @paramid The browser view identifier
* @paramenabled Whether to enable or disable. Omit to toggle.
* @paramoptions Options to update while enabling or continuing element selection.
*/
toggleElementSelection
(
:
string
,
?
:
boolean
,
?
:
)
:
Promise
<
void
>
;
/**
* Synchronize the element comments displayed in a browser view.
*
* @paramid The browser view identifier
* @paramupdate The comment state to synchronize
*/
setElementComments
(
:
string
,
:
)
:
Promise
<
void
>
;
/**
* Toggle drag-to-select area picking on the top frame of a browser view.
* The pick result (rectangle, or `undefined` on cancellation) is delivered via
* {@link onDynamicDidPickArea}. UI toggle state is delivered via
* {@link onDynamicDidChangeAreaSelectionActive}.
*
* @paramid The browser view identifier
* @paramenabled Whether to enable or disable. Omit to toggle.
*/
toggleAreaSelection
(
:
string
,
?
:
boolean
)
:
Promise
<
void
>
;
/**
* Replace the calling window's configuration for the browser views it owns.
*
* @paramwindowId The calling window's `vscodeWindowId`.
* @paramconfig The configuration to apply.
*/