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

no longer activates extension on normal text documents + recognize correct file ending

parent 01847889
No related branches found
No related tags found
No related merge requests found
...@@ -6,5 +6,6 @@ ...@@ -6,5 +6,6 @@
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.eslint": true "source.fixAll.eslint": true
}, },
"languageServer.wdChecks": false "languageServer.wdChecks": false,
"languageServer.probHome": "/home/sebastian/prob_prolog/probcli.sh"
} }
\ No newline at end of file
...@@ -28,3 +28,10 @@ ...@@ -28,3 +28,10 @@
## [0.1.1] ## [0.1.1]
- fixed issue where path was semi hard coded - fixed issue where path was semi hard coded
## [0.2.0]
- recognizes correct file ending (.mch; .def; .imp; .ref; .sys)
- no longer activates extension on normal text documents
\ No newline at end of file
...@@ -69,3 +69,9 @@ Please note that user settings overwrite workspace settings. ...@@ -69,3 +69,9 @@ Please note that user settings overwrite workspace settings.
### 0.1.1 ### 0.1.1
- fixed issue where path was semi hard coded - fixed issue where path was semi hard coded
### 0.2.0
- recognizes correct file ending (.mch; .def; .imp; .ref; .sys)
- no longer activates extension on normal text documents
\ No newline at end of file
...@@ -38,8 +38,8 @@ export function activate(context: ExtensionContext) { ...@@ -38,8 +38,8 @@ export function activate(context: ExtensionContext) {
// Options to control the language client // Options to control the language client
let clientOptions: LanguageClientOptions = { let clientOptions: LanguageClientOptions = {
// Register the server for plain text documents // Register the server for B, EventB documents
documentSelector: [{ scheme: 'file', language: 'plaintext' }], documentSelector: [{ scheme: 'file', language: 'B' }, { scheme: 'file', language: 'EventB' }],
synchronize: { synchronize: {
// Notify the server about file changes to '.clientrc files contained in the workspace // Notify the server about file changes to '.clientrc files contained in the workspace
fileEvents: workspace.createFileSystemWatcher('**/.clientrc') fileEvents: workspace.createFileSystemWatcher('**/.clientrc')
......
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
"proB" "proB"
], ],
"activationEvents": [ "activationEvents": [
"onLanguage:plaintext" "onLanguage:B",
"onLanguage:EventB"
], ],
"main": "./client/out/extension", "main": "./client/out/extension",
"contributes": { "contributes": {
...@@ -68,7 +69,24 @@ ...@@ -68,7 +69,24 @@
"description": "Option for stricter Checks" "description": "Option for stricter Checks"
} }
} }
},
"languages": [
{
"id": "B",
"extensions": [
".mch",
".ref",
".imp",
".def"
]
},
{
"id": "EventB",
"extensions": [
".sys"
]
} }
]
}, },
"scripts": { "scripts": {
"vscode:prepublish": "npm run compile", "vscode:prepublish": "npm run compile",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment