question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CodeLens "Debug" appears on wrong document

See original GitHub issue

Environment

  1. node -v: v8.9.1
  2. npm -v: 5.5.1
  3. npm ls react-scripts (if you haven’t ejected): N/A
  4. Operating system: Windows 7 x64
  5. VS Code: 1.18.1
  6. Jest extension: 4.5.0

Steps to Reproduce

  1. Clone the repo:
    git clone https://github.com/seanpoulter/vscode-jest-178
    
  2. Open the repo in Visual Studio Code
  3. Open index.js and index.test.js
  4. Wait for the CodeLens “Debug” to appear in index.test.js
  5. Switch to another window

Expected Behavior

The “Debug” should only appear on the appropriate document.

Actual Behavior

“Debug” appears on the wrong document. Here’s a GIF of it appearing correctly on index.test.js then incorrectly on index.js.

2017-12-01 -- vscode-jest 178 - debug appears in wrong window

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ortacommented, Dec 11, 2017

#186 really only adds the ability to remove all of them - @goncharov’s answer would probably fix it 👍

0reactions
seanpoultercommented, Dec 11, 2017

We need to confirm if this was fixed by #186 and ideally test it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging Unit Test loses codelens Run Test ... - GitHub
Omnisharp debug session stops, codelens run/debug appears and a subsequent debug can be performed. The text was updated successfully, but these ...
Read more >
CodeLens not showing references - visual studio
Go to Tools -> Options -> Text Editor -> All Languages -> CodeLens then click the "Enable CodeLens" option if it is not...
Read more >
Find code changes and other history with CodeLens
Make sure CodeLens is turned on. Go to Tools > Options > Text Editor > All Languages > CodeLens.
Read more >
TypeScript Programming with Visual Studio Code
VS Code provides IntelliSense for individual TypeScript files as well as TypeScript tsconfig.json projects. Hover information. Hover over a TypeScript symbol to ...
Read more >
Configuration | PHP Tools for Visual Studio Documentation
codeLens.enabled, true / false, Enables/disables code lenses in PHP files above functions, types, properties, and constants. php.debug.port, number or array ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found