Skip to content

Commit a6056d2

Browse files
nojafCopilot
andauthored
Update server/src/utils.ts
Co-authored-by: Copilot <[email protected]>
1 parent 3013116 commit a6056d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ export let findProjectRootOfFile = (
141141
/**
142142
* Gets the project file for a given project root path.
143143
*
144-
* All keys in `projectsFiles` are normalized (see `openedFile` in server.ts),
145-
* so this function accepts either a normalized or non-normalized path and
146-
* normalizes it before lookup.
144+
* All keys in `projectsFiles` are normalized (see `openedFile` in server.ts).
145+
* This function accepts a normalized project root path (or null) and performs a direct lookup.
146+
* The path must already be normalized before calling this function.
147147
*
148-
* @param projectRootPath - The project root path to look up (can be null or already normalized)
148+
* @param projectRootPath - The normalized project root path to look up (or null)
149149
* @returns The project file if found, null otherwise
150150
*/
151151
export let getProjectFile = (

0 commit comments

Comments
 (0)