Commit Graph

56 Commits (275cc21e708ce5565bd1ad88251d3ee665068c0c)

Author SHA1 Message Date
Wouter Born 275cc21e70 Update license to EPL-2.0 (#143)
Updates the LICENSE file and adds a NOTICE file.

Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-09 18:10:12 +02:00
Jerome Luckenbach 3575ecb038 Hotfix release changes
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2019-05-19 19:50:20 +02:00
Jerome Luckenbach eba0017d9e Prepare release
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2019-05-19 15:56:48 +02:00
Willi Eggeling 7f8c83b3aa added configuration option for Item name casing, refactoring (#133)
- the casing of generated Item names from Thing labels can
  now be configured using the extension's configuration.
- the ItemsProvider.ts file has been refactored to not
  depend on the 'underscore.strings' library any longer.

fixes #132

Signed-off-by: Willi Eggeling <thewilli@gmail.com>
2019-02-22 21:53:45 +01:00
zbot473 08a9335971 New line after item (#136)
Solves #121 

Signed-off-by: Mihir Patil zbot473@gmail.com (github: zbot473)
2019-02-08 08:55:51 +01:00
Samuel Brucksch 91e7770c25 Local LSP server that improves functionality like item completion (#122)
* Initial commit with LSP from MS examples

* Code quality fixes

* added remote LSP server to run parallel to local LSP server

* removed lspEnabled check as its done in extension already

* Removed completion from REST

* removed comments

* Turned Server into a class and extracted validation

* Removed log output

* WIP: Added items completion in LSP server
Items are taken from REST API at start and are getting cached in LSP Server. Their values are updated from SSE (/rest/events). When Items are added or removed the cache is updated. So now we have a very responsive completion list.

* Code quality changes

* made code more robust

* Added parsing of StateChange and uItemUdate events

* Fixed wrongly called cb(error)

* removed log output

* Cleaned up validation to not return anything

* Cleaned up and added bit more docs

* Fixed capital letter of class in import - worked on win but not in linux

* Same as before

* Removed unused getter

* Code Quality

* Moved @types dependencies to root package.json and cleaned up tsconfig files

* Test commit for sign off

* Added author in docs

* Added pure JS impl of server and wrote tests with jest

Coverage is not goot yet, ItemCompletionProvider and Item still miss
some tests. Other files are good already.

* Added more tests, use of preomise instead of callbacks in completionitem

* Moved tests to unit folder

* Added more tests

* Cleaned up and removed TS impl

* Fixed compile problems by increasing vscode version

* Fallback to empty array if no items map is present

* More tests

* Improved npm scripts

npm run build builds a .vsix
npm run publish publishes the extension
both commands run tests before to make sure a working version is
built/deployed

* use bind() instead of anonymous function

* improved scripts

* Renamed config properties and removed useRestCompletions as its not
needed anymre

* changed config in remote language client

* removed TODO comment

* added changelog and fixed description for settings

* fixed typo

* Removed commented code

Signed-off-by: Samuel Brucksch <sasliga@freenet.de> (github: SamuelBrucksch)
2019-01-11 11:01:45 +01:00
Samuel Brucksch 82afd6fdfc Readded sort for methods used by items explorer (#127)
Signed-off-by: Samuel Brucksch <sasliga@freenet.de>
2018-12-26 13:38:03 +01:00
Jerome Luckenbach 8bb6bd1e5d Release preparation
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2018-12-09 13:33:40 +01:00
Jerome Luckenbach 27ed416c92
Small fixes and updates (#117)
* Clarified Description for restCompletions

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

* Refactored -Show in Paper UI- to open always in external browser.

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

* Removed search docs option

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

* First webview implementation. Removed previewHTML.

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

* Added WebView as exported module initially.

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

* Preparations fo packaging. Changed minimal vscode version. Adressed review.

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

* Finished first webview implementation.

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

* Removed ContentProvider folder.

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

* updated gitignore

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

* Added simple mode status rest call

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

* Added simple mode check functionality

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2018-12-09 13:13:52 +01:00
Samuel Brucksch 8bdf61d4ff Removed sorting of items for auto completion (#114)
* Removed sorting of items when querying completion items

vscode deals with sorting the items in the auto completion list so no need to do it here. might improve speed a bit.

Signed-off-by: Samuel Brucksch <sasliga@freenet.de>

* Fixed Docs (pseudo commit for sign off)

Signed-off-by: Samuel Brucksch <sasliga@freenet.de> (github: SamuelBrucksch)
2018-12-06 16:27:45 +01:00
Jerome Luckenbach f5c587c230 updated pullaprove settings
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2018-12-05 21:49:47 +01:00
Kuba Wolanin 908e16921c
Move openHAB tree views to a ViewContainer (#107)
* View container
* Move openHAB tree views to a ViewContainer

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2018-07-27 21:27:41 +02:00
Kuba Wolanin a86b37f391
Remove the unused imports (#106)
Signed-off-by: Kuba Wolanin hi@kubawolanin.com (github: kubawolanin)
2018-07-26 19:54:22 +02:00
Jerome Luckenbach e72872af64 Open Sitemap directly (#104)
* Open Sitemap directly if its the only one that has been created by a user.

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

* 104 Added minor code cleanup
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com> (github: kubawolanin)
2018-07-15 21:44:41 +02:00
Jerome Luckenbach bef5dae3fa
Corrected electric Potential (#105)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2018-07-03 17:54:25 +02:00
Jerome Luckenbach b302c5a378 Add units of measurement (#103)
* Extracted *.items snippet file adn added units of measurment.

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

* Fixed var numbering.

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

* Added some more si units.

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

* Added missing newline

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

* Added time snippet.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2018-06-28 11:04:23 +02:00
Jerome L 13282d972f Added basic extensions.json file (#101)
* Added basic extensions.json file

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

* Added tree view as recommendation

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2018-06-19 11:43:05 +02:00
Kuba Miszcz 43bed4be80 some snippet improvements (#91)
* add autocompletion itemtypes in items

* some snippet improvements

Signed-off-by: KubaMiszcz zielonyeufor@gmail.com (github: https://github.com/KubaMiszcz)
2018-06-16 10:23:19 +02:00
Wouter Born 465093c0a2 Update documentation links (#96)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-06-16 10:21:44 +02:00
Kuba Miszcz f612b1efbe add autocompletion itemtypes in items (#90)
Signed-off-by: KubaMiszcz <zielonyeufor@gmail.com> (github: https://github.com/KubaMiszcz)
2018-02-06 18:19:54 +01:00
Jerome L 3e8c3ac873 Initial snippet file refactoring. (#77)
* Initial snippet file refactoring.
* Added Design Pattern related snippet file.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2018-01-28 10:44:17 +01:00
Kuba Wolanin 3cda944e13
Fixing file extension checks. Resolves #63 (#76)
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-12-30 16:46:00 +01:00
Kuba Wolanin 1b02f71697
[WIP] REST Configuration fix (#68)
* REST Configuration fix

Tweaks making remote access (with Basic Auth) possible

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>

* Fixed docs URL

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-12-21 14:43:34 +01:00
Jerome L 0922b701eb Adressed PR comments from @rkoshak. (#72)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2017-12-20 16:08:43 +01:00
Kuba Wolanin 87f0cf727d
Added missing images (#65)
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-11-25 16:32:07 +01:00
Kuba Wolanin 91be810e29
Fixed issues with non-root workspaces (#64)
Closes #62

Also added new release notes

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-11-25 16:28:41 +01:00
Kuba Wolanin 56c9b4d1b9
Fixed issues with REST connection (#58)
* Fixed issues with REST connection
also removed explicit 'localhost' setting.

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>

* Prevent flooding with error messages each time connection is made

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>

* Resurrected error handling + proper Promise resolve

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>

* Fixed Things sorting comparator

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-11-24 22:20:28 +01:00
Jerome L cc6b521a1d Added some Type Conversion snippets (#60)
* Included first Type Conversion Snippets.

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

* Added some additional snippets.

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

* Removed empty line.

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

* Fixes after some detailled testing.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2017-11-21 20:47:42 +01:00
Kuba Wolanin ab67a3cd44
Added 'Open Karaf console' feature (#59)
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-11-19 21:17:55 +01:00
Kuba Wolanin 08d2a5501d
Closes #53 - optionally open Classic UI for sitemap preview (#54)
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-11-16 08:12:16 +01:00
Kuba Wolanin 485c18de6b
Release 0.3.0 (#51)
* Preparations for release 0.3.0

Signed-off-by: Kuba Wolanin <jakub.wolanin@sabre.com>

* Preparations for release 0.3.0

Signed-off-by: Kuba Wolanin <jakub.wolanin@sabre.com>
2017-11-15 09:08:26 +01:00
Kuba Wolanin bc56953381
Content Assist via LSP (#50)
* Feature #41 WIP

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>

* Completion assist - WIP

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>

* package.json bump engines

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>

* Finishing up the client-side LSP config

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-11-14 21:11:40 +01:00
Kuba Wolanin a59a95706f
Things Explorer - Initial contribution (#49)
Added icons and quick reference to thing's binding docs

Show Thing in Paper UI - WIP

Generating Items from Things channels and more!

Things Explorer is completed!

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-11-12 20:57:24 +01:00
Kuba Wolanin b9b9868ee1
Preparations for release 0.2.1 (#45)
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-11-02 13:48:45 +01:00
Kuba Wolanin 2b102cb081
Error handling enhancement. Closes #42 Resolves #18 (#44)
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-10-27 20:18:52 +02:00
Simon Kaufmann 27bff8f446 added lspPort configuration parameter (#43)
...and changed port config to be a number.

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
2017-10-27 12:45:52 +02:00
Kuba Wolanin f75f65c663 Updates for the 0.2.0 release (#39)
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-10-20 19:18:16 +02:00
Kuba Wolanin aa64c9fe73 Language Server Protocol support (#31)
LSP cleanup, final touches.
Closes #3

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com> (github: kubawolanin)
2017-10-17 20:04:14 +02:00
Kuba Wolanin 78be29ac8c Updated logo icons. Closes #36 (#37)
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-10-15 16:18:36 +02:00
Thomas Dietrich 7fc889a34b Fix wrongful italic presentation in README (#35)
GitHub would show half the file as italic because there is no second asterisk to end the format block.
Signed-off-by: Thomas Dietrich thomas.dietrich@tu-ilmenau.de (github: ThomDietrich)
2017-10-09 12:42:19 +02:00
Kuba Wolanin 08130642ba Optional REST API connection + better error handling. Closes #33 Resolves #22 (#34)
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-10-08 17:58:40 +02:00
Kuba Wolanin 96ea94f9fd Resolved #29 (#30)
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-07-18 21:16:41 +02:00
Ben Jones 0197af09b1 fix #25 (#26)
Signed-off-by: Ben Jones <ben.jones12@gmail.com> (github: sumnerboy12)
2017-07-11 12:18:58 +02:00
Jerome L c4ff46dd38 Updated README.md, host configuration section (#27)
* Updated README.md, host configuration section

Added a note to the configuration section, to clarify that the settings will take a hostname or the ip adress of the openHAB instance.
Suggested here: <https://community.openhab.org/t/visual-studio-code-openhab-extension/30205/56?u=confectrician>

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

* Discussion spelling fix

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

* Added IP adress in host config description

Signed-off-by:  Jerome Luckenbach <github@luckenba.ch> (github: @Confectrician)IP address
2017-07-10 16:22:51 +02:00
Kuba Wolanin 7add8b5e40 Update .pullapprove.yml 2017-07-10 09:41:03 +02:00
Kuba Wolanin e718b0608e Create .pullapprove.yml 2017-07-10 09:37:57 +02:00
Kuba Wolanin 4a88708080 Update CONTRIBUTING.md 2017-07-08 09:13:21 +02:00
Kuba Wolanin 8b62397ca5 Items Explorer view - Initial contribution (#20)
Items Explorer view - Initial contribution
* Items Explorer - added Item icons + cleanup
* Rule template PR discussion follow-up.
Added "Copy State" context menu for Items.
Removed ongoing "Find References" feature.
General code cleanup.
Added Item code completions - Closes #7
* Documented code + updated changelog
* Version bump

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com> (github: kubawolanin)
2017-07-07 12:58:40 +02:00
Claudio Spizzi 96ce27ff6f Icon Theme (#21)
* Initial commit for icon theme
* Add sounds and icons folders
* Update changelog
* Fix openHAB spelling
* Add services icon

Signed-off-by: Claudio Spizzi <claudio.spizzi@live.com> (github: claudiospizzi)
2017-07-03 20:52:50 +02:00
Dennis Gieseler a1591b7bd7 Fix typo in configuration part of README.md (#19)
Signed-off-by: Dennis Gieseler <dennis.gieseler@me.com>
2017-07-02 17:15:36 +02:00