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

small changes to make code more readable

parent 54b667ec
Branches
Tags
No related merge requests found
...@@ -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
/* --------------------------------------------------------------------------------------------
* 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');
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment