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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
B Language Extension
Commits
e593dc57
Commit
e593dc57
authored
4 years ago
by
SeeBasTStick
Browse files
Options
Downloads
Patches
Plain Diff
small changes to make code more readable
parent
54b667ec
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.vscode/settings.json
+2
-2
2 additions, 2 deletions
.vscode/settings.json
src/extension.ts
+10
-12
10 additions, 12 deletions
src/extension.ts
with
12 additions
and
14 deletions
.vscode/settings.json
+
2
−
2
View file @
e593dc57
...
@@ -6,6 +6,6 @@
...
@@ -6,6 +6,6 @@
"editor.codeActionsOnSave"
:
{
"editor.codeActionsOnSave"
:
{
"source.fixAll.eslint"
:
true
"source.fixAll.eslint"
:
true
},
},
"languageServer.wdChecks"
:
false
,
//
"languageServer.wdChecks"
:
false
,
"languageServer.probHome"
:
"/home/sebastian/prb_prolog/probcli.sh"
//
"languageServer.probHome"
:
"/home/sebastian/prb_prolog/probcli.sh"
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/extension.ts
+
10
−
12
View file @
e593dc57
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */
import
{
import
{
workspace
,
workspace
,
ExtensionContext
,
ExtensionContext
,
...
@@ -12,12 +7,10 @@ import {
...
@@ -12,12 +7,10 @@ import {
StatusBarAlignment
}
from
'
vscode
'
;
StatusBarAlignment
}
from
'
vscode
'
;
import
{
import
{
LanguageClient
,
LanguageClient
,
LanguageClientOptions
,
LanguageClientOptions
,
ServerOptions
,
ServerOptions
,
TransportKind
}
from
'
vscode-languageclient
'
;
}
from
'
vscode-languageclient
'
;
let
client
:
LanguageClient
;
let
client
:
LanguageClient
;
...
@@ -47,14 +40,21 @@ export function activate(context: ExtensionContext) {
...
@@ -47,14 +40,21 @@ export function activate(context: ExtensionContext) {
client
.
onReady
().
then
(()
=>
{
client
.
onReady
().
then
(()
=>
{
let
bla
=
window
.
createOutputChannel
(
"
internal_error
"
)
let
bla
=
window
.
createOutputChannel
(
"
internal_error
"
)
client
.
onDidChangeState
(
event
=>
{
bla
.
appendLine
(
"
Error
"
)
})
client
.
onNotification
(
"
path_error_prob
"
,
(
message
:
string
)
=>
{
client
.
onNotification
(
"
path_error_prob
"
,
(
message
:
string
)
=>
{
window
.
showErrorMessage
(
'
a problem occured:
'
+
message
)
window
.
showErrorMessage
(
'
a problem occured:
'
+
message
)
bla
.
appendLine
(
"
Error
"
)
});
});
client
.
onNotification
(
"
parse_error_prob
"
,
(
message
:
string
)
=>
{
client
.
onNotification
(
"
parse_error_prob
"
,
(
message
:
string
)
=>
{
window
.
showErrorMessage
(
'
a error occured :
'
+
message
)
window
.
showErrorMessage
(
'
a error occured :
'
+
message
)
bla
.
appendLine
(
"
Error
"
)
});
});
client
.
onNotification
(
"
lsp-test
"
,
(
message
:
string
)
=>
{
client
.
onNotification
(
"
lsp-test
"
,
(
message
:
string
)
=>
{
window
.
showErrorMessage
(
'
test message recived:
'
+
message
)
window
.
showErrorMessage
(
'
test message recived:
'
+
message
)
bla
.
appendLine
(
"
Error
"
)
});
});
});
});
...
@@ -62,7 +62,7 @@ export function activate(context: ExtensionContext) {
...
@@ -62,7 +62,7 @@ export function activate(context: ExtensionContext) {
item
.
text
=
'
Starting
Le Language Server de Chamrousse
...
'
;
item
.
text
=
'
Starting
ProB LSP
...
'
;
toggleItem
(
window
.
activeTextEditor
,
item
);
toggleItem
(
window
.
activeTextEditor
,
item
);
// Start the client. This will also launch the server
// Start the client. This will also launch the server
...
@@ -89,7 +89,5 @@ function toggleItem(editor: TextEditor, item) {
...
@@ -89,7 +89,5 @@ function toggleItem(editor: TextEditor, item) {
}
}
}
}
function
getServerConfiguration
():
WorkspaceConfiguration
{
return
workspace
.
getConfiguration
(
'
ski
'
);
}
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