We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smartstep ignores code that are generated from async/await using ts-node. The workaround is to disable smartStep in the launch.json
smartStep
Repro files: Launch.json:
{ // 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 Current File (ts-node)", "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", "runtimeArgs": [ "--preserve-symlinks", "-r", "ts-node/register", ], "args": [ "--timeout", "999999", "--colors", "${file}" ], "runtimeExecutable": "~/.nvm/versions/node/v11.1.0/bin/node", "sourceMaps": true, "protocol": "auto", "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", "env": { "TS_NODE_FILES": "true" }, "smartStep": true, }, ] }
Test File
import { suite, test, } from 'mocha-typescript'; import * as sinon from 'sinon'; import { SinonSandbox } from 'sinon'; import { expect, assert } from 'chai'; import BluebirdPromise = require('bluebird'); @suite export class PlayerControlApiDecSpec { @test public async test(){ const answer = await BluebirdPromise.resolve(15); expect(answer).to.eql(15); } }
tsconfig.json
{ "compilerOptions": { "experimentalDecorators": true, "module": "commonjs", "target": "es5", } }
Package.json
{ "name": "scratch", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "devDependencies": { "@types/bluebird-global": "^3.5.10", "@types/chai": "^4.1.7", "chai": "^4.2.0", "mocha": "^5.2.0", "mocha-typescript": "^1.1.17", "sinon": "^7.2.3", "ts-node": "^8.0.2", "typescript": "^3.3.3" }, "dependencies": { "bluebird": "^3.5.3" } }
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered:
Thanks for all the details, this is #68127 (comment)
Sorry, something went wrong.
roblourens
No branches or pull requests
Smartstep ignores code that are generated from async/await using ts-node. The workaround is to disable
smartStep
in the launch.jsonRepro files:
Launch.json:
Test File
tsconfig.json
Package.json
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: