Skip to content

Commit f7ef0fd

Browse files
Peter WonePeter Wone
Peter Wone
authored and
Peter Wone
committed
Grooming to pacify Travis
1 parent b780736 commit f7ef0fd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/arduino/arduino.ts

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { ArduinoWorkspace } from "../common/workspace";
2323
import { SerialMonitor } from "../serialmonitor/serialMonitor";
2424
import { UsbDetector } from "../serialmonitor/usbDetector";
2525
import { ProgrammerManager } from "./programmerManager";
26-
import { messages } from './../common/constants';
2726

2827
/**
2928
* Represent an Arduino application based on the official Arduino IDE.

src/common/util.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import * as properties from "properties";
1010
import * as vscode from "vscode";
1111
import * as WinReg from "winreg";
1212
import { arduinoChannel } from "./outputChannel";
13-
import { messages } from './constants';
1413

1514
const encodingMapping: object = JSON.parse(fs.readFileSync(path.join(__dirname, "../../../misc", "codepageMapping.json"), "utf8"));
1615

@@ -211,10 +210,11 @@ export function spawn(command: string, outputChannel: vscode.OutputChannel, args
211210
let codepage = "65001";
212211
if (os.platform() === "win32") {
213212
try {
214-
let chcp = childProcess.execSync("chcp");
213+
const chcp = childProcess.execSync("chcp");
215214
codepage = chcp.toString().split(":").pop().trim();
216215
} catch (error) {
217-
arduinoChannel.warning(`Defaulting to code page 850 because chcp failed.\rEnsure your path includes %SystemRoot%\\system32\r${error.message}`);
216+
arduinoChannel.warning(`Defaulting to code page 850 because chcp failed.\
217+
\rEnsure your path includes %SystemRoot%\\system32\r${error.message}`);
218218
codepage = "850";
219219
}
220220
}

0 commit comments

Comments
 (0)