From 48724cd3e2f61ece65983d7a1920348473bfab52 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Mon, 23 Feb 2026 09:13:35 +0000 Subject: [PATCH] add clone option to linkcall function parameters --- .../editor-client/src/js/ui/editors/code-editors/monaco.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editors/monaco.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editors/monaco.js index a555fbac6..eaeb561a4 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editors/monaco.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editors/monaco.js @@ -954,6 +954,7 @@ RED.editor.codeEditor.monaco = (function() { * @param {Object} msg - the message object to pass to the subroutine * @param {Object} [options] - call options * @param {number} [options.timeout=5000] - the maximum time to wait for a response (default: 5000ms) + * @param {boolean} [options.clone=true] - flag to indicate if the message should be cloned (default: true) * @return {Promise} - resolves with the returned message * * @example Call "greeting-person" subroutine by name: @@ -971,7 +972,7 @@ RED.editor.codeEditor.monaco = (function() { * return result; // return new result object * \`\`\` */ - static linkcall(target: ${targets}, msg: object, options?: { timeout?: number; [key: string]: any }): Promise; + static linkcall(target: ${targets}, msg: object, options?: { timeout?: number; clone?: boolean; [key: string]: any }): Promise; // #endregion:linkcall ` }