mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Add 'value' to trigger formula autocomplete
Summary: API signature for autocomplete updated to add column ID, which is necessary for exposing correct types for 'value'. Test Plan: Unit tests. Reviewers: alexmojaki Reviewed By: alexmojaki Subscribers: jarek, alexmojaki Differential Revision: https://phab.getgrist.com/D2896
This commit is contained in:
@@ -60,6 +60,9 @@ class AutocompleteContext(object):
|
||||
lower += '*'
|
||||
self._lowercase[lower] = key
|
||||
|
||||
# Lowercase 'value' is used in trigger formulas, and is not the same as 'VALUE'.
|
||||
self._lowercase.pop('value', None)
|
||||
|
||||
# Add the lowercase names to the context, and to the detailed completions in _functions.
|
||||
for lower, key in six.iteritems(self._lowercase):
|
||||
self._context[lower] = self._context[key]
|
||||
|
||||
Reference in New Issue
Block a user