Keybinding context to detect if a suggestion is available

I want to only have tab attempt to complete the suggestion IF a suggestion is available.

Right now (Version: 0.50.5), when I press tab with no suggestion available no indentation is inserted. I currently have this in my keybindings.json:

{
    "key": "tab",
    "command": "editor.action.acceptCursorTabSuggestion",
    "when": "!editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible"
},
{
    "key": "tab",
    "command": "-editor.action.acceptCursorTabSuggestion"
},

…where !suggestWidgetVisible prevents Cursor from attempting to autocomplete when the Intellisense suggestion is open. If there was another scope like cursorTabSuggestionAvailable, I could add that to the list, and (I think/hope) tab would indent again when there was not a suggestion.

Looks like cpp.shouldAcceptTab is what Cursor is using, based on the default keybindings. So, even if you’re not coding for C++, you want that to be present in your when clause:

{
    "key": "tab",
    "command": "editor.action.acceptCursorTabSuggestion",
    "when": "cpp.shouldAcceptTab && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible"
},
{
    "key": "tab",
    "command": "-editor.action.acceptCursorTabSuggestion"
},