mirror of
https://github.com/wahyd4/vscode-plugin-recent-files.git
synced 2026-08-09 04:36:04 +10:00
Fix the issue of showing some files outside the workspace.
This commit is contained in:
@@ -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
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user