correct suggestion order also in body of lambda function
This commit is contained in:
parent
1ff4b181ff
commit
24689b3783
7 changed files with 24 additions and 15 deletions
|
|
@ -4,7 +4,7 @@ import { growEnv } from "dope2";
|
|||
|
||||
import { Editor, type EditorState, type State2Props } from "./Editor";
|
||||
import { EnvContext } from "./EnvContext";
|
||||
import { getUnusedTypeVar } from "./eval";
|
||||
import { evalEditorBlock, getUnusedTypeVar, type ResolvedType } from "./eval";
|
||||
import { autoInputWidth } from "./util/dom_trickery";
|
||||
|
||||
import "./LambdaBlock.css";
|
||||
|
|
@ -77,7 +77,10 @@ export function LambdaBlock({state, setState, suggestionPriority}: LambdaBlockPr
|
|||
state={state.expr}
|
||||
setState={setExpr}
|
||||
onCancel={() => setState(state => state.expr)}
|
||||
suggestionPriority={suggestionPriority}
|
||||
suggestionPriority={(s) => {
|
||||
// console.log('suggestionPriority of lambdaInner... just passing through');
|
||||
return suggestionPriority(s);
|
||||
}}
|
||||
/>
|
||||
</EnvContext>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue