Pseudo function signatures

Show pseudo function signatures in the variant editor box as a UX hint that you're typing in javascript and have access to the scenario.
This commit is contained in:
Kyle Corbitt
2023-07-14 12:59:10 -07:00
parent 3c59e4b774
commit 731406d1f4
2 changed files with 18 additions and 15 deletions

View File

@@ -9,6 +9,8 @@ import parserTypescript from "prettier/plugins/typescript";
import parserEstree from "prettier/plugins/estree";
import { type languages } from "monaco-editor/esm/vs/editor/editor.api";
export const editorBackground = "#fafafa";
export type SharedVariantEditorSlice = {
monaco: null | ReturnType<typeof loader.__getMonacoInstance>;
loadMonaco: () => Promise<void>;
@@ -50,7 +52,7 @@ export const createVariantEditorSlice: SliceCreator<SharedVariantEditorSlice> =
inherit: true,
rules: [],
colors: {
"editor.background": "#fafafa",
"editor.background": editorBackground,
},
});