ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
--- description: VS Code best practices — reusing common UI primitives and patterns. Reference when writing or reviewing code. applyTo: src/vs/** ---
Button class (vs/base/browser/ui/button/button.ts) and the existing Action types (vs/base/common/actions.ts). This keeps theming, accessibility, and behavior consistent.MenuWorkbenchToolBar (vs/platform/actions/browser/toolbar.ts): give it a MenuId so actions can be contributed from anywhere (contributions, other components) without coupling.WorkbenchToolBar when you need explicit control over which actions render and where separators go.Separator class (vs/base/common/actions.ts).MenuWorkbenchToolBar lives in a widget/view that can be rendered multiple times at once, give the toolbar a scoped IContextKeyService which is scoped to the dom element of that widget/view and set the context keys per individual widget/view instance.run method receives arguments describing the invocation context (such as the originating editor group or the originating session).resolveCommandsContext (vs/workbench/browser/parts/editor/editorCommandsContext.ts) to get the correct editor(s) instead of reading editorService.activeEditor.IContextKeyService.getContextKeyValue() and branching on the result). Read the state from its owning service or model instead. Context keys are intended for declarative enablement and visibility, such as when clauses, command preconditions, and menu contributions.dom.$ and dom.h, or use mainWindow.document.createElement. Do not use targetWindow.document.createElement or element.ownerDocument.createElement; auxiliary windows intentionally reject createElement so that checks such as element instanceof HTMLElement continue to work.dom.getWindow(element) when using APIs such as timers, animation frames, focus, observers, or getComputedStyle.'file', 'untitled', or 'vscode-remote'. Use the Schemas constants from vs/base/common/network.ts (e.g. Schemas.file, Schemas.untitled, Schemas.vscodeRemote).=== or uri.toString(). Use the comparison utilities from vs/base/common/resources.ts: isEqual for equality, isEqualOrParent for containment, and getComparisonKey when a URI is used as a map/set key. These handle path-case sensitivity and fragment/authority correctly. When you need explicit control over case sensitivity, use an ExtUri instance (extUri, extUriIgnorePathCase, or extUriBiasedIgnorePathCase) instead of the bound helpers.{ supportIcons: true } when creating a ResourceLabel (vs/workbench/browser/labels.ts). This option makes the label parse $(codicon) syntax in the name/description and is only needed when you want to render a codicon inline with the resource text. By default (without it), the label computes the proper file-icon CSS classes for the resource, which is what we almost always want. Note that those classes only render as icons when an ancestor DOM element enables file icons (see below); otherwise the label shows text only.show-file-icons class and be wired to the active file icon theme. Don't add the class by hand — call createFileIconThemableTreeContainerScope (vs/workbench/contrib/files/browser/views/explorerView.ts) on the container. It adds the required show-file-icons / file-icon-themable-tree classes and keeps align-icons-and-twisties / hide-arrows in sync with the file icon theme. Register the returned IDisposable. A common bug is placing a resource-label list/tree outside such a scoped container, which makes file icons silently disappear.getComputedStyle. If a style value is needed in both CSS and TypeScript, prefer hardcoding the value in TypeScript and setting it directly on the DOM element (e.g. element.style.width = '100px'), or set a CSS custom property via element.style.setProperty('--my-var', value) when the value is needed across multiple CSS rules.inlineClassName or className plus a CSS rule.ICodeEditorService.registerDecorationType / setDecorationsByType is reserved for the extension host API and should be avoided at all cost.