TSC check and set editor key

This commit is contained in:
Gregory Schier
2025-11-26 06:25:02 -08:00
parent 8b851d4685
commit 2edd33b6e3
2 changed files with 7 additions and 2 deletions

View File

@@ -99,7 +99,11 @@ const stateFields = { history: historyField, folds: foldState };
const emptyVariables: WrappedEnvironmentVariable[] = [];
const emptyExtension: Extension = [];
export function Editor({
export function Editor(props: EditorProps) {
return <EditorInner key={props.stateKey} {...props} />;
}
function EditorInner({
actions,
autoFocus,
autoSelect,

View File

@@ -5,7 +5,8 @@
"type": "module",
"scripts": {
"dev": "vite dev --force",
"build": "vite build"
"build": "vite build",
"lint": "tsc --noEmit"
},
"dependencies": {
"@codemirror/commands": "^6.8.1",