提交 5d5d3864 编写于 作者: D Daniel Imms

Fix strict null checks

上级 c5e6633f
......@@ -201,10 +201,16 @@ export class TerminalProcessManager implements ITerminalProcessManager {
}
public getInitialCwd(): Promise<string> {
if (!this._process) {
return Promise.resolve('');
}
return this._process.getInitialCwd();
}
public getCwd(): Promise<string> {
if (!this._process) {
return Promise.resolve('');
}
return this._process.getCwd();
}
......
......@@ -77,13 +77,13 @@ export class TerminalProcessExtHostProxy implements ITerminalChildProcess, ITerm
public emitInitialCwd(initialCwd: string): void {
while (this._pendingInitialCwdRequests.length > 0) {
this._pendingInitialCwdRequests.pop()(initialCwd);
this._pendingInitialCwdRequests.pop()!(initialCwd);
}
}
public emitCwd(cwd: string): void {
while (this._pendingCwdRequests.length > 0) {
this._pendingCwdRequests.pop()(cwd);
this._pendingCwdRequests.pop()!(cwd);
}
}
......@@ -100,7 +100,7 @@ export class TerminalProcessExtHostProxy implements ITerminalChildProcess, ITerm
}
public getInitialCwd(): Promise<string> {
return new Promise<string | undefined>(resolve => {
return new Promise<string>(resolve => {
this._onRequestInitialCwd.fire();
this._pendingInitialCwdRequests.push(resolve);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册