Skip to content

Commit 235e51f

Browse files
committed
Rename "cleanCmdQueue" to "terminateCmdsInQueue"
1 parent b579db5 commit 235e51f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/proc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function extendOSEnvironPath(name, items, prepend = true) {
100100

101101
const __RUN_CMD_QUEUE = [];
102102

103-
export function cleanCmdQueue() {
103+
export function terminateCmdsInQueue() {
104104
while (__RUN_CMD_QUEUE.length) {
105105
const callback = __RUN_CMD_QUEUE.pop()[2];
106106
if (callback) {

src/project/indexer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* the root directory of this source tree.
77
*/
88

9-
import { cleanCmdQueue } from '../proc';
109
import path from 'path';
1110
import { runPIOCommand } from '../core';
11+
import { terminateCmdsInQueue } from '../proc';
1212

1313
export default class ProjectIndexer {
1414
static AUTO_REBUILD_DELAY = 3; // 3 seconds
@@ -121,7 +121,7 @@ export default class ProjectIndexer {
121121
if (token) {
122122
token.onCancellationRequested(() => {
123123
logMessage('Configuration process has been terminated!', true);
124-
cleanCmdQueue();
124+
terminateCmdsInQueue();
125125
subprocess.kill();
126126
});
127127
}

0 commit comments

Comments
 (0)