Skip to content

Commit

Permalink
Tidy AST launch codelens
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Nov 6, 2024
1 parent 52a62ab commit 09bfad3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lsp/src/main/java/workspace/plugins/ASTPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ protected void preCheck(CheckPrepareEvent ev)
* We register the launch/debug code lens here, if the tree is dirty. Else it
* is registered by the TCPlugin.
*/
protected List<ASTCodeLens> getASTCodeLenses(boolean dirty)
protected List<ASTCodeLens> getASTCodeLenses()
{
List<ASTCodeLens> lenses = new Vector<ASTCodeLens>();

Expand Down
3 changes: 1 addition & 2 deletions lsp/src/main/java/workspace/plugins/ASTPluginPR.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,10 @@ public String[] getFilenameFilters()
public JSONArray getCodeLenses(File file)
{
JSONArray results = new JSONArray();
ASTPlugin ast = registry.getPlugin("AST");

if (dirtyClassList != null && !dirtyClassList.isEmpty()) // May be syntax errors
{
List<ASTCodeLens> lenses = getASTCodeLenses(ast.isDirty());
List<ASTCodeLens> lenses = getASTCodeLenses();

for (ASTClassDefinition clazz: dirtyClassList)
{
Expand Down
3 changes: 1 addition & 2 deletions lsp/src/main/java/workspace/plugins/ASTPluginSL.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,10 @@ public String[] getFilenameFilters()
public JSONArray getCodeLenses(File file)
{
JSONArray results = new JSONArray();
ASTPlugin ast = registry.getPlugin("AST");

if (dirtyModuleList != null && !dirtyModuleList.isEmpty())
{
List<ASTCodeLens> lenses = getASTCodeLenses(ast.isDirty());
List<ASTCodeLens> lenses = getASTCodeLenses();

for (ASTModule module: dirtyModuleList)
{
Expand Down

0 comments on commit 09bfad3

Please sign in to comment.