提交 d0c123d7 编写于 作者: J Joao Moreno

always convert args to strings

fixes #7498
上级 2cdcaf24
......@@ -241,11 +241,7 @@ export class EnvService implements IEnvironmentService {
function parsePathArguments(cwd: string, args: string[], gotoLineMode?: boolean): string[] {
const result = args.map(arg => {
if (typeof arg !== 'string') {
return null; // TODO@Ben workaround for https://github.com/Microsoft/vscode/issues/7498
}
let pathCandidate = arg;
let pathCandidate = String(arg);
let parsedPath: IParsedPath;
if (gotoLineMode) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册