Skip to content

Commit dfa6556

Browse files
committed
Remove haxe compiler completion argument which is not useful if not outright incorrect.
1 parent 5d7c2be commit dfa6556

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

External/Plugins/HaXeContext/Completion/HaxeComplete.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -113,20 +113,6 @@ string[] BuildHxmlArgs()
113113
QuotePath(hxmlArgs);
114114
EscapeMacros(hxmlArgs);
115115

116-
// Get the current class edited (ensure completion even if class not reference in the project)
117-
var package = ASContext.Context.CurrentModel.Package;
118-
if (!string.IsNullOrEmpty(package))
119-
{
120-
var cl = ASContext.Context.CurrentModel.Package + "." + GetMainClassName();
121-
var libToAdd =
122-
FileName.Split(
123-
new[] {"\\" + String.Join("\\", cl.Split(new[] {"."}, StringSplitOptions.RemoveEmptyEntries))},
124-
StringSplitOptions.RemoveEmptyEntries).GetValue(0).ToString();
125-
hxmlArgs.Add("-cp \"" + libToAdd + "\" " + cl);
126-
}
127-
else
128-
hxmlArgs.Add(GetMainClassName());
129-
130116
String mode = (CompilerService == HaxeCompilerService.COMPLETION) ? "" : "@position";
131117
hxmlArgs.Insert(0, String.Format("--display \"{0}\"@{1}{2}", FileName, pos, mode));
132118
hxmlArgs.Insert(1, "-D use_rtti_doc");

0 commit comments

Comments
 (0)