Skip to content

Commit

Permalink
project: cleanup, npm audit
Browse files Browse the repository at this point in the history
  • Loading branch information
spmeesseman committed Jan 22, 2022
1 parent d8efd0b commit 04cbbd6
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 12 deletions.
30 changes: 21 additions & 9 deletions package-lock.json

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

12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"@typescript-eslint/eslint-plugin": "^4.14.2",
"@typescript-eslint/eslint-plugin-tslint": "^4.14.2",
"@typescript-eslint/parser": "^4.14.2",
"@vscode/test-electron": "^2.1.1",
"codecov": "^3.8.1",
"eslint": "^7.19.0",
"eslint-plugin-import": "^2.22.1",
Expand Down Expand Up @@ -1416,6 +1417,17 @@
"default": false,
"title": "%config.taskExplorer.useGulp%",
"description": "%config.taskExplorer.useGulpDsc%"
},
"taskExplorer.rename": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
},
"default": [],
"description": "%config.taskExplorer.rename%"
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@
"config.taskExplorer.numLastTasksDsc": "The number of tasks to store in the 'Last Tasks' tree pseudo-folder.",

"config.taskExplorer.enableExplorerView": "Add a task explorer tray in the Explorer sidebar view.",

"config.taskExplorer.rename": "Configure labels that should be used in the Special Folders.",

"config.taskExplorer.showLastTasks": "Show the 'last tasks' as a node in the task tree.",
"config.taskExplorer.showRunningTask": "Show the last ran running task in the status bar.",
Expand Down
5 changes: 3 additions & 2 deletions src/test/runTest.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { execSync } from "child_process";
import * as path from "path";
// eslint-disable-next-line import/no-extraneous-dependencies
import { runTests } from "vscode-test";
// import { runTests } from "@vscode/test-electron";
import { runTests } from "@vscode/test-electron";
// eslint-disable-next-line import/no-extraneous-dependencies
// import { runTests } from "vscode-test";

// eslint-disable-next-line prefer-arrow/prefer-arrow-functions
async function main()
Expand Down
10 changes: 9 additions & 1 deletion src/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,15 @@ export class TaskTreeDataProvider implements TreeDataProvider<TreeItem>

private getSpecialTaskName(taskItem: TaskItem)
{
return taskItem.label + " (" + taskItem.taskFile.folder.label + " - " + taskItem.taskSource + ")";
let label = taskItem.taskFile.folder.label + " - " + taskItem.taskSource;
const renames: string[][] = configuration.get("rename");
for (const i in renames)
{
if (taskItem.resourceUri?.fsPath === renames[i][0] && renames[i][1]) {
label = renames[1][1];
}
}
return taskItem.label + " (" + label + ")";
}


Expand Down

0 comments on commit 04cbbd6

Please sign in to comment.