From 3a862f2b3b9bec623f44ec649b3fb14cd7b8a8a6 Mon Sep 17 00:00:00 2001 From: Aiday Marlen Kyzy Date: Fri, 11 Oct 2024 17:42:38 +0200 Subject: [PATCH] Use `CommentThreadCollapsibleState` instead of calling hide (#6275) --- package.json | 2 +- src/commands.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fa1b47bc69..c95b893311 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "version": "0.98.0", "publisher": "GitHub", "engines": { - "vscode": "^1.92.0" + "vscode": "^1.94.0" }, "categories": [ "Other" diff --git a/src/commands.ts b/src/commands.ts index b71dd0128a..61247c8ef8 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -1439,7 +1439,7 @@ ${contents} telemetry.sendTelemetryEvent('pr.applySuggestionWithCopilot'); const commentThread = comment.parent; - commentThread.hide(); + commentThread.collapsibleState = vscode.CommentThreadCollapsibleState.Collapsed; const message = comment.body instanceof vscode.MarkdownString ? comment.body.value : comment.body; await vscode.commands.executeCommand('vscode.editorChat.start', { initialRange: commentThread.range,