www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Updated Sublime Text plugin (Dkit)

reply ryuukk_ <ryuukk.dev gmail.com> writes:
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
parent reply ryuukk_ <ryuukk.dev gmail.com> writes:
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
next sibling parent reply Steven Schveighoffer <schveiguy gmail.com> writes:
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
parent ryuukk_ <ryuukk.dev gmail.com> writes:
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:

 But it's promising!
This looks great! I don't use Sublime, but always good to see people improving life for everyone. -Steve
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 productivity
Nov 14 2023
prev sibling parent reply Ogi <ogion.art gmail.com> writes:
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
parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
The implementation isn't complete, that is why we haven't advertised it 
at that level so far.
Nov 16 2023