{"record":{"id":"5fe4910efae19c3a","repo":"ajaxorg/ace","slug":"this-is-an-obsolete-command-please-use-opencomma","errorCode":null,"errorMessage":"This is an obsolete command. Please use `openCommandPalette` instead.","messagePattern":"This is an obsolete command\\. Please use `openCommandPalette` instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/commands/default_commands.js","lineNumber":859,"sourceCode":"    },\n    multiSelectAction: \"forEach\",\n    scrollIntoView: \"cursor\"\n}, {\n    name: \"addLineBefore\",\n    description: \"Add new line before the current line\",\n    exec: function(editor) {\n        editor.selection.clearSelection();\n        var cursor = editor.getCursorPosition();\n        editor.selection.moveTo(cursor.row - 1, Number.MAX_VALUE);\n        editor.insert(\"\\n\");\n        if (cursor.row === 0) editor.navigateUp();\n    },\n    multiSelectAction: \"forEach\",\n    scrollIntoView: \"cursor\"\n}, {\n    name: \"openCommandPallete\",\n    exec: function(editor) {\n        console.warn(\"This is an obsolete command. Please use `openCommandPalette` instead.\");\n        editor.prompt({ $type: \"commands\" });\n    },\n    readOnly: true\n}, {\n    name: \"openCommandPalette\",\n    description: \"Open command palette\",\n    bindKey: bindKey(\"F1\", \"F1\"),\n    exec: function(editor) {\n        editor.prompt({ $type: \"commands\" });\n    },\n    readOnly: true\n}, {\n    name: \"modeSelect\",\n    description: \"Change language mode...\",\n    bindKey: bindKey(null, null),\n    exec: function(editor) {\n        editor.prompt({ $type: \"modes\" });\n    },","sourceCodeStart":841,"sourceCodeEnd":877,"githubUrl":"https://github.com/ajaxorg/ace/blob/2c1eddc392eb92cf222a4478f1893d2b2c354fb0/src/commands/default_commands.js#L841-L877","documentation":"This is not a thrown error but a console.warn emitted by the legacy 'openCommandPallete' command (note the misspelling). The command was kept as an alias when 'openCommandPalette' was introduced, and invoking the old name prints this deprecation notice before forwarding to editor.prompt.","triggerScenarios":"Calling editor.commands.exec('openCommandPallete') (misspelled name) or invoking the command palette through a keybinding/plugin that still references the old misspelled command name.","commonSituations":"Upgrading Ace and seeing the warning in logs; older keybindings, extensions, or user code that hardcoded the misspelled 'openCommandPallete'.","solutions":["Replace all uses of 'openCommandPallete' with 'openCommandPalette'","Update custom keybindings to bind the new command name","Treat editor.prompt({ $type: 'commands' }) as the underlying implementation if you need direct access","Silence is optional — the warning is harmless and will disappear once the new name is used"],"exampleFix":"// before\neditor.commands.exec('openCommandPallete', editor);\n// after\neditor.commands.exec('openCommandPalette', editor);","handlingStrategy":"validation","validationCode":"var cmd = editor.commands.commands['openCommandPalette'];\nif (!cmd) throw new Error('openCommandPalette not available in this ace version');","typeGuard":null,"tryCatchPattern":"try {\n  editor.commands.exec('openCommandPalette', editor);\n} catch (e) {\n  console.error('command palette failed', e);\n}","preventionTips":["Grep your codebase for the misspelled 'openCommandPallete' and replace it","Bind keybindings to 'openCommandPalette' only","Pin your ace version and read changelogs when command names change"],"tags":["deprecation","typo","commands","console-warning"],"backgroundTag":"deprecated-command-name","analyzedSha":"2c1eddc392eb92cf222a4478f1893d2b2c354fb0","analyzedAt":"2026-08-30T00:39:52.222Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}