mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
auto-fixed prefer-const violation
This commit is contained in:
@@ -57,7 +57,7 @@ class ServerReadyDetector extends vscode.Disposable {
|
||||
}
|
||||
|
||||
static stop(session: vscode.DebugSession): void {
|
||||
let detector = ServerReadyDetector.detectors.get(session);
|
||||
const detector = ServerReadyDetector.detectors.get(session);
|
||||
if (detector) {
|
||||
ServerReadyDetector.detectors.delete(session);
|
||||
detector.dispose();
|
||||
@@ -65,7 +65,7 @@ class ServerReadyDetector extends vscode.Disposable {
|
||||
}
|
||||
|
||||
static rememberShellPid(session: vscode.DebugSession, pid: number) {
|
||||
let detector = ServerReadyDetector.detectors.get(session);
|
||||
const detector = ServerReadyDetector.detectors.get(session);
|
||||
if (detector) {
|
||||
detector.shellPid = pid;
|
||||
}
|
||||
@@ -77,7 +77,7 @@ class ServerReadyDetector extends vscode.Disposable {
|
||||
|
||||
// first find the detector with a matching pid
|
||||
const pid = await e.terminal.processId;
|
||||
for (let [, detector] of this.detectors) {
|
||||
for (const [, detector] of this.detectors) {
|
||||
if (detector.shellPid === pid) {
|
||||
detector.detectPattern(e.data);
|
||||
return;
|
||||
@@ -85,7 +85,7 @@ class ServerReadyDetector extends vscode.Disposable {
|
||||
}
|
||||
|
||||
// if none found, try all detectors until one matches
|
||||
for (let [, detector] of this.detectors) {
|
||||
for (const [, detector] of this.detectors) {
|
||||
if (detector.detectPattern(e.data)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user