File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const JSCHARDET_TO_ICONV_ENCODINGS: { [name: string]: string } = {
40
40
const UTF8 = 'utf8' ;
41
41
42
42
export async function resolveTerminalEncoding ( verbose ?: boolean ) : Promise < string > {
43
- let rawEncodingPromise : Promise < string > ;
43
+ let rawEncodingPromise : Promise < string | undefined > ;
44
44
45
45
// Support a global environment variable to win over other mechanics
46
46
const cliEncodingEnv = process . env [ 'VSCODE_CLI_ENCODING' ] ;
@@ -54,7 +54,7 @@ export async function resolveTerminalEncoding(verbose?: boolean): Promise<string
54
54
55
55
// Windows: educated guess
56
56
else if ( isWindows ) {
57
- rawEncodingPromise = new Promise < string > ( resolve => {
57
+ rawEncodingPromise = new Promise < string | undefined > ( resolve => {
58
58
if ( verbose ) {
59
59
console . log ( 'Running "chcp" to detect terminal encoding...' ) ;
60
60
}
You can’t perform that action at this time.
0 commit comments