Issue in .mdc cursorrule file editor context

issue with .mdc cursor rule files

almost impossible to edit .mdc rule files since (while typing) keyboard input focus jumps back up into the description input field ( at the end of the existing description string ) every 2 to 4 seconds. The context window flickers when that happens.

Also the AI hints are lost ( normal .md file editing works fine )

also some markdown syntax beautification is lost ( compared to .md files )

Windows 10 Pro 64bit

Version: 0.46.7 (user setup)
VSCode Version: 1.96.2
Commit: 3611c5390c448b242ab97e328493bb8ef7241e60
Date: 2025-02-27T07:28:03.958Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.19045

2 Likes

Update: seems to be related to autosave. When autosave is turned off ( manual save) globally or specifically for markdown files in the vsc settings, then the issue goes away.

Same issue here. This has only started happening in the last several releases too. Used to work fine.

Will give the turning off autosave for these files. Thanks @xblabs.


You can also set it to onFocusChange ( global here )

Or try specifically for markdown ( .mdc is matching here )


1 Like

Thanks for that. However, for some reason, it doesn’t work for me.

I’ve even tried “off” and restarting Cursor.

Edit: I’ve set “onFocusChange” globally now, which works, although not ideal.

Version: 0.46.7
VSCode Version: 1.96.2
Commit: 3611c5390c448b242ab97e328493bb8ef7241e60
Date: 2025-02-27T07:19:47.490Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.3.0

have you tried to manually add it to your /.vscode/settings.json ? at the root level? ( see earlier image posted with the red frame “Add” )

I can confirm this is still happening. My cursor moves to the description tab on autosave

I’ve encountered the same issue.

It happened when I selected ‘afterDelay’ for autosave. It works fine with other autosave options.