Fix for Issue #974. Double clicking on Mocha tests opens external editor.#978
Fix for Issue #974. Double clicking on Mocha tests opens external editor.#978jcansdale wants to merge 1 commit intomicrosoft:masterfrom
Conversation
…nal editor. Changed default to line: 1, column: 1.
|
Hi @jcansdale, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
|
Thanks for reporting this issue and finding a fix so quickly. The change looks good overall. One nitpicky question, should it be |
Good question! It looks like 'NodejsTestInfo.SourceColumn' where it gets stored isn't actually used anywhere. Visual Studio uses 1 based for lines and columns. The v8 debugger and TypeScript package on NPM uses 0 based for both. I guess we can assume it should be consistent. Maybe code on the JavaScript side should work with 0 based lines/columns and only code on the C#/Visual Studio side should work with 1 based? Otherwise I can see this issue creeping in again and again when new frameworks are added. |
|
This PR is obsolete if you choose to accept PR #982 instead (which would be my preference). |
|
Merged in #982 |
Issue #974
Bug
Double clicking in Mocha test causes JavaScript file to open in external editor.
Fix
Jumping to line: 0, column: 0 seems to cause this. Changed default to line: 1, column: 1.