@@ -147,9 +147,10 @@ def get_suggestions_for(self, controller, start):
147147 sugs .update (self ._keyword_suggestions (datafile , start , ctx ))
148148 else :
149149 sugs .update (self ._variable_suggestions (controller , start , ctx ))
150+ print (f"DEBUG: namespace.py Namespace get_suggestions_for BEFORE CONTENT start={ start } { sugs = } " )
150151 if not self ._looks_like_variable (start ): # Search in content
151152 for v in ['${' , '@{' , '&{' , '%{' , '$' ]:
152- sugs .update (self ._content_suggestions (f'{ v } { start } ' ))
153+ sugs .update (self ._content_suggestions (f'{ v } { utils . normalize ( start ) } ' ))
153154 else :
154155 sugs .update (self ._content_suggestions (start ))
155156 print (f"DEBUG: namespace.py Namespace get_suggestions_for FROM CONTENT start={ start } { sugs = } " )
@@ -190,16 +191,16 @@ def _content_suggestions(self, start):
190191 if isinstance (v , (TestCaseUserKeywordInfo , ResourceUserKeywordInfo , UserKeywordInfo ,
191192 LibraryKeywordInfo , BlockKeywordInfo )):
192193 if v .name .lower ().startswith (start .lower ()):
193- sugs .update (v .name )
194+ sugs .add (v .name )
194195 elif isinstance (v , (VariableInfo , ArgumentInfo )):
195196 if v .name_matches (start ):
196197 print (f"DEBUG: namespace.py Namespace _content_suggestions SUGGESTION from VARIABLE { v .name = } " )
197- sugs .update (v .name )
198+ sugs .add (v .name )
198199 elif (v .lower ().startswith (start .lower ()) or v .strip ('$&@%{[()]}=' ).lower ()
199200 .startswith (start .strip ('$&@%{[()]}=' ).lower ())):
200201 print (f"DEBUG: namespace.py Namespace _content_suggestions SUGGESTION from STRING { v = } "
201202 f"\n v.lower().startswith(start.lower() ={ v .lower ().startswith (start .lower ())} " )
202- sugs .update (v )
203+ sugs .add (v )
203204 return sugs
204205
205206 @staticmethod
0 commit comments