digitalmars.D - Updated Sublime Text plugin (Dkit)
- ryuukk_ (29/29) Nov 13 2023 Hello,
- ryuukk_ (12/12) Nov 14 2023 I added inlay hints:
- Steven Schveighoffer (4/5) Nov 14 2023 This looks great! I don't use Sublime, but always good to see
- ryuukk_ (6/11) Nov 14 2023 I'm improving DCD at the same time to enable these features, so
- Ogi (3/4) Nov 16 2023 Wait, since when D supports named arguments? Never seen them
- Richard (Rikki) Andrew Cattermole (2/2) Nov 16 2023 The implementation isn't complete, that is why we haven't advertised it
Hello, LSP is nice, but is memory hungry.., consumes double than the actual completion engine (DCD) ![screen1](https://i.imgur.com/FyMWYVg.png) I'm using Sublime Text and i found DKit [1], it's nice but is synchronous and was missing few bits that serve-d has, so i went ahead and i improved it in a fork (the project seems innactive) [2] ![screen2](https://i.imgur.com/7n3YEER.png) I plan to continue work on this the whole week, so if you have suggestions, let me know Config example: ```json { // Path to the directory containing both dcd-client and dcd-server executables "dcd_path": "C:\\D\\dcd", // Port to use for DCD client and server "dcd_port": 9166, // Include path for existing source files. // DCD will also provide completion for dub dependencies "include_paths": [ "projects/", ], "suppress_dependency_folders": false } ``` [1] - https://github.com/yazd/DKit [2] - https://github.com/ryuukk/DKit
Nov 13 2023
I added inlay hints: without type: ![screen1](https://i.imgur.com/P66CaJD.png) with type: ![screen2](https://i.imgur.com/YRMqhZq.png) It's configurable and toggleable with a keybind I'll cleanup the code and submit the changes I need to add a way to detect/ignore named params, varargs and make it more robust by detecting function overloads It's too fragile for now: ![screen3](https://i.imgur.com/j0PUyo5.png) But it's promising!
Nov 14 2023
On Tuesday, 14 November 2023 at 15:53:04 UTC, ryuukk_ wrote:But it's promising!This looks great! I don't use Sublime, but always good to see people improving life for everyone. -Steve
Nov 14 2023
On Tuesday, 14 November 2023 at 15:56:48 UTC, Steven Schveighoffer wrote:On Tuesday, 14 November 2023 at 15:53:04 UTC, ryuukk_ wrote:I'm improving DCD at the same time to enable these features, so serve-d could implement them as well Working this way gives me faster iteration time, serve-d is too slow to compile wich hurt my productivityBut it's promising!This looks great! I don't use Sublime, but always good to see people improving life for everyone. -Steve
Nov 14 2023
On Tuesday, 14 November 2023 at 15:53:04 UTC, ryuukk_ wrote:…Wait, since when D supports named arguments? Never seen them mentioned in change logs.
Nov 16 2023
The implementation isn't complete, that is why we haven't advertised it at that level so far.
Nov 16 2023