Fix the issue of showing some files outside the workspace.

This commit is contained in:
2017-08-22 17:14:24 +08:00
parent 4a61f3a492
commit 3138781fa8
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -9,6 +9,8 @@
{ "key": "ctrl+e", "command": "workbench.action.openRecent" }
```
## Notice
* We don't list the files outside the workspace.
## How to use
* press `cmd` + `e` (`ctrl` + `e` in Windows)
* press `F1` then type `Open Recent Files`
+3 -1
View File
@@ -59,7 +59,9 @@ function handleUserInput(item) {
}
function mapUriToDisplayName() {
return _.chain(list.slice()).uniq().reverse().map((item) => {
return _.chain(list.slice()).uniq().reverse().remove(item => {
return item.split(vscode.workspace.rootPath).length != 1
}).map((item) => {
return item.substring(vscode.workspace.rootPath.length + 1)
}).filter((item) => {
//ignore the system files which starts with .