Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging cleanups for VS Code #1174

Merged
merged 2 commits into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions org.lflang.diagram/src/log4j.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" >
<log4j:configuration>

<category name="org.eclipse.xtext.linking.impl">
<priority value="off"/>
</category>

</log4j:configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.lflang.util.LFCommand;

/**
* Provides Lingua-Franca-specific extensions to the
* Provide Lingua-Franca-specific extensions to the
* language server's behavior.
*
* @author Peter Donovan <peterdonovan@berkeley.edu>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public void onConnect() {
rectPack.setClient((KGraphLanguageClient) languageClient);
LanguageServerErrorReporter.setClient(languageClient);
lfExtension.setClient(languageClient);
// The following is needed because VS Code treats System.err like System.out and System.out like a shout
// into the void.
System.setOut(System.err);
}
}

Expand Down