Path: blob/main/src/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts
3290 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45declare module 'vscode' {67// @alexr00 https://github.com/microsoft/vscode/issues/20740289export enum CommentThreadApplicability {10Current = 0,11Outdated = 112}1314export interface CommentThread2 {15/* @api this is a bit weird for the extension now. The CommentThread is a managed object, which means it listens16* to when it's properties are set, but not if it's properties are modified. This means that this will not work to update the resolved state17*18* thread.state.resolved = CommentThreadState.Resolved;19*20* but this will work21*22* thread.state = {23* resolved: CommentThreadState.Resolved24* applicability: thread.state.applicability25* };26*27* Worth noting that we already have this problem for the `comments` property.28*/29state?: CommentThreadState | { resolved?: CommentThreadState; applicability?: CommentThreadApplicability };30readonly uri: Uri;31range: Range | undefined;32comments: readonly Comment[];33collapsibleState: CommentThreadCollapsibleState;34canReply: boolean | CommentAuthorInformation;35contextValue?: string;36label?: string;37dispose(): void;38}39}404142