Skip to content

Commit

Permalink
Address review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
mindula committed Dec 5, 2023
1 parent 4326379 commit 00bebc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public void start(LanguageClient client) {

if (usedMemory >= maxMemory * 0.9) {
client.showMessage(new MessageParams(MessageType.Error,
"Memory usage is high. Please reload the window."));
"Memory usage is high. Some features may become unresponsive. " +
"Please reload the window or increase the memory allocated for Ballerina"));
}
Thread.sleep(60000);
} catch (InterruptedException e) {

Check warning on line 71 in language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/MemoryUsageMonitor.java

View check run for this annotation

Codecov / codecov/patch

language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/MemoryUsageMonitor.java#L71

Added line #L71 was not covered by tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public void test() throws WorkspaceDocumentException, IOException, InterruptedEx
Thread.sleep(2000);

Mockito.verify(mockClient).showMessage(new MessageParams(MessageType.Error,
"Memory usage is high. Please reload the window.")
"Memory usage is high. Some features may become unresponsive. " +
"Please reload the window or increase the memory allocated for Ballerina")
);
}

Expand Down

0 comments on commit 00bebc0

Please sign in to comment.