Skip to content

Commit 76e7cbb

Browse files
committed
fix some TS 4.1 errors (#106358)
1 parent 3fb8967 commit 76e7cbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/base/node/terminalEncoding.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const JSCHARDET_TO_ICONV_ENCODINGS: { [name: string]: string } = {
4040
const UTF8 = 'utf8';
4141

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

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

5555
// Windows: educated guess
5656
else if (isWindows) {
57-
rawEncodingPromise = new Promise<string>(resolve => {
57+
rawEncodingPromise = new Promise<string | undefined>(resolve => {
5858
if (verbose) {
5959
console.log('Running "chcp" to detect terminal encoding...');
6060
}

0 commit comments

Comments
 (0)