Skip to content

Commit f7c692a

Browse files
committed
Fix suppressImplicitAnyIndexErrors false in externalTerminal
Part of microsoft#76442
1 parent 0991720 commit f7c692a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/contrib/externalTerminal/node/externalTerminalService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ export class LinuxExternalTerminalService implements IExternalTerminalService {
326326
* tries to turn OS errors into more meaningful error messages
327327
*/
328328
function improveError(err: Error): Error {
329-
if (err['errno'] === 'ENOENT' && err['path']) {
329+
if ('errno' in err && err['errno'] === 'ENOENT' && 'path' in err && typeof err['path'] === 'string') {
330330
return new Error(nls.localize('ext.term.app.not.found', "can't find terminal application '{0}'", err['path']));
331331
}
332332
return err;

0 commit comments

Comments
 (0)