Skip to content

Commit

Permalink
fix(process-service.ts): fix process list arguments on archlinux
Browse files Browse the repository at this point in the history
fix #10
  • Loading branch information
gary committed May 26, 2022
1 parent 4d2c19e commit 8c5d609
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.1.3](https://github.com/murugaratham/vscode-dotnet-watch/compare/v1.1.2...v1.1.3) (2022-05-26)

### [1.1.1](https://github.com/murugaratham/vscode-dotnet-watch/compare/v1.1.0...v1.1.1) (2022-03-01)


Expand Down
4 changes: 2 additions & 2 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 @@ -2,7 +2,7 @@
"name": "vscode-dotnet-watch",
"displayName": ".NET Watch",
"description": "Dotnet watch with automatic debugger attach",
"version": "1.1.1",
"version": "1.1.3",
"publisher": "Murugaratham",
"engines": {
"vscode": "^1.42.1"
Expand Down
4 changes: 1 addition & 3 deletions src/services/process-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ export default class ProcessService implements Disposable {

// build and execute command line tool "ps" to get details of all running processes
const args = ["-o pid,ppid,command"];
const tmp = child_process.execFileSync("ps", args, {
encoding: "utf8",
});
const tmp = child_process.execSync(`ps ${args}`).toString();

// split process informations results for each process
const processLines = tmp
Expand Down
3 changes: 2 additions & 1 deletion src/services/task-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default class TaskService implements Disposable {
cwd: config.workspace.uri.fsPath,
env: config.env,
}),
"$mscompile"
"$msCompile"
);
//setting these gives a better experience when debugging
task.presentationOptions.reveal = TaskRevealKind.Silent;
Expand Down Expand Up @@ -239,6 +239,7 @@ export default class TaskService implements Disposable {
if (projectUri) {
const task = await TaskService.GenerateTask(config, projectUri);
TaskService.StartTask(task);
console.log("started task")
}
// if no project not found or it isn't unique show error message.
else {
Expand Down

0 comments on commit 8c5d609

Please sign in to comment.