Thread overview
Updated Sublime Text plugin (Dkit)
Nov 13, 2023
ryuukk_
Nov 14, 2023
ryuukk_
Nov 14, 2023
ryuukk_
Nov 16, 2023
Ogi
November 13, 2023

Hello,

LSP is nice, but is memory hungry.., consumes double than the actual completion engine (DCD)

screen1

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

I plan to continue work on this the whole week, so if you have suggestions, let me know

Config example:

{
    // 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

November 14, 2023

I added inlay hints:

without type:

screen1

with type:

screen2

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

But it's promising!

November 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

November 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:

>

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

November 16, 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.

November 17, 2023
The implementation isn't complete, that is why we haven't advertised it at that level so far.