Skip to content

Commit

Permalink
Prevent file watching for notebook cells (#238733)
Browse files Browse the repository at this point in the history
No file watching for notebook cell
  • Loading branch information
rebornix authored Jan 24, 2025
1 parent 0856464 commit e5b5ec4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class ChatEditingModifiedFileEntry extends Disposable implements IModifie

this._register(this.doc.onDidChangeContent(e => this._mirrorEdits(e)));

if (this.modifiedURI.scheme !== Schemas.untitled) {
if (this.modifiedURI.scheme !== Schemas.untitled && this.modifiedURI.scheme !== Schemas.vscodeNotebookCell) {
this._register(this._fileService.watch(this.modifiedURI));
this._register(this._fileService.onDidFilesChange(e => {
if (e.affects(this.modifiedURI) && kind === ChatEditKind.Created && e.gotDeleted()) {
Expand Down

0 comments on commit e5b5ec4

Please sign in to comment.