change the way text suggestions are rendered + option to disable syntactic sugar
This commit is contained in:
parent
ea8c015eff
commit
2d81e42447
12 changed files with 357 additions and 291 deletions
|
|
@ -4,7 +4,7 @@ import { growEnv } from "dope2";
|
|||
|
||||
import { Editor, type EditorState } from "./Editor";
|
||||
import { EnvContext } from "./EnvContext";
|
||||
import { DeepError, evalEditorBlock, type ResolvedType } from "./eval";
|
||||
import { evalEditorBlock, type ResolvedType } from "./eval";
|
||||
import { type State2Props } from "./Editor";
|
||||
import { autoInputWidth } from "./util/dom_trickery";
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ interface LetInBlockProps extends State2Props<LetInBlockState> {
|
|||
}
|
||||
|
||||
export function makeInnerEnv(env, name: string, value: ResolvedType) {
|
||||
if (value && !(value instanceof DeepError)) {
|
||||
if (value.kind === "value") {
|
||||
return growEnv(env)(name)(value)
|
||||
}
|
||||
return env;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue