Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions config.nims
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import os

switch("backend", "js")
switch("outdir", "out")
switch("sourceMap", "on")
switch("path", "src")
switch("define", "nimsuggest")
switch("define", "nodejs")
switch("define", "js")

# Add nim's installation path to the search paths so that nimsuggest can be found
let nimInstallationDir = absolutePath(splitPath(getCurrentCompilerExe()).head / "..")
if dirExists(nimInstallationDir / "nimsuggest"):
switch("path", nimInstallationDir)
9 changes: 0 additions & 9 deletions nim.cfg

This file was deleted.

24 changes: 14 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nimvscode",
"displayName": "Nim",
"description": "Nim language support for Visual Studio Code written in Nim",
"version": "0.1.26",
"version": "0.1.27",
"publisher": "nimsaem",
"author": {
"name": "Saem"
Expand Down Expand Up @@ -202,15 +202,19 @@
"nim.projectMapping": {
"type": "array",
"default": [],
"description": "For non project mode list of per file project mapping using regex, for example ```{\"fileRegex\": \"(.*).inim\", \"projectFile\": \"$1.nim\"}```",
"properties": {
"fileRegex": {
"type": "string",
"description": "Source file regex"
},
"projectFile": {
"type": "string",
"description": "Project file path"
"description": "For non project mode list of per file project mapping using regex, for example ```[{\"fileRegex\": \"(.*).inim\", \"projectFile\": \"$1.nim\"}]```",
"items": {
"type": "object",
"title": "mapping",
"properties": {
"fileRegex": {
"type": "string",
"description": "Source file regex"
},
"projectFile": {
"type": "string",
"description": "Project file path"
}
}
},
"scope": "resource"
Expand Down