diff --git a/Projects/Foundations/UI/Spaces/CodeEditor-Space/EditorPage.js b/Projects/Foundations/UI/Spaces/CodeEditor-Space/EditorPage.js index 98514de83..2c6e47e9e 100644 --- a/Projects/Foundations/UI/Spaces/CodeEditor-Space/EditorPage.js +++ b/Projects/Foundations/UI/Spaces/CodeEditor-Space/EditorPage.js @@ -3,6 +3,7 @@ function newFoundationsCodeEditorEditorPage() { originatingNode: undefined, editorType: undefined, render: render, + reset:reset, initialize: initialize, finalize: finalize } @@ -38,6 +39,10 @@ function newFoundationsCodeEditorEditorPage() { } + function reset() { + finalize() + initialize() + } function render(originatingNode, editorType) { @@ -351,7 +356,6 @@ function newFoundationsCodeEditorEditorPage() { objectMerge(chartMarketExchangeObj, stringRepresentation.split('.').reduceRight((o, x) => ({[x]: o}), "")) }) - console.log(chartMarketExchangeObj) function objectMerge(target, source) { for (const key of Object.keys(source)) { diff --git a/Projects/Foundations/UI/Spaces/Design-Space/Workspace.js b/Projects/Foundations/UI/Spaces/Design-Space/Workspace.js index b26180407..63c6ad347 100644 --- a/Projects/Foundations/UI/Spaces/Design-Space/Workspace.js +++ b/Projects/Foundations/UI/Spaces/Design-Space/Workspace.js @@ -705,6 +705,9 @@ function newWorkspace() { executeAction({ node: droppedNode, name: 'Create UI Object', project: 'Visual-Scripting', extraParameter: positionOffset }) executeAction({ name: 'Connect Children to Reference Parents', project: 'Visual-Scripting' }) + // Recreate autocomplete models + UI.projects.foundations.spaces.codeEditorSpace.editorPage.reset() + droppedNode = undefined } catch (err) { if (ERROR_LOG === true) { logger.write('[ERROR] spawn -> err = ' + err.stack) }