Skip to content

Commit

Permalink
fixed some issues with lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Vanusanik committed Mar 19, 2023
1 parent 4655c4c commit b97de7f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies {
implementation("org.watertemplate:watertemplate-engine:1.2.2")
implementation("com.google.guava:guava:31.1-jre")
implementation("org.rauschig:jarchivelib:1.2.0")
implementation("org.jsoup:jsoup:1.7.2")
implementation("org.jsoup:jsoup:1.15.4")

testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2")
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/com/en_circle/slt/plugin/SltProjectListener.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.en_circle.slt.plugin;

import com.en_circle.slt.plugin.services.SltProjectService;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.project.ProjectManagerListener;
import org.jetbrains.annotations.NotNull;

public class SltProjectListener implements ProjectManagerListener {

@Override
public void projectOpened(@NotNull Project project) {
SltProjectService.getInstance(project);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ public void showCLHSSymbol(String symbolName) {
hyperspecView.showUrl(url);
}
});
return;
} else {
Messages.showInfoMessage(String.format(SltBundle.message("slt.ui.clhs.nosymbol.message"), symbolName),
SltBundle.message("slt.ui.clhs.nosymbol.title"));
}
} else {
Messages.showInfoMessage(String.format(SltBundle.message("slt.ui.clhs.loading.message"), symbolName),
SltBundle.message("slt.ui.clhs.loading.title"));
}

Messages.showInfoMessage(String.format(SltBundle.message("slt.ui.clhs.nosymbol.message"), symbolName),
SltBundle.message("slt.ui.clhs.nosymbol.title"));
}

public void setHyperspecView(SltHyperspecView hyperspecView) {
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@
<projectListeners>
<listener class="com.en_circle.slt.plugin.ui.debug.SltBreakpointListener"
topic="com.intellij.xdebugger.breakpoints.XBreakpointListener" />
<listener class="com.en_circle.slt.plugin.SltProjectListener"
topic="com.intellij.openapi.project.ProjectManagerListener" />
</projectListeners>

<change-notes><![CDATA[
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/messages/SltBundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ slt.ui.clhs.refresh=Refresh
slt.ui.clhs.stop=Stop
slt.ui.clhs.nosymbol.title=Symbol Not Found
slt.ui.clhs.nosymbol.message=Symbol '%s' not found in the CLHS
slt.ui.clhs.loading.title=Still Indexing
slt.ui.clhs.loading.message=CLHS is still being processed, please try again.

# Settings
slt.ui.projectsettings.sdk=Common Lisp SDK
Expand Down

0 comments on commit b97de7f

Please sign in to comment.