fix(server): show dot entries in non-git projects #8670
Closedessjaykay755(GitHub profile, opens in a new tab)wants to merge 3 commits into
main fromrefs/pull/8670/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/server/src/workspace/WorkspaceEntries.ts line 412OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -287,0 +392,21 @@392+ }393+394+ const dotEntries = yield* Effect.promise(() =>395+ collectNonGitRootDotEntries(normalizedCwd, path),396+ );397+ if (!dotEntries || dotEntries.length === 0) {398+ return indexedResult;399+ }400+401+ const entryByPath = new Map(indexedResult.entries.map((entry) => [entry.path, entry]));402+ for (const entry of dotEntries) {403+ entryByPath.set(entry.path, entry);404+ }405+ const sortedEntries = [...entryByPath.values()].toSorted((left, right) =>406+ left.path.localeCompare(right.path),407+ );408+ const entries = sortedEntries.slice(0, NON_GIT_DOT_ENTRY_SCAN_MAX_ENTRIES);409+410+ return {411+ entries,412+ truncated: entries.length < sortedEntries.length,
maria-rcks closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
a8afb876-4aee-4177-90f1-9027fcfa7065You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Comment `@coderabbitai help` to get the list of available commands.