Skip to content

Commit 4281b30

Browse files
committed
fix unit test
1 parent e89902d commit 4281b30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/code-index/semble/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export class SembleProvider implements ISembleProvider {
166166

167167
// Filter results to the requested directory prefix, if any.
168168
if (directoryPrefix) {
169-
const normalizedPrefix = path.resolve(this.workspacePath, directoryPrefix).replace(/\\/g, "/")
169+
const normalizedPrefix = path.join(this.workspacePath, directoryPrefix).replace(/\\/g, "/")
170170
converted = converted.filter((r) => {
171171
const filePath = (r.payload?.filePath ?? "").replace(/\\/g, "/")
172172
return filePath.startsWith(normalizedPrefix + "/") || filePath === normalizedPrefix

0 commit comments

Comments
 (0)