Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
romanresh committed Oct 30, 2017
1 parent cc4cbdb commit c38537c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to the "testcafe-test-runner" extension will be documented i

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [1.4.1]
- Fix the "Cannot read property 'uri' of undefined" error

## [1.4.0]
- Use the new VS Code debug API.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "testcafe-test-runner",
"displayName": "TestCafe Test Runner",
"description": "Allows to run TestCafe tests directly from VS Code via context menu or built-in commands",
"version": "1.4.0",
"version": "1.4.1",
"publisher": "romanresh",
"icon": "images/icon.png",
"engines": {
Expand Down
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ class TestCafeTestController {
}

var workingDirectory = path.resolve(vscode.workspace.rootPath, workspacePathOverride);
vscode.debug.startDebugging(undefined, {
var wsFolder = vscode.workspace.workspaceFolders ? vscode.workspace.workspaceFolders[0] : undefined;
vscode.debug.startDebugging(wsFolder, {
name: "Launch current test(s) with TestCafe",
request: "launch",
type: "node",
Expand Down

0 comments on commit c38537c

Please sign in to comment.