Jelajahi Sumber

vscode: dotnet telemetry optout

telans 5 tahun lalu
induk
melakukan
ae20776db3
2 mengubah file dengan 15 tambahan dan 7 penghapusan
  1. 9 6
      .vscode/launch.json
  2. 6 1
      .vscode/tasks.json

+ 9 - 6
.vscode/launch.json

@@ -1,9 +1,9 @@
 {
 {
-   // Use IntelliSense to find out which attributes exist for C# debugging
-   // Use hover for the description of the existing attributes
-   // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
-   "version": "0.2.0",
-   "configurations": [
+    // Use IntelliSense to find out which attributes exist for C# debugging
+    // Use hover for the description of the existing attributes
+    // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
+    "version": "0.2.0",
+    "configurations": [
         {
         {
             "name": ".NET Core Launch (console)",
             "name": ".NET Core Launch (console)",
             "type": "coreclr",
             "type": "coreclr",
@@ -24,5 +24,8 @@
             "request": "attach",
             "request": "attach",
             "processId": "${command:pickProcess}"
             "processId": "${command:pickProcess}"
         }
         }
-    ,]
+    ],
+    "env": {
+        "DOTNET_CLI_TELEMETRY_OPTOUT": "1"
+    }
 }
 }

+ 6 - 1
.vscode/tasks.json

@@ -21,5 +21,10 @@
             ],
             ],
             "problemMatcher": "$msCompile"
             "problemMatcher": "$msCompile"
         }
         }
-    ]
+    ],
+    "options": {
+        "env": {
+            "DOTNET_CLI_TELEMETRY_OPTOUT": "1"
+        }
+    }
 }
 }