提交 4b8c6d85 编写于 作者: D Daniel Imms

Trim '.' characters from paths on Windows

This prevents Code from opening/attempting to open invalid file names.

Fixes #1579
上级 9c2c2212
......@@ -316,6 +316,11 @@ function massagePath(path: string): string {
// Trim whitespaces
path = strings.trim(strings.trim(path, ' '), '\t');
// Trim '.' chars on Windows to prevent invalid file names
if (platform.isWindows) {
path = strings.rtrim(normalizePath(path), '.');
}
return path;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册