Commit Graph

50 Commits (115eacba9be0487689a74a452ec6d174a39f1fc2)

Author SHA1 Message Date
Jerome Luckenbach f78ab4c62e
Update Dependencies. Switch to @types/vscode. (#236)
* Update Dependencies. Switch to @types/vscode.

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

* Remove vscode postinstall.

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

* Fix build errors.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2021-01-17 19:12:05 +01:00
Jerome Luckenbach 2dc028fc3b
Small fixes (#234)
* Migrate to ESLint. Update Dependencies.

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

* Remove orga directory.

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

* Fix markdown errors.

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

* Update pipeline triggers.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2021-01-15 18:54:15 +01:00
Jerome Luckenbach 8c11a32d45
Post update (#232)
* Bump master version. Add open-vsx badge.

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

* Remove publish action from pipeline. Managed in the Release pipeline on Azure now.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2021-01-10 00:12:20 +01:00
Jerome Luckenbach ba4c5247cd
Sync branches (#231)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2021-01-09 21:16:22 +01:00
Jerome Luckenbach e6a949de33
0.8.0 beta (#225)
* Prepare 0.8.0-beta version

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

* Use proper version number in package json.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2020-12-28 15:04:29 +01:00
Jerome Luckenbach 6dc21e6d09
Remove classic ui. Fix Markdown errors. (#224)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2020-12-28 10:09:53 +01:00
Jerome Luckenbach 9f73316f6e
Remove jest from root repo dependencies. Only needed for the server package. (#223)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2020-12-27 20:03:05 +01:00
Jerome Luckenbach 1ae6463cc7
Update dependencies (#220)
* Update dependencies with a first audit fix command.

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

* Second audit and a first npm update command.

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

* Another audit fix after updating.

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

* Also update sub package dependencies.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2020-12-27 19:46:39 +01:00
Jerome Luckenbach e28bcf9c2a
Add two more precise activation events, based on standard openHAB files. (#219)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2020-12-27 16:22:55 +01:00
Jerome Luckenbach 1d2bd40d65
Remove Paper UI (#217)
* Updated changelog. Improved sign off docs due to DCO Check usage.

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

* Remove Paper UI references and Command.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2020-12-27 15:18:17 +01:00
Jerome Luckenbach 1d2e7f1413
Update dependencies (#193)
* Update node dependencies

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

* Update node dependencies

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

* Improved build logging, small apckage json improvements.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2020-01-12 12:48:46 +01:00
Jerome Luckenbach 53f7b62e17
Introduce automated release process through github api. (#192)
* Introduce automated release process through github api.

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

* Add publish to marketplace script

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

* Fix wrong yaml definition.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2020-01-11 22:48:27 +01:00
Jerome Luckenbach abe9c2c8b1
Enhancements (#190)
* v2 tasks json. Closes  #179.

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

* Increase needed vscode version. Closes #181

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

* Use upcoming version for the master branch.

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

* Fix minichangelog generation in build pipeline.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2020-01-08 23:24:43 +01:00
Jerome Luckenbach 9ba6ae5e6f 0.6.0 with fixed package.json...
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2019-11-13 23:01:34 +01:00
Jerome Luckenbach 6bac6546cd 0.6.0
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2019-11-13 22:51:15 +01:00
Jerome Luckenbach 38b3a1788b
Added copy and doc commands to item commands. (#177)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2019-11-11 20:35:07 +01:00
Jerome Luckenbach dfdacee4c7 Prepare release.
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2019-11-03 21:48:51 +01:00
Jerome Luckenbach 22a3d7d1fa
Removed, safe to replace, karaf references. (#172)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2019-11-03 20:48:11 +01:00
Jerome Luckenbach 4b2d225cc5
Reorganise package.json. Remove unused utils. Add some comments. (#165)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2019-10-29 22:13:30 +01:00
Jerome Luckenbach f7dd9c8d46
Add webpack support (#155)
* Add webpack support

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

* Adaption to multi package extension. (Language Server). ALso build improvements

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2019-10-26 21:06:29 +02:00
Jerome Luckenbach 26855baf66
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>
2019-10-23 22:31:30 +02:00
Jerome Luckenbach 6fa973f028
Add info/warning for the remote LSP setting to use mounted network share. (#147)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2019-10-12 13:17:25 +02:00
Jerome Luckenbach ce38762651
Added some additional activation Events to support smooth startup and start with jsr223 support. (#142)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2019-10-09 18:11:18 +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
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
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
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
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 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 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 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
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 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
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 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
Kuba Wolanin f0308ae65a Updated CHANGELOG + small cleanup (#16)
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-06-21 21:28:12 +02:00
Dennis Gieseler 70801c4d51 Added functionality to open openHAB Preview on MacOS based systems (#14)
Added configuration for openhab.host and openhab.path
Updated README.md to accomodate new configuration options (including examples)

Signed-off-by: Dennis Gieseler <dennis.gieseler@me.com> (github: dennisausbremen)
2017-06-21 14:36:38 +02:00
Kuba Wolanin 305fb58d90 Added CONTRIBUTING, generate-authors and minor tweaks (#13)
Added Issue Template and quick search in Community action. Closes #5 #2

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-06-20 07:38:54 +02:00
Kuba Wolanin 221e112c25 openHAB VS Code extension - Initial contribution (#1)
* openHAB VS Code extension - Initial contribution
* Added repository and fixed README
* Removed outdated setting from .vscode/

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
2017-06-19 08:09:32 +02:00