Skip to content

Commit

Permalink
fix some TS 4.1 errors (#106358)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Sep 10, 2020
1 parent 3fb8967 commit 76e7cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/base/node/terminalEncoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const JSCHARDET_TO_ICONV_ENCODINGS: { [name: string]: string } = {
const UTF8 = 'utf8';

export async function resolveTerminalEncoding(verbose?: boolean): Promise<string> {
let rawEncodingPromise: Promise<string>;
let rawEncodingPromise: Promise<string | undefined>;

// Support a global environment variable to win over other mechanics
const cliEncodingEnv = process.env['VSCODE_CLI_ENCODING'];
Expand All @@ -54,7 +54,7 @@ export async function resolveTerminalEncoding(verbose?: boolean): Promise<string

// Windows: educated guess
else if (isWindows) {
rawEncodingPromise = new Promise<string>(resolve => {
rawEncodingPromise = new Promise<string | undefined>(resolve => {
if (verbose) {
console.log('Running "chcp" to detect terminal encoding...');
}
Expand Down

0 comments on commit 76e7cbb

Please sign in to comment.