Skip to content

Commit

Permalink
Tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
georgewfraser committed Jun 12, 2018
1 parent f711e8f commit fb9c98f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "FSharp Test",
"command": "dotnet",
"args": ["test", "/Users/georgefraser/Documents/fsharp-language-server/tests/ProjectCracker.Tests/ProjectCracker.Tests.fsproj", "--filter", "FullyQualifiedName=ProjectCrackerTests.crack script defaults"],
"type": "shell"
}
]
}
2 changes: 1 addition & 1 deletion client/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const outputChannel = window.createOutputChannel('F# Tests');

function runTest(projectPath: string, fullyQualifiedName: string): Promise<number> {
return new Promise((resolve, _reject) => {
// TODO make this command configurable
// TODO replace this with the tasks API https://code.visualstudio.com/docs/extensionAPI/vscode-api#_tasks
let cmd = 'dotnet'
let args = ['test', projectPath, '--filter', `FullyQualifiedName=${fullyQualifiedName}`]
let process = cp.spawn(cmd, args)
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"vscode-languageclient": "^4.1.4"
},
"devDependencies": {
"@types/node": "^8.10.17",
"@types/node": "^10.3.2",
"typescript": "^2.6.1",
"vscode": "^1.1.18"
}
Expand Down

0 comments on commit fb9c98f

Please sign in to comment.