xblabs
February 27, 2025, 6:47pm
1
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
3 Likes
xblabs
February 28, 2025, 1:12pm
2
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.
tnaseem
February 28, 2025, 2:51pm
3
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 .
xblabs
February 28, 2025, 3:04pm
4
You can also set it to onFocusChange ( global here )
Or try specifically for markdown ( .mdc is matching here )
2 Likes
tnaseem
February 28, 2025, 3:31pm
5
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
xblabs
March 7, 2025, 4:39pm
6
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
h6ak
March 10, 2025, 7:39am
8
I’ve encountered the same issue.
It happened when I selected ‘afterDelay’ for autosave. It works fine with other autosave options.
Thanks it works, I need it for automatic rule creation, I’ve almost gone crazy.
system
Closed
April 22, 2025, 8:06am
10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.