Fixed GOPATH setting for VSCode 33/15433/1
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Fri, 13 Jul 2018 15:18:26 +0000 (17:18 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Fri, 13 Jul 2018 15:23:32 +0000 (17:23 +0200)
Change-Id: I3f75faef18305dca2c848af64dd6feb4ea68c23d
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
.vscode/settings.json

index 7787bfa..c556d7f 100644 (file)
@@ -1,5 +1,16 @@
 // Place your settings in this file to overwrite default and user settings.
 {
+       // Specify GOPATH here to override the one that is set as environment variable. The inferred GOPATH from workspace root overrides this, if go.inferGopath is set to true.
+       "go.gopath": "${workspaceRoot}/../../../../../..",
+
+       // The number of spaces a tab is equal to. This setting is overriden based on the file contents when `editor.detectIndentation` is on.
+       "editor.tabSize": 4,
+       // Insert spaces when pressing Tab. This setting is overriden based on the file contents when `editor.detectIndentation` is on.
+       "editor.insertSpaces": true,
+
+       // When opening a file, `editor.tabSize` and `editor.insertSpaces` will be detected based on the file contents.
+    "editor.detectIndentation": true,
+
     // Configure glob patterns for excluding files and folders.
     "files.exclude": {
         ".tmp": true,
@@ -31,7 +42,5 @@
         "stconfig", "reflectme", "franciscocpg", "crosssdk", "urfave", "EXEPATH",
         "conv", "Sillyf", "xsapiv", "EVTSDK", "zillode", "gerrit", "ITARGET",
         "tgts", "ITERMINAL", "unregister", "Cifs"
-    ],
-    "editor.insertSpaces": true,
-    "editor.detectIndentation": true
+    ]
 }