ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
A generic workbench editor for viewing collections of images in a carousel/slideshow UI. Opens as a modal editor pane with navigation arrows, a caption, and a thumbnail strip.
The image carousel is a self-contained workbench contribution that follows the custom editor pattern:
vscode-image-carousel (registered in Schemas in src/vs/base/common/network.ts) — used for EditorInput.resource identity.ImageCarouselEditorInput with a collection and open it directly via IEditorService.openEditor().const collection: IImageCarouselCollection = { id, title, sections: [{ title: '', images: [...] }] };
const input = new ImageCarouselEditorInput(collection, startIndex);
await editorService.openEditor(input, { pinned: true }, MODAL_GROUP);Clicking an image attachment pill in chat (when chat.imageCarousel.enabled is true) executes the workbench.action.chat.openImageInCarousel command, which collects request attachment images together with response-derived images for the current chat session and opens them in the carousel. MIME types are resolved via getMediaMime() from src/vs/base/common/mime.ts.
MODAL_GROUP (-4) as an overlay.canSerialize() returns false — image data is in-memory only.sessionResource + '_carousel' for stable dedup via EditorInput.matches().chat.imageCarousel.enabled (default false, tagged preview). When off, clicks fall through to openResource().h() helper from vs/base/browser/dom with @name references for declarative DOM — no imperative document.createElement calls.div.bottom-bar flex column below the image area.setInput(), updates only changing parts to avoid flash on navigation._imageDisposables (revoked on nav), thumbnails in _contentDisposables (revoked on clearInput()).outline: none !important on :focus / :focus-visible to override the workbench's global [tabindex="0"] focus styles.registerOpenEditorListeners (click, double-click, Enter, Space) matching other attachment widgets.keydown listener with stopPropagation() — not Action2 keybindings, because the modal editor's KEY_DOWN handler blocks workbench.* commands not in its allowlist. The editor overrides focus() to forward focus to the slideshow container so arrow keys work immediately without clicking.Zoom state is ZoomScale = number | 'fit' held in _zoomScale.
| Gesture | Effect | |---------|--------| | Click | Zoom in one level | | Alt+click (Mac) / Ctrl+click (Win/Linux) | Zoom out one level | | Ctrl+scroll (Win/Linux) or Alt+scroll (Mac) | Continuous zoom (~7.5% per tick) | | Trackpad pinch | Zoom (reported as wheel + e.ctrlKey) |
Predefined zoom levels: 10%, 20%, 30%, …, 100%, 150%, 200%, 300%, 500%, 700%, 1000%, 1500%, 2000%. Click cycles through these levels.
_applyZoom(scale) is the central method:
'fit' → adds scale-to-fit class, clears img.style.zoom, removes .zoomed from containerimg.style.zoom, adds .zoomed on the container (enabling overflow: auto for panning with themed scrollbars), preserves scroll center using dx/dy ratio math, adds pixelated class at ≥ 3× zoomZoom always resets to 'fit' when navigating to a different image.
Cursor changes to zoom-out when the zoom-out modifier key is held (via .zoom-out class on the container).