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

changed request accepts

parent e593dc57
No related branches found
No related tags found
No related merge requests found
...@@ -224,6 +224,11 @@ ...@@ -224,6 +224,11 @@
"integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==",
"dev": true "dev": true
}, },
"async": {
"version": "0.9.2",
"resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz",
"integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0="
},
"balanced-match": { "balanced-match": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
...@@ -339,6 +344,17 @@ ...@@ -339,6 +344,17 @@
"readdirp": "~3.2.0" "readdirp": "~3.2.0"
} }
}, },
"clean": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/clean/-/clean-4.0.2.tgz",
"integrity": "sha1-yfAW9wonzB8aOfypW1BAR+S28VM=",
"requires": {
"async": "^0.9.0",
"minimist": "^1.1.0",
"mix2": "^1.0.0",
"skema": "^1.0.0"
}
},
"cliui": { "cliui": {
"version": "5.0.0", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz",
...@@ -1074,6 +1090,11 @@ ...@@ -1074,6 +1090,11 @@
} }
} }
}, },
"make-array": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/make-array/-/make-array-0.1.2.tgz",
"integrity": "sha1-M14267DFpDFU0hIToeyuriobs+8="
},
"minimatch": { "minimatch": {
"version": "3.0.4", "version": "3.0.4",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
...@@ -1087,6 +1108,11 @@ ...@@ -1087,6 +1108,11 @@
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
}, },
"mix2": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/mix2/-/mix2-1.0.5.tgz",
"integrity": "sha512-ybWz7nY+WHBBIyliND5eYaJKzkoa+qXRYNTmVqAxSLlFtL/umT2iv+pmyTu1oU7WNkrirwheqR8d9EaKVz0e5g=="
},
"mkdirp": { "mkdirp": {
"version": "1.0.4", "version": "1.0.4",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
...@@ -1480,6 +1506,16 @@ ...@@ -1480,6 +1506,16 @@
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
"dev": true "dev": true
}, },
"skema": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/skema/-/skema-1.0.2.tgz",
"integrity": "sha1-NxIc/qHK7DEHLZVlhXSMmxGfxFM=",
"requires": {
"async": "^0.9.0",
"make-array": "^0.1.2",
"mix2": "^1.0.0"
}
},
"slice-ansi": { "slice-ansi": {
"version": "2.1.0", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz",
......
...@@ -122,6 +122,7 @@ ...@@ -122,6 +122,7 @@
"@types/ndjson": "^1.5.0", "@types/ndjson": "^1.5.0",
"@types/stream-to-array": "^2.3.0", "@types/stream-to-array": "^2.3.0",
"@types/vscode": "^1.47.0", "@types/vscode": "^1.47.0",
"clean": "^4.0.2",
"error": "^10.4.0", "error": "^10.4.0",
"mkdirp": "^1.0.4", "mkdirp": "^1.0.4",
"ndjson": "^1.5.0", "ndjson": "^1.5.0",
......
...@@ -38,23 +38,18 @@ export function activate(context: ExtensionContext) { ...@@ -38,23 +38,18 @@ 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.onRequest("hello", (message:string) => {
}) window.showErrorMessage('a problem occured: ' + message)
});
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) => {
window.showErrorMessage('test message recived: ' + message)
bla.appendLine("Error")
}); });
}); });
...@@ -82,7 +77,7 @@ export function deactivate(): Thenable<void> | undefined { ...@@ -82,7 +77,7 @@ export function deactivate(): Thenable<void> | undefined {
function toggleItem(editor: TextEditor, item) { function toggleItem(editor: TextEditor, item) {
if(editor && editor.document && if(editor && editor.document &&
(editor.document.languageId === 'ski')){ (editor.document.languageId === 'B')){
item.show(); item.show();
} else{ } else{
item.hide(); item.hide();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment