feat(core): Support print RPC call in native Python runner (no-changelog) (#18630)

This commit is contained in:
Iván Ovejero
2025-08-26 11:40:55 +02:00
committed by GitHub
parent 85e3bfd3e4
commit 1da5acee30
9 changed files with 172 additions and 17 deletions

View File

@@ -30,9 +30,13 @@ export const useCompleter = (
const word = context.matchBefore(/\w*/);
if (!word) return null;
const label = toValue(mode) === 'runOnceForEachItem' ? '_item' : '_items';
const options = [];
return { from: word.from, options: [{ label, type: 'variable' }] };
const label = toValue(mode) === 'runOnceForEachItem' ? '_item' : '_items';
options.push({ label, type: 'variable' });
options.push({ label: 'print', type: 'function' });
return { from: word.from, options };
};
return autocompletion({ icons: false, override: [completions] });