Skip to content
New issue

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

Small unit test bug fixes #1308

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@
"scope": "resource",
"items": {
"type": "string",
"pattern": "^([\\p{L}\\d_. -]+([\\/\\\\][\\p{L}\\d_. -]*))?$",
"pattern": "^([\\p{L}\\d_. -]+([\\/\\\\][\\p{L}\\d_. -]+)*)?$",
"patternErrorMessage": "Each folder name can only contain letters, digits, space, hyphen ('-'), period ('.'), or underscore ('_'), and the full path must neither begin nor end with a slash."
}
},
Expand Down
2 changes: 2 additions & 0 deletions src/commands/unitTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ async function runHandler(
});
if (test.parent.uri.scheme == "file") {
// Add this class to the list to load
if (asyncRequest.load == undefined) asyncRequest.load = [];
asyncRequest.load.push({
file: test.parent.uri.fsPath,
content: textDecoder.decode(await vscode.workspace.fs.readFile(test.parent.uri)).split(/\r?\n/),
Expand Down Expand Up @@ -554,6 +555,7 @@ async function runHandler(
}
if (test.uri.scheme == "file") {
// Add this class to the list to load
if (asyncRequest.load == undefined) asyncRequest.load = [];
asyncRequest.load.push({
file: test.uri.fsPath,
content: textDecoder.decode(await vscode.workspace.fs.readFile(test.uri)).split(/\r?\n/),
Expand Down
Loading