We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c31f2d0 commit f4f0ab3Copy full SHA for f4f0ab3
src/vs/workbench/contrib/comments/browser/commentReply.ts
@@ -218,8 +218,8 @@ export class CommentReply<T extends IRange | ICellRange> extends Disposable {
218
219
this._commentThreadDisposables.push(this._commentThread.onDidChangeInput(input => {
220
const thread = this._commentThread;
221
-
222
- if (thread.input && thread.input.uri !== commentEditor.getModel()!.uri) {
+ const model = commentEditor.getModel();
+ if (thread.input && model && (thread.input.uri !== model.uri)) {
223
return;
224
}
225
if (!input) {
0 commit comments