You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(vscode): add Reload Vault command to refresh files.exclude patterns
New dotfiles or directories added to the vault root outside VS Code are
not picked up until an unrelated config change triggers
syncFilesExclude. "Obsidian VFS: Reload Vault" provides a manual
Command Palette trigger that re-scans the vault root, recomputes both
exclude tiers, and refreshes the Explorer tree view.
Assisted-by: Claude
Copy file name to clipboardExpand all lines: packages/vscode/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ Available via the Command Palette (`Cmd+Shift+P` / `Ctrl+Shift+P`):
38
38
|`Obsidian VFS: Copy Path`| Copy the active file's `obs://` URI to the clipboard (`Shift+Alt+Cmd+C` on `obs://` files) |
39
39
|`Obsidian VFS: Move into Vault`| Move a file from the current project into a mounted vault folder (Explorer context menu, editor title, or Command Palette) |
40
40
|`Obsidian VFS: Duplicate into Vault`| Duplicate a file from the current project into a mounted vault folder (Explorer context menu, editor title, or Command Palette) |
41
+
|`Obsidian VFS: Reload Vault`| Re-scan the vault root and refresh `files.exclude` patterns and Explorer tree view |
41
42
42
43
## Settings
43
44
@@ -107,6 +108,7 @@ Non-autoMount vault content (`.obsidian/`, `.trash/`, and any directories not in
107
108
108
109
- The extension scans the vault root and adds `files.exclude` patterns for entries not in `autoMount`. Patterns are split into two tiers: vault-global patterns (dotfiles and `blocked` paths) are written to `<vault>/.vscode/settings.json` — controlled by `vault.excludeDotfiles`, `vault.excludeDotfilePattern`, and `vault.excludeBlocked`; remaining non-autoMount directories and file extension globs are written to workspace settings — controlled by `workspace.excludeUnmountedFolders`, `workspace.excludeUnmountedFiles`, and `workspace.excludeUnmountedFilePattern`. All managed patterns are tracked internally for cleanup.
109
110
- When `autoMount` entries or any `vault.*`/`workspace.*` toggle changes, patterns are re-synced automatically — stale patterns are removed and new ones added.
111
+
- When new dotfiles or directories are added to the vault outside VS Code, run **Obsidian VFS: Reload Vault** to manually refresh patterns and the tree view.
110
112
- When `obsidianVFS.workspace.enabled` is disabled, all managed patterns are removed and the workspace folder is deleted.
111
113
- The vault's `.git` repository is automatically added to `git.ignoredRepositories` (user-level setting) when `vault.gitIgnore` is true and a workspace folder is active, preventing VS Code's Git extension from listing it in Source Control. The entry is removed when `vault.gitIgnore` is disabled or the workspace folder is removed.
0 commit comments