Check If File Is in Vault

  • see src/views/DendronTreeViewV2.ts
const uri = editor.document.uri;
const basename = path.basename(uri.fsPath);
const ws = getWS();
if (!ws.workspaceService?.isPathInWorkspace(uri.fsPath)) {
  return;
}

Backlinks