Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/utils/permissions/fileToolPermissionEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ function posixRelative(fromPath: string, toPath: string): string {

export function expandSymlinkPaths(inputPath: string): string[] {
const out = [inputPath]
if (inputPath.startsWith('\\\\') || inputPath.startsWith('//')) return out
if (!existsSync(inputPath)) return out
try {
const resolved = realpathSync(inputPath)
Expand Down
11 changes: 10 additions & 1 deletion tests/unit/lsp-tool.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import { afterEach, beforeEach, describe, expect, test } from 'bun:test'
import {
afterEach,
beforeEach,
describe,
expect,
setDefaultTimeout,
test,
} from 'bun:test'
import { mkdtempSync, rmSync, statSync, utimesSync, writeFileSync } from 'fs'
import { tmpdir } from 'os'
import { join } from 'path'
import { LspTool } from '@tools/search/LspTool/LspTool'
import { setCwd } from '@utils/state'

setDefaultTimeout(15_000)

function makeContext(): any {
return {
abortController: new AbortController(),
Expand Down
Loading