pragmagic / vscode-nim

An extension for VS Code which provides support for the Nim language.
Other
235 stars 38 forks source link

Nimsuggest should take into account the backend #158

Open dawkot opened 4 years ago

dawkot commented 4 years ago

Description

Because the extension doesn't care if project's backend is JS, nimsuggest doesn't work properly.

Example

With backend = "js"in project's .nimble file, code like this says "no js".

when defined(js):
  {.error: "js".}
else:
  {.error: "no js".}

Fix

I think starting nimsuggest with -d:js arg should be enough.