GDScript not recognized during in-line generation/completion

Describe the Bug

It looks like the inline generation feature (COMMAND+K) confuses GDScript with Python. Too often, I get generated functions belonging to Python and not GDScript.

Steps to Reproduce

Here is an example: I ask Cursor this:

“Can we add the thousands separator here?”

And the line I highlighted and referring to is this:

score.text = “$%d\n” % current_score

It replaces it with this Python code, which is not compatible with GDScript:

score.text = “$%s\n” % [str(current_score).pad_decimals(0).insert_commas()]

Whereas it should be:

score.text = “$%s\n” % format_number_with_commas(current_score)

The Chat fixed it correctly. It is just the inline completion that doesn’t seem to work correctly.

Expected Behavior

Cursor should have replaced the code with the appropriate GDScript code instead of regular Python.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T16:53:59.659Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.