diff --git a/lib/components/command.js b/lib/components/command.js index 367eda7..c0e1440 100644 --- a/lib/components/command.js +++ b/lib/components/command.js @@ -28,7 +28,7 @@ export default Option = (props) => { const status = { color: state === "notworking" - ? "var(--light-red)" + ? "var(--disabled-text-color)" : state === "untested" ? "var(light-yellow)" : state === "buggy" @@ -59,7 +59,7 @@ export default Option = (props) => { className="nomargin topresult" style={{ color: "var(--disabled-text-color)" }} > - command palette can't invoke this command properly. + support for invoking this command coming soon. ) : null}{" "} {state === "buggy" ? ( diff --git a/lib/components/palette.js b/lib/components/palette.js index 9539712..12c6744 100644 --- a/lib/components/palette.js +++ b/lib/components/palette.js @@ -60,6 +60,8 @@ const CommandPalette = (props) => { const normalText = command.name.toLowerCase(); const commandCat = command.category.toLowerCase(); const commandAction = command.command.toLowerCase(); + if (command.state === "disabled" || command.state === "notworking") + return; let textFilter = normalText.includes(query.toLowerCase()); let categoryFilter = commandCat.includes(query.toLowerCase()); let actionFilter = commandAction.includes(query.toLowerCase());