orca icon indicating copy to clipboard operation
orca copied to clipboard

[Feature]: Support LSP and codebase search

Open alpemreelmas opened this issue 6 months ago • 9 comments

Problem or use case

AI-driven deployment is the must today but still we need to check some flows we need to check write simple things or orginize codes by ourself and lack of features like code IDE (currently supported only for colorized texts and folder structure) I need to use additional code editor to do what I need to do

Proposed solution

There is already file explorer included and assume this is the next-gen IDE, I think we can support LSP, find reference and so on that vs-code has make this only app that I can use without switching the apps

Alternatives or additional context

No response

alpemreelmas avatar May 29 '26 08:05 alpemreelmas

Implemented a narrow, evidenceable slice in PR #3360: https://github.com/stablyai/orca/pull/3360

This adds a Monaco editor context-menu action, Search in Files, that seeds Orca's existing right-sidebar codebase text search from the current selection or cursor word. It uses the existing runtime-backed search path, so local and SSH/runtime worktrees keep the same search behavior.

Validation:

  • pnpm exec oxlint src/renderer/src/components/editor/MonacoEditor.tsx src/renderer/src/components/editor/monaco-codebase-search.ts src/renderer/src/components/editor/monaco-codebase-search.test.ts
  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/editor/monaco-codebase-search.test.ts src/renderer/src/lib/file-search-selection.test.ts
  • pnpm run typecheck:web
  • git diff --check
  • merge-tree conflict scan: clean
  • Electron/CDP: verified the new Monaco context-menu item opens the Search sidebar with the cursor-word query and real results; screenshot captured at /tmp/orca-issue-3035-search-in-files.png.

This does not implement semantic LSP navigation yet. Full LSP support still needs design for language-server lifecycle per local/SSH/runtime workspace, workspace indexing/cache ownership, semantic result transport, cancellation, file-watch invalidation, and UI states for definition/reference results.

nwparker avatar May 29 '26 23:05 nwparker

I'd really like to be able to connect my own LSPs—“Oxfmt,” “Oxlint,” “Eslint,” and “Tailwindcss.”

lerothias avatar Jul 20 '26 13:07 lerothias

This is a must I think, https://www.warp.dev/ first was a terminal then it is transforming to something like Orca and does support TypeScript LSP, limited but is doing the right thing. Orca is much more powerful in supporting worktree and multiple parallel agents with easy and nice keyboard hotkeys and ui/ux but the support for LSP will make it 10x powerful and useful. Currently, I think I think the most suitable solution for me is to use NeoVim, Tmux, Lazygit, and just some configured shortcuts.

assawalhy avatar Aug 03 '26 20:08 assawalhy

Closing as a duplicate of #961. Disagree? Please respond! I will re-visit this ticket in 5 days. If you respond, I will re-open it 🙏.

nwparker avatar Aug 23 '26 00:08 nwparker

Closing as a duplicate of #961. Disagree? Please respond! I will re-visit this ticket in 5 days. If you respond, I will re-open it 🙏.

@nwparker is it going to be only typescript lsp support? Could we use our lsp according to our tech stack/language?

alpemreelmas avatar Aug 23 '26 18:08 alpemreelmas

Re-opening pending triage — duplication vs #961 was questioned in-thread; leaving open for a maintainer call.

nwparker avatar Aug 25 '26 01:08 nwparker

Supporting generic LSP in Monaco is critical for compiled languages like C# (.NET), Java, and etc.

While text-search and Monarch grammars provide syntax coloring, reviewing agent-generated C# code without semantic navigation is error-prone:

  • Cross-file navigation (F12 / Go to Definition) and Find All References across .csproj project dependencies are essential to verify refactorings.
  • Relying on external IDEs breaks the parallel worktree flow when coordinating multiple agents.

Even standard stdio/WebSocket LSP client support in Monaco (allowing local servers like csharp-ls or omnisharp per workspace) would bridge the gap between lightweight diff viewing and real code verification.

Baylar55 avatar Nov 02 '26 14:11 Baylar55

We don't need renames, refactor, generate, auto complete, or any code change features from LSPs anymore specially in the parallel agentic coding where AI write the code, refactor, and apply the fixes. We just need the find references and go to definition features and the later is more crucial. It can be done in an efficient way like https://github.com/backnotprop/plannotator but in a more accurate way as it uses regex to find similar names in different files.

Humanity needs the go-to-definitions efficient and fast LSPs. So, I hope that someone build them.

assawalhy avatar Nov 02 '26 15:11 assawalhy

20. We don't need renames, refactor, generate, auto complete, or any code change features from LSPs anymore specially in the parallel agentic coding where AI write the code, refactor, and apply the fixes. We just need the find references and go to definition features and the later is more crucial. It can be done in an efficient way like https://github.com/backnotprop/plannotator but in a more accurate way as it uses regex to find similar names in different files. Humanity needs the go-to-definitions efficient and fast LSPs. So, I hope that someone build them.

I totally agree

alpemreelmas avatar Nov 03 '26 16:11 alpemreelmas