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
parent
e60b0bb796
commit
26855baf66
|
@ -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`);
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue