fix in intellisense

This commit is contained in:
Ivan Bondarev 2024-04-25 20:39:21 +02:00
parent 08c5c765b7
commit 0e25b58737
2 changed files with 5 additions and 3 deletions

View file

@ -117,7 +117,7 @@ namespace CodeCompletion
CodeCompletionController.comp.CompilerOptions.SourceFileName = cu.file_name;
visitor.Convert(cu);
is_compiled = true;
cur_used_assemblies = (Hashtable)PascalABCCompiler.NetHelper.NetHelper.cur_used_assemblies.Clone();
cur_used_assemblies = visitor.cur_used_assemblies;
return;
}

View file

@ -43,8 +43,9 @@ namespace CodeCompletion
public static bool use_semantic_for_intellisense;
private Dictionary<method_call, SymScope> method_call_cache = new Dictionary<method_call, SymScope>();
public SemanticOptions semantic_options = new SemanticOptions();
public DomSyntaxTreeVisitor(DomConverter converter)
public Hashtable cur_used_assemblies;
public DomSyntaxTreeVisitor(DomConverter converter)
{
//tcst = new TreeConverterSymbolTable(false);
this.converter = converter;
@ -70,6 +71,7 @@ namespace CodeCompletion
//throw e;
//System.Diagnostics.Debug.WriteLine(e.StackTrace);
}
cur_used_assemblies = (Hashtable)PascalABCCompiler.NetHelper.NetHelper.cur_used_assemblies.Clone();
if (use_semantic_for_intellisense && !parse_only_interface)
try
{