Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/platform/releaseNotes/common/releaseNotesService.ts
13400 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { createServiceIdentifier } from '../../../util/common/services';
7
8
/**
9
* Service to fetch release notes.
10
*/
11
export interface IReleaseNotesService {
12
readonly _serviceBrand: undefined;
13
fetchLatestReleaseNotes(): Promise<string | undefined>;
14
/**
15
* Fetch release notes for a specific VS Code version.
16
* Accepts full versions like "1.92.1" or minor versions like "1.92".
17
* Implementation should sanitize to major.minor.
18
*/
19
fetchReleaseNotesForVersion(version: string): Promise<string | undefined>;
20
}
21
22
export const IReleaseNotesService = createServiceIdentifier<IReleaseNotesService>('releaseNotesService');
23