Commit Graph

9 Commits (ad81ff13f4fdc5ba796310382bdc9595c9b9f63d)

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 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 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 bc0f1f1301
Big refactoring with newly comments and solving tslint issues. (#191)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2020-01-11 20:57:50 +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 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 3575ecb038 Hotfix release changes
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2019-05-19 19:50:20 +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