import { ILanguageService } from "../../../../editor/common/languages/language.service.js"; import { IEnvironmentService } from "../../../../platform/environment/common/environment.service.js"; import { IKeybindingService } from "../../../../platform/keybinding/common/keybinding.service.js"; import { IOpenerService } from "../../../../platform/opener/common/opener.service.js"; import { IProductService } from "../../../../platform/product/common/productService.service.js"; import { IRequestService } from "../../../../platform/request/common/request.service.js"; import { IWebviewWorkbenchService } from "../../webviewPanel/browser/webviewWorkbenchService.service.js"; import { IEditorGroupsService } from "../../../services/editor/common/editorGroupsService.service.js"; import { IEditorService } from "../../../services/editor/common/editorService.service.js"; import { IExtensionService } from "../../../services/extensions/common/extensions.service.js"; import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js"; import { Disposable } from "../../../../base/common/lifecycle.js"; import { SimpleSettingRenderer } from "../../markdown/browser/markdownSettingRenderer.js"; import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js"; import { ICodeEditorService } from "../../../../editor/browser/services/codeEditorService.service.js"; import { IAccessibilityService } from "../../../../platform/accessibility/common/accessibility.service.js"; import { ReleaseNotesTryouts } from "./releaseNotesTryouts.js"; interface IReleaseNotesCodeBlock { readonly id: string; readonly text: string; readonly language: string | undefined; } interface IReleaseNotesTokenization { readonly value: string; readonly codeBlocks: readonly { readonly id: string; readonly html: string; }[]; } export declare class ReleaseNotesManager extends Disposable { private readonly _environmentService; private readonly _keybindingService; private readonly _languageService; private readonly _openerService; private readonly _requestService; private readonly _configurationService; private readonly _editorService; private readonly _editorGroupService; private readonly _codeEditorService; private readonly _webviewWorkbenchService; private readonly _extensionService; private readonly _productService; private readonly _instantiationService; private readonly _accessibilityService; private readonly _simpleSettingRenderer; private readonly _releaseNotesCache; private _currentReleaseNotes; private readonly _currentDocument; private readonly _pendingDocument; private readonly _webviewDisposables; private _showRequest; private _tokenizationRequest; private _codeBlocks; constructor(_environmentService: IEnvironmentService, _keybindingService: IKeybindingService, _languageService: ILanguageService, _openerService: IOpenerService, _requestService: IRequestService, _configurationService: IConfigurationService, _editorService: IEditorService, _editorGroupService: IEditorGroupsService, _codeEditorService: ICodeEditorService, _webviewWorkbenchService: IWebviewWorkbenchService, _extensionService: IExtensionService, _productService: IProductService, _instantiationService: IInstantiationService, _accessibilityService: IAccessibilityService); private updateTokenization; private getBase; show(version: string, useCurrentFile: boolean): Promise; private loadReleaseNotes; private onDidClickLink; private addGAParameters; private renderBody; private onDidChangeConfiguration; private onDidChangeActiveWebviewEditor; private updateCheckboxWebview; } /** * Processes conditional blocks in the release notes markdown. * * Conditional blocks use a single HTML comment with the format: * ``` * * ``` * * Supported conditions: * - `IN_PRODUCT` - Content shown in VS Code (both Stable and Insiders) * - `WEB` - Content shown on the website only * - `STABLE` - Content shown in VS Code Stable only * - `INSIDERS` - Content shown in VS Code Insiders only * - `TRYOUTS` - Content shown only when the local Try This renderer is provided * * On the website, the entire block is a single HTML comment, so the * content is hidden by default. The website renderer would activate * `WEB` blocks by stripping the comment markers. */ export declare function processConditionalBlocks(text: string, activeConditions: ReadonlySet): string; export declare function renderReleaseNotesMarkdown(text: string, extensionService: IExtensionService, languageService: ILanguageService, simpleSettingRenderer: SimpleSettingRenderer, quality?: string, tryouts?: ReleaseNotesTryouts, codeBlocks?: IReleaseNotesCodeBlock[]): Promise; export declare function initializeReleaseNotesNavigation(targetDocument: Document, targetWindow: Window & typeof globalThis): () => void; export declare function applyReleaseNotesTokenization(targetDocument: Document, update: IReleaseNotesTokenization): void; export {};