ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это 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 * as dom from '../../../../base/browser/dom.js';
import { DisposableStore, IDisposable } from '../../../../base/common/lifecycle.js';
import { IWorkbenchLayoutService } from '../../../../workbench/services/layout/browser/layoutService.js';
import { isPhoneLayout } from './mobileLayout.js';
/** Pixels of pointer movement before a drag is treated as a scroll
* gesture rather than a tap. Small enough that taps stay responsive,
* large enough that micro-jitter on touch devices doesn't hijack
* clicks. */
const TAP_THRESHOLD_PX = 6;
/**
* Wires pointer-event-based horizontal scrolling on a chip lane.
*
* On phone, the chat-input chip row uses `overflow-x: auto` to scroll
* natively when content overflows the viewport, but each chip's
* `Gesture.addTarget` (in monaco's action-bar item renderer) calls
* `preventDefault` on `touchmove`, swallowing the pan before the lane
* can scroll. To restore the scroll behavior, this helper listens for
* pointer events on the lane element and translates horizontal drags
* into `scrollLeft` updates. A small movement threshold keeps single
* taps falling through to the chip click handlers (so taps still open
* pickers); once the threshold is crossed the gesture is claimed via
* `setPointerCapture` and the trailing synthetic click is suppressed.
*
* The pointer handlers self-gate on phone-layout: on desktop they
* return immediately so mouse-drag semantics on the bottom toolbar
* are unchanged. The cost on desktop is one DOM-class read per
* pointer-down — negligible.
*
* The element with `overflow-x: auto` (the chip row).
* Used to read the current viewport class.
* Disposable that detaches all pointer listeners.
*/
lane HTMLElement layoutService IWorkbenchLayoutService IDisposable
store
pointerId
startX
startScrollLeft
didDrag
storedomlane domEventType e PointerEvent
layoutService
eisPrimary epointerType epointerType
pointerId epointerId
startX eclientX
startScrollLeft lanescrollLeft
didDrag
storedomlane domEventType e PointerEvent
pointerId epointerId
deltaX eclientX startX
didDrag MathdeltaX
didDrag
didDrag
laneepointerId
lanescrollLeft startScrollLeft deltaX
e
e PointerEvent
pointerId epointerId
pointerId
didDrag
laneepointerId
clickEvent MouseEvent
clickEvent
clickEvent
lane swallow
lane swallow
domlane lane swallow
storedomlane domEventType endDrag
storedomlane endDrag
store