Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV2-3340 include text in workspace context #609

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
distinct on all symbols
yonip23 committed Aug 8, 2023
commit 0ab8731e8bad9f877ccb3f8f012bdef24ddcf1bf
Original file line number Diff line number Diff line change
@@ -43,11 +43,11 @@ data class WorkspaceContext(
when (executionResult.command) {
// we reverse the list to get the most relevant symbols at the bottom - closer
// to the end of the prompt eventually.
Command.FindSymbols -> symbols.addAll(executionResult.result.distinct().reversed())
Command.FindSymbols -> symbols.addAll(executionResult.result.reversed())
}
}

WorkspaceContext(symbols)
WorkspaceContext(symbols.distinct())
} catch (e: TimeoutException) {
Logger.getInstance(WorkspaceContext::class.java)
.warn("Timeout while waiting for workspace commands to execute, continuing without workspace symbols")