Thread overview
VS Code DSCanner doesn't like shortened method syntax
Dec 13, 2022
torhu
Dec 15, 2022
WebFreak001
Dec 15, 2022
torhu
Dec 03
bomat
December 13, 2022

Is there a way to have DScanner not put a red line under definitions like this, besides disabling it alltogether?

bool sleeping() => sleeping_;
December 15, 2022

On Tuesday, 13 December 2022 at 19:46:02 UTC, torhu wrote:

>

Is there a way to have DScanner not put a red line under definitions like this, besides disabling it alltogether?

bool sleeping() => sleeping_;

The latest D-Scanner release supports this new syntax.

If you use code-d, you get this update automatically in the next release, or you can try out the pre-release right now.

To install nightly or pre-release versions of serve-d, go into the VSCode user settings (default shortcut: Ctrl-,), then go to the D section and set "Served Release Channel" to nightly or beta (JSON setting: "d.servedReleaseChannel": "nightly")

When done, reload VSCode to make code-d auto-download the new serve-d version.

December 15, 2022

On Thursday, 15 December 2022 at 13:18:06 UTC, WebFreak001 wrote:

>

The latest D-Scanner release supports this new syntax.

Thanks!

December 03

On Thursday, 15 December 2022 at 13:18:06 UTC, WebFreak001 wrote:

>

The latest D-Scanner release supports this new syntax.

If you use code-d, you get this update automatically in the next release, or you can try out the pre-release right now.

To install nightly or pre-release versions of serve-d, go into the VSCode user settings (default shortcut: Ctrl-,), then go to the D section and set "Served Release Channel" to nightly or beta (JSON setting: "d.servedReleaseChannel": "nightly")

When done, reload VSCode to make code-d auto-download the new serve-d version.

Just wanted to add my thanks!
I had a similar issue with the new named member initialization feature, after updating the compiler from 2.102 to 2.106. Switched to the beta channel, now it works. :)

The last official release of code-d is two years old now, is there an update in sight?