Skip to content

Commit

Permalink
Use CommentThreadCollapsibleState instead of calling hide (#6275)
Browse files Browse the repository at this point in the history
  • Loading branch information
aiday-mar authored Oct 11, 2024
1 parent 17907da commit 3a862f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"version": "0.98.0",
"publisher": "GitHub",
"engines": {
"vscode": "^1.92.0"
"vscode": "^1.94.0"
},
"categories": [
"Other"
Expand Down
2 changes: 1 addition & 1 deletion src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3a862f2

Please sign in to comment.