Refactoring (#154)

* Move language related files in new introduced meta folder

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>

* Add some logging, reflect file movements and make openHAB tree views available without file condition.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
pull/156/head
Jerome Luckenbach 2019-10-23 22:31:30 +02:00 committed by GitHub
parent e60b0bb796
commit 26855baf66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 714 additions and 710 deletions

View File

@ -203,8 +203,12 @@ export function activate(context: ExtensionContext) {
init(disposables, config, context)
.catch(err => console.error(err));
console.log(`openHAB vscode extension has been activated`);
}
// this method is called when your extension is deactivated
export function deactivate() {
console.log(`openHAB vscode extension has been shut down`);
}

View File

@ -270,14 +270,14 @@
".things",
".persist"
],
"configuration": "./language-configuration.json"
"configuration": "./meta/language-configuration.json"
}
],
"grammars": [
{
"language": "openhab",
"scopeName": "source.openhab",
"path": "./syntaxes/openhab.tmLanguage.json"
"path": "./meta/openhab.tmLanguage.json"
}
],
"viewsContainers": {
@ -294,12 +294,12 @@
{
"id": "openhabItems",
"name": "Items",
"when": "resourceLangId == openhab"
"when": "config.openhab.useRestApi == true"
},
{
"id": "openhabThings",
"name": "Things",
"when": "resourceLangId == openhab"
"when": "config.openhab.useRestApi == true"
}
]
},