Skip to content
Snippets Groups Projects
Commit 886ecadf authored by SeeBasTStick's avatar SeeBasTStick
Browse files

fix to tackle semi hardcoded proB path

parent d7bbe50a
Branches
Tags
No related merge requests found
...@@ -22,6 +22,8 @@ This extension contributes the following settings: ...@@ -22,6 +22,8 @@ This extension contributes the following settings:
* `languageServer.strictChecks`: to enable/disable stricter Checks. Make sure to enable/disable for the current workspace too. * `languageServer.strictChecks`: to enable/disable stricter Checks. Make sure to enable/disable for the current workspace too.
Please note that user settings overwrite workspace settings.
## Bugs ## Bugs
- please open an issue at https://github.com/SeeBasTStick/b-eventb-language-extension - please open an issue at https://github.com/SeeBasTStick/b-eventb-language-extension
......
...@@ -95,7 +95,7 @@ interface Settings { ...@@ -95,7 +95,7 @@ interface Settings {
const defaultSettings: Settings = { const defaultSettings: Settings = {
maxNumberOfProblems: 1000, maxNumberOfProblems: 1000,
probHome: "/home/sebastian/prob_prolog/probcli.sh", probHome: "~/prob_prolog/probcli.sh",
strictChecks : false, strictChecks : false,
wdChecks : false }; wdChecks : false };
...@@ -161,7 +161,7 @@ async function validateTextDocument(textDocument: TextDocument): Promise<void> { ...@@ -161,7 +161,7 @@ async function validateTextDocument(textDocument: TextDocument): Promise<void> {
let diagnosticsPromise : Promise<Set<Diagnostic>> let diagnosticsPromise : Promise<Set<Diagnostic>>
console.log(command) console.log(command)
if(correctPath(globalSettings.probHome)) if(correctPath(settings.probHome))
{ {
exec(command, (err:string, stdout:string, stderr:string) => { exec(command, (err:string, stdout:string, stderr:string) => {
let bla = new ErrorMatcher() let bla = new ErrorMatcher()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment