Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
B Language Extension
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
B Language Extension
Commits
4153f25c
Commit
4153f25c
authored
5 years ago
by
SeeBasTStick
Browse files
Options
Downloads
Patches
Plain Diff
fix: added simpler option to set proB path
parent
ba3b8f87
Loading
Loading
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
package.json
+5
-0
5 additions, 0 deletions
package.json
server/src/server.ts
+6
-3
6 additions, 3 deletions
server/src/server.ts
with
11 additions
and
3 deletions
package.json
+
5
−
0
View file @
4153f25c
...
...
@@ -44,6 +44,11 @@
],
"default"
:
"off"
,
"description"
:
"Traces the communication between VS Code and the language server."
},
"languageServerExample.probHome"
:{
"type"
:
"string"
,
"default"
:
"~/prob_prolog/probcli.sh"
,
"description"
:
"Path to ProB executable"
}
}
}
...
...
This diff is collapsed.
Click to expand it.
server/src/server.ts
+
6
−
3
View file @
4153f25c
...
...
@@ -90,12 +90,13 @@ connection.onInitialized(() => {
// The example settings
interface
ExampleSettings
{
maxNumberOfProblems
:
number
;
probHome
:
string
;
}
// The global settings, used when the `workspace/configuration` request is not supported by the client.
// Please note that this is not the case when using this server with the client provided in this example
// but could happen with other clients.
const
defaultSettings
:
ExampleSettings
=
{
maxNumberOfProblems
:
1000
};
const
defaultSettings
:
ExampleSettings
=
{
maxNumberOfProblems
:
1000
,
probHome
:
"
/home/sebastian/prob_prolog/probcli.sh
"
};
let
globalSettings
:
ExampleSettings
=
defaultSettings
;
// Cache the settings of all open documents
...
...
@@ -154,7 +155,9 @@ async function validateTextDocument(textDocument: TextDocument): Promise<void> {
let
dic
:
string
=
pathy
.
dir
let
probCliHome
:
string
=
'
/home/sebastian/prob_prolog/probcli.sh
'
console
.
log
(
settings
.
probHome
)
let
probCliHome
:
string
=
settings
.
probHome
//'/home/sebastian/prob_prolog/probcli.sh'
let
ndjson
:
string
=
'
NDJSON_ERROR_LOG_FILE
'
let
errorPath
:
string
=
dic
+
'
/_error.json
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment