Skip to content

Commit

Permalink
Improve code completion for systems.
Browse files Browse the repository at this point in the history
The completion server runs macros in hopes of getting better completion. However, if you're trying to import a class, the macro won't be able to find it, and it will abort, preventing the server from importing that class for you. By skipping the macro (which doesn't add much worth completing), we avoid this.
  • Loading branch information
player-03 committed Nov 1, 2024
1 parent 639555a commit 72f84e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/echoes/macro/SystemBuilder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ class SystemBuilder {
private static function buildInternal(isGenericBuild:Bool):Array<Field> {
var fields:Array<Field> = Context.getBuildFields();

if(Context.defined("display")) {
return fields;
}

//Information gathering
//=====================

Expand Down

0 comments on commit 72f84e6

Please sign in to comment.