diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3bdfc41f0a3f..e216a2ecb136 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -75,7 +75,13 @@ Next, get the code: If you have previously worked in this repo using the `npm` workflow, the first time you switch to using Rush you should commit or stash any untracked files and then get back to a clean state by running `rush reset-workspace` before proceeding any further. This will get rid of any latent package-lock files, as well as your existing (incompatible) node_modules directories. You can then proceed down the path outlined below. -### Warnings for VSCode users +### Using Visual Studio Code + +#### Debugging + +Debugging Node.js code in VSCode is [well documented](https://code.visualstudio.com/docs/nodejs/nodejs-debugging). However, starting from version 1.45.1, VSCode can automatically debug Node.js code in most cases without having to write custom `launch.json` files for that purpose and this is true for our SDKs code as well. A demonstration of that feature can be found in the [release notes](https://code.visualstudio.com/updates/v1_45#_automatic-debug-configurations). + +#### Warnings Visual Studio Code has a feature which will automatically fetch and install @types packages for you, using the standard npm package manager. This will cause problems with your node_modules directory, since Rush uses PNPM which lays out this directory quite differently. It's highly recommended that you ensure "Typescript: Disable Automatic Type Acquisition" is checked in your VSCode Workspace Settings (or ensure `typescript.disableAutomaticTypeAcquisition` is present in your .vscode/settings.json file). diff --git a/sdk/core/core-amqp/.vscode/launch.json b/sdk/core/core-amqp/.vscode/launch.json deleted file mode 100644 index a10582e732fb..000000000000 --- a/sdk/core/core-amqp/.vscode/launch.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-u", - "tdd", - "-r", - "ts-node/register", - "-t", - "999999", - "--colors", - "${workspaceFolder}/tests/requestResponse.spec.ts" - ], - "internalConsoleOptions": "openOnSessionStart", - "envFile": "${workspaceFolder}/.env" // You can take a look at the sample.env file for supported environment variables. - }, - { - "type": "node", - "request": "launch", - "name": "Example", - "program": "${file}", - "preLaunchTask": "npm: build:samples", - "outFiles": [ - "${workspaceFolder}/dist-esm/**/*.js" - ], - "envFile": "${workspaceFolder}/.env" - } - ] -} diff --git a/sdk/core/core-arm/package.json b/sdk/core/core-arm/package.json index ea02c0cba460..d27740a71ea5 100644 --- a/sdk/core/core-arm/package.json +++ b/sdk/core/core-arm/package.json @@ -87,7 +87,8 @@ "test": "npm run build && npm run unit-test && npm run integration-test", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "echo skipped", - "unit-test:node": "nyc mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors \"test/**/*.ts\"", + "unit-test:node": "mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors \"test/**/*.ts\"", + "cover:unit:node": "nyc npm run unit-test:node", "pack": "npm pack 2>&1", "prebuild": "npm run clean" }, diff --git a/sdk/core/core-auth/.vscode/launch.json b/sdk/core/core-auth/.vscode/launch.json deleted file mode 100644 index 8db7350f51e1..000000000000 --- a/sdk/core/core-auth/.vscode/launch.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Launch Program", - "preLaunchTask": "Build Node", - "program": "${workspaceFolder}\\src\\index.ts", - "outFiles": ["${workspaceFolder}/dist/**/*.js"], - "sourceMaps": true - } - ] -} diff --git a/sdk/core/core-auth/.vscode/tasks.json b/sdk/core/core-auth/.vscode/tasks.json deleted file mode 100644 index 83bb44526db4..000000000000 --- a/sdk/core/core-auth/.vscode/tasks.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "Build Node", - "type": "npm", - "script": "build:node", - "group": { - "kind": "build", - "isDefault": true - } - } - ] -} diff --git a/sdk/core/core-client/.vscode/launch.json b/sdk/core/core-client/.vscode/launch.json deleted file mode 100644 index a48155453e9c..000000000000 --- a/sdk/core/core-client/.vscode/launch.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Current TS File", - "args": ["${fileBasename}"], - "runtimeArgs": ["--nolazy", "-r", "ts-node/register"], - "cwd": "${fileDirname}", - "sourceMaps": true, - "protocol": "inspector" - }, - { - "type": "node", - "request": "launch", - "name": "Run unit tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": ["--timeout", "999999", "--colors", "${workspaceFolder}/dist-test/index.node.js"], - "cwd": "${workspaceFolder}", - "internalConsoleOptions": "openOnSessionStart", - "skipFiles": ["/**/async_hooks.js", "/**/*.js"] - } - ] -} diff --git a/sdk/core/core-client/.vscode/tasks.json b/sdk/core/core-client/.vscode/tasks.json deleted file mode 100644 index 83bb44526db4..000000000000 --- a/sdk/core/core-client/.vscode/tasks.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "Build Node", - "type": "npm", - "script": "build:node", - "group": { - "kind": "build", - "isDefault": true - } - } - ] -} diff --git a/sdk/core/core-http/.vscode/launch.json b/sdk/core/core-http/.vscode/launch.json deleted file mode 100644 index 69c1b59d9319..000000000000 --- a/sdk/core/core-http/.vscode/launch.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Unit Tests (Node)", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "cwd": "${workspaceFolder}", - "env": { "TS_NODE_FILES": "true" }, - "args": [ - "--require", - "ts-node/register", - "--timeout", - "50000", - "--colors", - "--exclude", - "test/**/*.browser.ts", - "test/**/*.ts" - ], - "internalConsoleOptions": "openOnSessionStart", - "skipFiles": ["/**/async_hooks.js", "/**/*.js"] - } - ] -} diff --git a/sdk/core/core-http/package.json b/sdk/core/core-http/package.json index d9c40b821433..4b69ee92ef16 100644 --- a/sdk/core/core-http/package.json +++ b/sdk/core/core-http/package.json @@ -91,7 +91,8 @@ "test": "npm run build:test && npm run unit-test && npm run integration-test", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "node ./node_modules/karma/bin/karma start karma.conf.ts --browsers ChromeNoSecurity --single-run", - "unit-test:node": "cross-env TS_NODE_FILES=true nyc mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors --exclude \"test/**/*.browser.ts\" \"test/**/*.ts\"", + "unit-test:node": "cross-env TS_NODE_FILES=true mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors --exclude \"test/**/*.browser.ts\" \"test/**/*.ts\"", + "cover:unit:node": "nyc npm run unit-test:node", "check:packagejsonversion": "ts-node ./.scripts/checkPackageJsonVersion.ts", "check:foronlycalls": "ts-node ./.scripts/checkForOnlyCalls.ts", "check:everything": "ts-node ./.scripts/checkEverything.ts", diff --git a/sdk/core/core-https/.vscode/launch.json b/sdk/core/core-https/.vscode/launch.json deleted file mode 100644 index a48155453e9c..000000000000 --- a/sdk/core/core-https/.vscode/launch.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Current TS File", - "args": ["${fileBasename}"], - "runtimeArgs": ["--nolazy", "-r", "ts-node/register"], - "cwd": "${fileDirname}", - "sourceMaps": true, - "protocol": "inspector" - }, - { - "type": "node", - "request": "launch", - "name": "Run unit tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": ["--timeout", "999999", "--colors", "${workspaceFolder}/dist-test/index.node.js"], - "cwd": "${workspaceFolder}", - "internalConsoleOptions": "openOnSessionStart", - "skipFiles": ["/**/async_hooks.js", "/**/*.js"] - } - ] -} diff --git a/sdk/core/core-https/.vscode/tasks.json b/sdk/core/core-https/.vscode/tasks.json deleted file mode 100644 index 83bb44526db4..000000000000 --- a/sdk/core/core-https/.vscode/tasks.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "Build Node", - "type": "npm", - "script": "build:node", - "group": { - "kind": "build", - "isDefault": true - } - } - ] -} diff --git a/sdk/cosmosdb/cosmos/.vscode/launch.json b/sdk/cosmosdb/cosmos/.vscode/launch.json deleted file mode 100644 index 1d532df2111e..000000000000 --- a/sdk/cosmosdb/cosmos/.vscode/launch.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Mocha Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "outFiles": ["${workspaceFolder}/dist-esm/**/*.js"], - "preLaunchTask": "npm: compile", - "args": ["-r", "esm", "-r", "test/common/setup.js", "${workspaceFolder}/test/**/*.spec.js"], - "internalConsoleOptions": "openOnSessionStart", - "env": { - "MOCHA_TIMEOUT": "999999" - }, - "protocol": "inspector" - }, - { - "type": "node", - "request": "launch", - "name": "Attach by Process ID", - "processId": "${command:PickProcess}" - }, - { - "type": "node", - "request": "launch", - "name": "build", - "program": "${workspaceFolder}/node_modules/typescript/bin/tsc", - "args": ["-b --verbose"] - }, - { - "type": "node", - "request": "launch", - "name": "Debug file", - "program": "${file}", - "cwd": "${fileDirname}", - "env": { - "NODE_TLS_REJECT_UNAUTHORIZED": "0" - } - }, - { - "type": "node", - "request": "launch", - "name": "MutliRegionWrite - Debug", - "args": ["${relativeFile}"], - "runtimeArgs": ["-r", "ts-node/register"], - "sourceMaps": true, - "cwd": "${workspaceRoot}", - "protocol": "inspector" - } - ] -} diff --git a/sdk/cosmosdb/cosmos/.vscode/settings.json b/sdk/cosmosdb/cosmos/.vscode/settings.json deleted file mode 100644 index b88c362b3250..000000000000 --- a/sdk/cosmosdb/cosmos/.vscode/settings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "mocha.files.glob": "test/legacy/**/*.js", - "editor.formatOnSave": true, - "typescript.tsdk": "node_modules/typescript/lib", - "workbench.colorCustomizations": {}, - "search.exclude": { - "**/dist": true, - "**/dist-esm": true, - "**/node_modules": true - } -} diff --git a/sdk/cosmosdb/cosmos/.vscode/tasks.json b/sdk/cosmosdb/cosmos/.vscode/tasks.json deleted file mode 100644 index cc78a3611cd1..000000000000 --- a/sdk/cosmosdb/cosmos/.vscode/tasks.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "type": "npm", - "script": "build", - "problemMatcher": [ - "$tsc", - "$tslint5" - ] - }, - { - "type": "npm", - "script": "compile", - "problemMatcher": [ - "$tsc" - ] - } - ] -} diff --git a/sdk/eventhub/event-hubs/.vscode/launch.json b/sdk/eventhub/event-hubs/.vscode/launch.json index c2a2c66ba1c0..300b34081ea3 100644 --- a/sdk/eventhub/event-hubs/.vscode/launch.json +++ b/sdk/eventhub/event-hubs/.vscode/launch.json @@ -4,28 +4,11 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Client Unit Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-u", - "bdd", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/test-dist/index.js" - ], - "internalConsoleOptions": "openOnSessionStart", - "preLaunchTask": "npm: build:test" - }, { "type": "node", "request": "launch", "name": "Client Example", "program": "${file}", - "preLaunchTask": "npm: build:samples", "outFiles": [ "${workspaceFolder}/dist-esm/**/*.js" ], diff --git a/sdk/eventhub/event-processor-host/.vscode/launch.json b/sdk/eventhub/event-processor-host/.vscode/launch.json deleted file mode 100644 index 52074107f396..000000000000 --- a/sdk/eventhub/event-processor-host/.vscode/launch.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "EPH Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-u", - "tdd", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/test-dist/index.js" - ], - "internalConsoleOptions": "openOnSessionStart", - "preLaunchTask": "npm: build:test", - "envFile": "${workspaceFolder}/.env" // You can take a look at the sample.env file for supported environment variables. - }, - { - "type": "node", - "request": "launch", - "name": "EPH Example", - "program": "${file}", - "outFiles": [ - "${workspaceFolder}/dist-esm/**/*.js" - ], - "preLaunchTask": "npm: build:samples", - "envFile": "${workspaceFolder}/.env" // You can take a look at the sample.env file for supported environment variables. - } - ] -} diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/.vscode/launch.json b/sdk/eventhub/eventhubs-checkpointstore-blob/.vscode/launch.json index b8d737ba823b..05178f7ff403 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/.vscode/launch.json +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/.vscode/launch.json @@ -7,26 +7,8 @@ { "type": "node", "request": "launch", - "name": "Client Unit Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-u", - "bdd", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/test-dist/index.js" - ], - "internalConsoleOptions": "openOnSessionStart", - "preLaunchTask": "npm: build:test", - "envFile": "${workspaceFolder}/.env" // You can take a look at the sample.env file for supported environment variables. - }, - { - "type": "node", - "request": "launch", - "name": "Client Example", + "name": "Current JS file", "program": "${file}", - "preLaunchTask": "npm: build:samples", "outFiles": [ "${workspaceFolder}/dist-esm/**/*.js" ], diff --git a/sdk/formrecognizer/ai-form-recognizer/.vscode/launch.json b/sdk/formrecognizer/ai-form-recognizer/.vscode/launch.json index 366fd858b324..97a48457f5ad 100644 --- a/sdk/formrecognizer/ai-form-recognizer/.vscode/launch.json +++ b/sdk/formrecognizer/ai-form-recognizer/.vscode/launch.json @@ -16,23 +16,6 @@ "outFiles": [ "${workspaceFolder}/dist/**/*.js" ] - }, - { - "type": "node", - "request": "launch", - "name": "Unit Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/dist-test/index.node.js" - ], - "internalConsoleOptions": "openOnSessionStart", - "skipFiles": [ - "/**/async_hooks.js", - "/**/*.js" - ] } ] } \ No newline at end of file diff --git a/sdk/identity/identity/.vscode/launch.json b/sdk/identity/identity/.vscode/launch.json deleted file mode 100644 index 765fdd5cddb8..000000000000 --- a/sdk/identity/identity/.vscode/launch.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Launch Program", - "preLaunchTask": "Build Node", - "program": "${workspaceFolder}\\src\\index.ts", - "outFiles": [ - "${workspaceFolder}/dist/**/*.js" - ], - "sourceMaps": true - }, - { - "type": "node", - "request": "launch", - "name": "Run unit tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/test-dist/index.js" - ], - "cwd": "${workspaceFolder}", - "internalConsoleOptions": "openOnSessionStart", - "skipFiles": [ - "/**/async_hooks.js", - "/**/*.js" - ] - } - ] -} diff --git a/sdk/identity/identity/.vscode/tasks.json b/sdk/identity/identity/.vscode/tasks.json deleted file mode 100644 index 83bb44526db4..000000000000 --- a/sdk/identity/identity/.vscode/tasks.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "Build Node", - "type": "npm", - "script": "build:node", - "group": { - "kind": "build", - "isDefault": true - } - } - ] -} diff --git a/sdk/search/search-documents/.vscode/launch.json b/sdk/search/search-documents/.vscode/launch.json index a48155453e9c..5dbdd79f7e29 100644 --- a/sdk/search/search-documents/.vscode/launch.json +++ b/sdk/search/search-documents/.vscode/launch.json @@ -7,22 +7,15 @@ { "type": "node", "request": "launch", - "name": "Current TS File", - "args": ["${fileBasename}"], - "runtimeArgs": ["--nolazy", "-r", "ts-node/register"], + "name": "Current JS file", + "skipFiles": [ + "/**" + ], + "program": "${file}", "cwd": "${fileDirname}", - "sourceMaps": true, - "protocol": "inspector" - }, - { - "type": "node", - "request": "launch", - "name": "Run unit tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": ["--timeout", "999999", "--colors", "${workspaceFolder}/dist-test/index.node.js"], - "cwd": "${workspaceFolder}", - "internalConsoleOptions": "openOnSessionStart", - "skipFiles": ["/**/async_hooks.js", "/**/*.js"] + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ] } ] } diff --git a/sdk/search/search-documents/.vscode/tasks.json b/sdk/search/search-documents/.vscode/tasks.json deleted file mode 100644 index 83bb44526db4..000000000000 --- a/sdk/search/search-documents/.vscode/tasks.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "Build Node", - "type": "npm", - "script": "build:node", - "group": { - "kind": "build", - "isDefault": true - } - } - ] -} diff --git a/sdk/servicebus/service-bus/.vscode/launch.json b/sdk/servicebus/service-bus/.vscode/launch.json index 2035f40fe6d0..5dbdd79f7e29 100644 --- a/sdk/servicebus/service-bus/.vscode/launch.json +++ b/sdk/servicebus/service-bus/.vscode/launch.json @@ -7,29 +7,15 @@ { "type": "node", "request": "launch", - "name": "Debug sample", - "program": "${file}", - "preLaunchTask": "npm: build:samples", - "outFiles": ["${workspaceFolder}/dist-esm/**/*.js"] - }, - { - "type": "node", - "request": "launch", - "name": "Debug Unit Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-r", - "esm", - "--require", - "source-map-support/register", - "--timeout", - "120000", - "--full-trace", - "dist-esm/test/*.spec.js", - "dist-esm/test/**/*.spec.js" + "name": "Current JS file", + "skipFiles": [ + "/**" ], - "internalConsoleOptions": "openOnSessionStart", - "preLaunchTask": "npm: build:test" + "program": "${file}", + "cwd": "${fileDirname}", + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ] } ] } diff --git a/sdk/storage/storage-blob-changefeed/.vscode/extensions.json b/sdk/storage/storage-blob-changefeed/.vscode/extensions.json deleted file mode 100644 index c83e26348e1f..000000000000 --- a/sdk/storage/storage-blob-changefeed/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": ["esbenp.prettier-vscode"] -} diff --git a/sdk/storage/storage-blob-changefeed/.vscode/launch.json b/sdk/storage/storage-blob-changefeed/.vscode/launch.json deleted file mode 100644 index 893064f17db0..000000000000 --- a/sdk/storage/storage-blob-changefeed/.vscode/launch.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Debug Javascript Samples", - "program": "${workspaceFolder}/samples/javascript/basic.js", - "preLaunchTask": "npm: build:js-samples" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Typescript Samples", - "program": "${workspaceFolder}/samples/typescript/basic.ts", - "preLaunchTask": "npm: build:ts-samples", - "outFiles": ["${workspaceFolder}/dist-esm/samples/typescript/*.js"] - }, - { - "type": "node", - "request": "launch", - "name": "Debug Mocha Test [Without Rollup]", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-r", - "ts-node/register", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/test/*.spec.ts", - "${workspaceFolder}/test/node/*.spec.ts" - ], - "env": { - "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\" }", - "NODE_PATH": "${workspaceFolder}/../../../common/temp/node_modules/.pnpm/node_modules" - }, - "envFile": "${workspaceFolder}/.env", - "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen", - "protocol": "inspector" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Unit Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-u", - "tdd", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/dist-test/index.node.js" - ], - "internalConsoleOptions": "openOnSessionStart", - "preLaunchTask": "npm: build:test" - } - ] -} diff --git a/sdk/storage/storage-blob-changefeed/.vscode/settings.json b/sdk/storage/storage-blob-changefeed/.vscode/settings.json deleted file mode 100644 index 71c65f9f433a..000000000000 --- a/sdk/storage/storage-blob-changefeed/.vscode/settings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "files.exclude": { - "**/.git": true, - "**/.svn": true, - "**/.DS_Store": true - }, - "[typescript]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "[json]": { - "editor.formatOnSave": false, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "[yaml]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "editor.rulers": [ - 100 - ], - "typescript.preferences.quoteStyle": "double", - "javascript.preferences.quoteStyle": "double" - } \ No newline at end of file diff --git a/sdk/storage/storage-blob/.vscode/extensions.json b/sdk/storage/storage-blob/.vscode/extensions.json deleted file mode 100644 index c83e26348e1f..000000000000 --- a/sdk/storage/storage-blob/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": ["esbenp.prettier-vscode"] -} diff --git a/sdk/storage/storage-blob/.vscode/launch.json b/sdk/storage/storage-blob/.vscode/launch.json index 893064f17db0..5dbdd79f7e29 100644 --- a/sdk/storage/storage-blob/.vscode/launch.json +++ b/sdk/storage/storage-blob/.vscode/launch.json @@ -7,56 +7,15 @@ { "type": "node", "request": "launch", - "name": "Debug Javascript Samples", - "program": "${workspaceFolder}/samples/javascript/basic.js", - "preLaunchTask": "npm: build:js-samples" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Typescript Samples", - "program": "${workspaceFolder}/samples/typescript/basic.ts", - "preLaunchTask": "npm: build:ts-samples", - "outFiles": ["${workspaceFolder}/dist-esm/samples/typescript/*.js"] - }, - { - "type": "node", - "request": "launch", - "name": "Debug Mocha Test [Without Rollup]", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-r", - "ts-node/register", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/test/*.spec.ts", - "${workspaceFolder}/test/node/*.spec.ts" - ], - "env": { - "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\" }", - "NODE_PATH": "${workspaceFolder}/../../../common/temp/node_modules/.pnpm/node_modules" - }, - "envFile": "${workspaceFolder}/.env", - "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen", - "protocol": "inspector" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Unit Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-u", - "tdd", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/dist-test/index.node.js" + "name": "Current JS file", + "skipFiles": [ + "/**" ], - "internalConsoleOptions": "openOnSessionStart", - "preLaunchTask": "npm: build:test" + "program": "${file}", + "cwd": "${fileDirname}", + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ] } ] } diff --git a/sdk/storage/storage-blob/.vscode/settings.json b/sdk/storage/storage-blob/.vscode/settings.json deleted file mode 100644 index 8272fa845213..000000000000 --- a/sdk/storage/storage-blob/.vscode/settings.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "files.exclude": { - "**/.git": true, - "**/.svn": true, - "**/.DS_Store": true - }, - "[typescript]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false, - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[json]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false, - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[yaml]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "editor.rulers": [ - 100 - ], - "typescript.preferences.quoteStyle": "double", - "javascript.preferences.quoteStyle": "double" - } \ No newline at end of file diff --git a/sdk/storage/storage-file-datalake/.vscode/extensions.json b/sdk/storage/storage-file-datalake/.vscode/extensions.json deleted file mode 100644 index c83e26348e1f..000000000000 --- a/sdk/storage/storage-file-datalake/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": ["esbenp.prettier-vscode"] -} diff --git a/sdk/storage/storage-file-datalake/.vscode/launch.json b/sdk/storage/storage-file-datalake/.vscode/launch.json index 262b25f04ebd..5dbdd79f7e29 100644 --- a/sdk/storage/storage-file-datalake/.vscode/launch.json +++ b/sdk/storage/storage-file-datalake/.vscode/launch.json @@ -7,78 +7,15 @@ { "type": "node", "request": "launch", - "name": "Debug Javascript Samples", - "program": "${workspaceFolder}/samples/javascript/basic.js", - "preLaunchTask": "npm: build:js-samples" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Typescript Samples", - "program": "${workspaceFolder}/samples/typescript/basic.ts", - "preLaunchTask": "npm: build:ts-samples", - "outFiles": ["${workspaceFolder}/dist-esm/samples/typescript/*.js"] - }, - { - "type": "node", - "request": "launch", - "name": "Debug Mocha Test [Without Rollup]", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-r", - "ts-node/register", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/test/*.spec.ts", - "${workspaceFolder}/test/node/*.spec.ts" - ], - "env": { - "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\" }", - "NODE_PATH": "${workspaceFolder}/../../../common/temp/node_modules/.pnpm/node_modules" - }, - "envFile": "${workspaceFolder}/.env", - "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen", - "protocol": "inspector" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Current Mocha Test File [Without Rollup]", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-r", - "ts-node/register", - "--timeout", - "999999", - "--colors", - "${relativeFile}", - ], - "env": { - "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\" }", - "NODE_PATH": "${workspaceFolder}/../../../common/temp/node_modules/.pnpm/node_modules" - }, - "envFile": "${workspaceFolder}/../.env", - "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen", - "protocol": "inspector" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Unit Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-u", - "tdd", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/dist-test/index.node.js" + "name": "Current JS file", + "skipFiles": [ + "/**" ], - "internalConsoleOptions": "openOnSessionStart", - "preLaunchTask": "npm: build:test" + "program": "${file}", + "cwd": "${fileDirname}", + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ] } ] } diff --git a/sdk/storage/storage-file-datalake/.vscode/settings.json b/sdk/storage/storage-file-datalake/.vscode/settings.json deleted file mode 100644 index 8272fa845213..000000000000 --- a/sdk/storage/storage-file-datalake/.vscode/settings.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "files.exclude": { - "**/.git": true, - "**/.svn": true, - "**/.DS_Store": true - }, - "[typescript]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false, - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[json]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false, - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[yaml]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "editor.rulers": [ - 100 - ], - "typescript.preferences.quoteStyle": "double", - "javascript.preferences.quoteStyle": "double" - } \ No newline at end of file diff --git a/sdk/storage/storage-file-share/.vscode/extensions.json b/sdk/storage/storage-file-share/.vscode/extensions.json deleted file mode 100644 index c83e26348e1f..000000000000 --- a/sdk/storage/storage-file-share/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": ["esbenp.prettier-vscode"] -} diff --git a/sdk/storage/storage-file-share/.vscode/launch.json b/sdk/storage/storage-file-share/.vscode/launch.json index 893064f17db0..5dbdd79f7e29 100644 --- a/sdk/storage/storage-file-share/.vscode/launch.json +++ b/sdk/storage/storage-file-share/.vscode/launch.json @@ -7,56 +7,15 @@ { "type": "node", "request": "launch", - "name": "Debug Javascript Samples", - "program": "${workspaceFolder}/samples/javascript/basic.js", - "preLaunchTask": "npm: build:js-samples" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Typescript Samples", - "program": "${workspaceFolder}/samples/typescript/basic.ts", - "preLaunchTask": "npm: build:ts-samples", - "outFiles": ["${workspaceFolder}/dist-esm/samples/typescript/*.js"] - }, - { - "type": "node", - "request": "launch", - "name": "Debug Mocha Test [Without Rollup]", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-r", - "ts-node/register", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/test/*.spec.ts", - "${workspaceFolder}/test/node/*.spec.ts" - ], - "env": { - "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\" }", - "NODE_PATH": "${workspaceFolder}/../../../common/temp/node_modules/.pnpm/node_modules" - }, - "envFile": "${workspaceFolder}/.env", - "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen", - "protocol": "inspector" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Unit Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-u", - "tdd", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/dist-test/index.node.js" + "name": "Current JS file", + "skipFiles": [ + "/**" ], - "internalConsoleOptions": "openOnSessionStart", - "preLaunchTask": "npm: build:test" + "program": "${file}", + "cwd": "${fileDirname}", + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ] } ] } diff --git a/sdk/storage/storage-file-share/.vscode/settings.json b/sdk/storage/storage-file-share/.vscode/settings.json deleted file mode 100644 index 7ceb5ace3e9d..000000000000 --- a/sdk/storage/storage-file-share/.vscode/settings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "files.exclude": { - "**/.git": true, - "**/.svn": true, - "**/.DS_Store": true - }, - "[typescript]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "[json]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "[yaml]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "editor.rulers": [ - 100 - ], - "typescript.preferences.quoteStyle": "double", - "javascript.preferences.quoteStyle": "double" - } \ No newline at end of file diff --git a/sdk/storage/storage-internal-avro/.vscode/extensions.json b/sdk/storage/storage-internal-avro/.vscode/extensions.json deleted file mode 100644 index c83e26348e1f..000000000000 --- a/sdk/storage/storage-internal-avro/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": ["esbenp.prettier-vscode"] -} diff --git a/sdk/storage/storage-internal-avro/.vscode/launch.json b/sdk/storage/storage-internal-avro/.vscode/launch.json deleted file mode 100644 index 26c87676b074..000000000000 --- a/sdk/storage/storage-internal-avro/.vscode/launch.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Debug Javascript Samples", - "program": "${workspaceFolder}/samples/javascript/basic.js", - "preLaunchTask": "npm: build:js-samples" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Typescript Samples", - "program": "${workspaceFolder}/samples/typescript/basic.ts", - "preLaunchTask": "npm: build:ts-samples", - "outFiles": ["${workspaceFolder}/dist-esm/samples/typescript/*.js"] - }, - { - "type": "node", - "request": "launch", - "name": "Debug Mocha Test [Without Rollup]", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-r", - "ts-node/register", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/test/*.spec.ts", - "${workspaceFolder}/test/node/*.spec.ts" - ], - "env": { - "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\" }", - "NODE_PATH": "${workspaceFolder}/../../../common/temp/node_modules/.pnpm/node_modules" - }, - "envFile": "${workspaceFolder}/../.env", - "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen", - "protocol": "inspector" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Unit Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-u", - "tdd", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/dist-test/index.node.js" - ], - "internalConsoleOptions": "openOnSessionStart", - "preLaunchTask": "npm: build:test" - } - ] -} diff --git a/sdk/storage/storage-internal-avro/.vscode/settings.json b/sdk/storage/storage-internal-avro/.vscode/settings.json deleted file mode 100644 index 7ceb5ace3e9d..000000000000 --- a/sdk/storage/storage-internal-avro/.vscode/settings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "files.exclude": { - "**/.git": true, - "**/.svn": true, - "**/.DS_Store": true - }, - "[typescript]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "[json]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "[yaml]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "editor.rulers": [ - 100 - ], - "typescript.preferences.quoteStyle": "double", - "javascript.preferences.quoteStyle": "double" - } \ No newline at end of file diff --git a/sdk/storage/storage-queue/.vscode/extensions.json b/sdk/storage/storage-queue/.vscode/extensions.json deleted file mode 100644 index c83e26348e1f..000000000000 --- a/sdk/storage/storage-queue/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": ["esbenp.prettier-vscode"] -} diff --git a/sdk/storage/storage-queue/.vscode/launch.json b/sdk/storage/storage-queue/.vscode/launch.json index 893064f17db0..5dbdd79f7e29 100644 --- a/sdk/storage/storage-queue/.vscode/launch.json +++ b/sdk/storage/storage-queue/.vscode/launch.json @@ -7,56 +7,15 @@ { "type": "node", "request": "launch", - "name": "Debug Javascript Samples", - "program": "${workspaceFolder}/samples/javascript/basic.js", - "preLaunchTask": "npm: build:js-samples" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Typescript Samples", - "program": "${workspaceFolder}/samples/typescript/basic.ts", - "preLaunchTask": "npm: build:ts-samples", - "outFiles": ["${workspaceFolder}/dist-esm/samples/typescript/*.js"] - }, - { - "type": "node", - "request": "launch", - "name": "Debug Mocha Test [Without Rollup]", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-r", - "ts-node/register", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/test/*.spec.ts", - "${workspaceFolder}/test/node/*.spec.ts" - ], - "env": { - "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\" }", - "NODE_PATH": "${workspaceFolder}/../../../common/temp/node_modules/.pnpm/node_modules" - }, - "envFile": "${workspaceFolder}/.env", - "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen", - "protocol": "inspector" - }, - { - "type": "node", - "request": "launch", - "name": "Debug Unit Tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "-u", - "tdd", - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/dist-test/index.node.js" + "name": "Current JS file", + "skipFiles": [ + "/**" ], - "internalConsoleOptions": "openOnSessionStart", - "preLaunchTask": "npm: build:test" + "program": "${file}", + "cwd": "${fileDirname}", + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ] } ] } diff --git a/sdk/storage/storage-queue/.vscode/settings.json b/sdk/storage/storage-queue/.vscode/settings.json deleted file mode 100644 index 7ceb5ace3e9d..000000000000 --- a/sdk/storage/storage-queue/.vscode/settings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "files.exclude": { - "**/.git": true, - "**/.svn": true, - "**/.DS_Store": true - }, - "[typescript]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "[json]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "[yaml]": { - "editor.formatOnSave": true, - "editor.tabSize": 2, - "editor.detectIndentation": false - }, - "editor.rulers": [ - 100 - ], - "typescript.preferences.quoteStyle": "double", - "javascript.preferences.quoteStyle": "double" - } \ No newline at end of file diff --git a/sdk/tables/azure-tables/.vscode/launch.json b/sdk/tables/azure-tables/.vscode/launch.json deleted file mode 100644 index 5098b87e0455..000000000000 --- a/sdk/tables/azure-tables/.vscode/launch.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Current TS File", - "args": [ - "${fileBasename}" - ], - "runtimeArgs": [ - "--nolazy", - "-r", - "ts-node/register" - ], - "cwd": "${fileDirname}", - "sourceMaps": true, - "protocol": "inspector" - }, - { - "type": "node", - "request": "launch", - "name": "Run unit tests", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", - "args": [ - "--timeout", - "999999", - "--colors", - "${workspaceFolder}/dist-test/index.node.js" - ], - "cwd": "${workspaceFolder}", - "internalConsoleOptions": "openOnSessionStart", - "skipFiles": [ - "/**/async_hooks.js", - "/**/*.js" - ] - } - ] -} diff --git a/sdk/tables/azure-tables/.vscode/tasks.json b/sdk/tables/azure-tables/.vscode/tasks.json deleted file mode 100644 index 83bb44526db4..000000000000 --- a/sdk/tables/azure-tables/.vscode/tasks.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "Build Node", - "type": "npm", - "script": "build:node", - "group": { - "kind": "build", - "isDefault": true - } - } - ] -}