Some languages support code actions which display a lightbulb providing quick fixes for a warning/error (See https://code.visualstudio.com/docs/editor/editingevolved#_code-a
The correct command editor.action.quickFix. The default binding on Windows looks like this:
editor.action.quickFix
{ "key": "ctrl+.", "command": "editor.action.quickFix", "when": "editorTextFocus" }
On Mac it's CMD + ..