Document changes in an inactive state will not trigger onDidChangeTextDocument events

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

In cursor 2.0.43, when I use the agent to implement code modifications, if the file being modified is not in the editor state, the file modification event will not be triggered.

Steps to Reproduce

  1. In extension, use vscode.workspace.onDidChangeTextDocument
  2. use Agent mode to change file code

Expected Behavior

onDidChangeTextDocument events should be received regardless of the state of the modified file.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.43
vscode version: 1.99.3

For AI issues: which model did you use?

auto

Does this stop you from using Cursor

No - Cursor works, but with this issue