Skip to content

Commit 866188a

Browse files
chore: generate
1 parent e6fd571 commit 866188a

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

packages/opencode/src/lsp/lsp.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,10 @@ export const layer = Layer.effect(
226226

227227
const getClients = Effect.fnUntraced(function* (file: string) {
228228
const ctx = yield* InstanceState.context
229-
if (!AppFileSystem.contains(ctx.directory, file) && (ctx.worktree === "/" || !AppFileSystem.contains(ctx.worktree, file))) {
229+
if (
230+
!AppFileSystem.contains(ctx.directory, file) &&
231+
(ctx.worktree === "/" || !AppFileSystem.contains(ctx.worktree, file))
232+
) {
230233
return [] as LSPClient.Info[]
231234
}
232235
const s = yield* InstanceState.get(state)

packages/opencode/src/lsp/server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,10 +1077,10 @@ export const JDTLS: Info = {
10771077
const exclusionsForMonorepos = gradleMarkers.concat(settingsMarkers)
10781078

10791079
const [projectRoot, wrapperRoot, settingsRoot] = await Promise.all([
1080-
NearestRoot(
1081-
["pom.xml", "build.gradle", "build.gradle.kts", ".project", ".classpath"],
1082-
exclusionsForMonorepos,
1083-
)(file, ctx),
1080+
NearestRoot(["pom.xml", "build.gradle", "build.gradle.kts", ".project", ".classpath"], exclusionsForMonorepos)(
1081+
file,
1082+
ctx,
1083+
),
10841084
NearestRoot(gradleMarkers, settingsMarkers)(file, ctx),
10851085
NearestRoot(settingsMarkers)(file, ctx),
10861086
])

0 commit comments

Comments
 (0)