feat(editor): Propagate targetNodeParameterContext throughout expression resolution logic (no-changelog) (#16476)

This commit is contained in:
Charlie Kolb
2025-06-18 17:05:32 +02:00
committed by GitHub
parent 32b42dd2f6
commit 701c31cfbc
11 changed files with 99 additions and 36 deletions

View File

@@ -15,10 +15,12 @@ import { removeExpressionPrefix } from '@/utils/expressions';
import { mappingDropCursor } from '@/plugins/codemirror/dragAndDrop';
import { editorKeymap } from '@/plugins/codemirror/keymap';
import { expressionCloseBrackets } from '@/plugins/codemirror/expressionCloseBrackets';
import type { TargetNodeParameterContext } from '@/Interface';
type Props = {
modelValue: string;
path: string;
targetNodeParameterContext?: TargetNodeParameterContext;
isReadOnly?: boolean;
};
@@ -52,7 +54,11 @@ const { segments, readEditorValue, editor, hasFocus, focus } = useExpressionEdit
editorValue,
extensions,
isReadOnly: computed(() => props.isReadOnly),
autocompleteTelemetry: { enabled: true, parameterPath: props.path },
autocompleteTelemetry: {
enabled: true,
parameterPath: props.path,
},
targetNodeParameterContext: props.targetNodeParameterContext,
});
watch(