mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-17 17:33:32 +01:00
@@ -1128,7 +1128,7 @@ export class CommentController implements IEditorContribution {
|
||||
if (!newCommentInfos.length || !this.editor?.hasModel()) {
|
||||
this._addInProgress = false;
|
||||
if (!newCommentInfos.length) {
|
||||
throw new Error('There are no commenting ranges at the current position.');
|
||||
throw new Error(`There are no commenting ranges at the current position (${range ? 'with range' : 'without range'}).`);
|
||||
}
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user