提交 4ae3714e 编写于 作者: L Logan Ramos

Remove optional params

上级 6dfbb7f1
...@@ -119,7 +119,7 @@ function _getLangEnvVariable(locale?: string) { ...@@ -119,7 +119,7 @@ function _getLangEnvVariable(locale?: string) {
return parts.join('_') + '.UTF-8'; return parts.join('_') + '.UTF-8';
} }
export function getCwd(shell: IShellLaunchConfig, userHome: string, lastActiveWorkspace: IWorkspaceFolder | undefined, configurationResolverService: IConfigurationResolverService | undefined, root?: Uri, customCwd?: string): string { export function getCwd(shell: IShellLaunchConfig, userHome: string, lastActiveWorkspace: IWorkspaceFolder | undefined, configurationResolverService: IConfigurationResolverService | undefined, root: Uri | undefined, customCwd: string | undefined): string {
if (shell.cwd) { if (shell.cwd) {
return (typeof shell.cwd === 'object') ? shell.cwd.fsPath : shell.cwd; return (typeof shell.cwd === 'object') ? shell.cwd.fsPath : shell.cwd;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册