diff options
author | bobzel <zzzman@gmail.com> | 2024-03-31 23:09:53 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-03-31 23:09:53 -0400 |
commit | 108e27f0d08a8d6d3b3fcd456d6cca999c077e8b (patch) | |
tree | 1941a7b26f4cfe5abcb6c2c622c2e363a27b6a55 /src/client/util/Scripting.ts | |
parent | 1e37adacfe5b44a71ed7d7dfd785c6c2d0808eae (diff) |
fixed scrolling to targets in text views. fixed referencing fields on another doc from text box. fixed '@name' technique for publishing documents to also remove documents and work anywhere a title is set.
Diffstat (limited to 'src/client/util/Scripting.ts')
-rw-r--r-- | src/client/util/Scripting.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/Scripting.ts b/src/client/util/Scripting.ts index 31222aa50..422e708bc 100644 --- a/src/client/util/Scripting.ts +++ b/src/client/util/Scripting.ts @@ -250,7 +250,7 @@ export function CompileScript(script: string, options: ScriptOptions = {}): Comp const outputText = host.readFile('file.js'); const diagnostics = ts.getPreEmitDiagnostics(program).concat(testResult.diagnostics); - + if (script.startsWith('@')) options.typecheck = true; // need the compilation to fail so that the script will return itself as a string (instead of nothing) const result = Run(outputText, paramNames, diagnostics, script, options); if (options.globals) { |