Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
B Language Server
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 Server
Commits
6ff55545
Commit
6ff55545
authored
4 years ago
by
SeeBasTStick
Browse files
Options
Downloads
Patches
Plain Diff
added probcli version
parent
55b61b0d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/kotlin/b/language/server/proBMangement/probCli/ProBCommandLineAccess.kt
+12
-7
12 additions, 7 deletions
...age/server/proBMangement/probCli/ProBCommandLineAccess.kt
with
12 additions
and
7 deletions
src/main/kotlin/b/language/server/proBMangement/probCli/ProBCommandLineAccess.kt
+
12
−
7
View file @
6ff55545
...
...
@@ -131,6 +131,8 @@ class ProBCommandLineAccess(val communicator : CommunicatorInterface) : ProBInte
communicator
.
sendDebugMessage
(
"creating errorDict $errorDict and errorFile $errorPath"
,
MessageType
.
Info
)
errorDict
.
mkdirs
()
FileWriter
(
errorPath
,
false
).
close
()
errorPath
.
deleteOnExit
()
errorDict
.
deleteOnExit
()
return
errorDict
.
exists
()
&&
errorPath
.
exists
()
}
...
...
@@ -218,13 +220,13 @@ class ProBCommandLineAccess(val communicator : CommunicatorInterface) : ProBInte
problem
}
}
.
map
{
problem
->
Diagnostic
(
Range
(
.
map
{
problem
->
val
range
=
Range
(
Position
(
problem
.
start
.
line
,
problem
.
start
.
col
),
Position
(
problem
.
end
.
line
,
problem
.
end
.
col
)),
Position
(
problem
.
end
.
line
,
problem
.
end
.
col
))
val
diagnostic
=
Diagnostic
(
range
,
problem
.
message
,
when
(
problem
.
type
)
{
"error"
->
{
DiagnosticSeverity
.
Error
...
...
@@ -239,9 +241,12 @@ class ProBCommandLineAccess(val communicator : CommunicatorInterface) : ProBInte
DiagnosticSeverity
.
Hint
}
},
problem
.
file
,
" probcli v.${problem.version}"
problem
.
file
)
diagnostic
.
relatedInformation
=
listOf
(
DiagnosticRelatedInformation
(
Location
(
problem
.
file
,
range
),
"probcli v.${problem.version}"
))
diagnostic
}
}
}
\ No newline at end of file
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