Skip to content

Commit

Permalink
Added vdmj.release property to LSPServer
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Sep 16, 2024
1 parent 198c7ca commit a2746aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lsp/src/main/java/lsp/LSPServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.HashMap;
import java.util.Map;

import com.fujitsu.vdmj.Release;
import com.fujitsu.vdmj.Settings;
import com.fujitsu.vdmj.VDMJMain;
import com.fujitsu.vdmj.lex.Dialect;
Expand Down Expand Up @@ -73,6 +74,7 @@ public LSPServer(Dialect dialect, InputStream inStream, OutputStream outStream)
Settings.dialect = dialect;
Settings.strict = Boolean.getBoolean("vdmj.strict");
Settings.verbose = Boolean.getBoolean("vdmj.verbose");
Settings.release = Release.lookup(System.getProperty("vdmj.release", "vdm10"));

LSPPlugin.getInstance(); // Creates all plugins
}
Expand Down

0 comments on commit a2746aa

Please sign in to comment.