Skip to content

Conversation

@cte
Copy link
Collaborator

@cte cte commented May 6, 2025

Context

I noticed that the latency in language servers can cause false positives when reporting diagnostics to the LLM. Let's wait for them to stabilize before returning after editing files.


Important

Improved diagnostics handling in DiffViewProvider by polling for stabilization and updated setup.sh for cleaner repository management.

  • Diagnostics Handling:
    • In DiffViewProvider.ts, added pollDiagnosticsUntilStabilized() to poll diagnostics until they stabilize, replacing the previous fixed delay approach.
    • Updated saveChanges() to use the new polling method for diagnostics.
  • Shell Script Changes:
    • Removed user prompt for forking in setup.sh and directly clone the repository.
    • Added git clean command in setup.sh to ensure a clean state before pulling updates.
  • Miscellaneous:
    • Minor import reordering in index.ts and DiffViewProvider.ts for consistency.
    • Removed extensive comments and example usage in index.ts for clarity.

This description was created by Ellipsis for 468413d. You can customize this summary. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented May 6, 2025

⚠️ No Changeset found

Latest commit: 468413d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label May 6, 2025
// Get diagnostics before editing the file, we'll compare to diagnostics
// after editing to see if Roo needs to fix anything.
this.preDiagnostics = vscode.languages.getDiagnostics()
console.log(`preDiagnostics: ${JSON.stringify(this.preDiagnostics)}`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider replacing console.log with structured logging for consistency and production-readiness.

Suggested change
console.log(`preDiagnostics: ${JSON.stringify(this.preDiagnostics)}`)
logger.info(`preDiagnostics: ${JSON.stringify(this.preDiagnostics)}`)

This comment was generated because it violated a code review rule: mrule_OR1S8PRRHcvbdFib.

const problems = fileDiagnostics.filter((d) => severities.includes(d.severity))

if (problems.length > 0) {
result += `\n\n${path.relative(cwd, uri.fsPath).toPosix()}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling .toPosix() on a string is non‐standard. Consider using path.posix.relative or a dedicated utility for POSIX path conversion.

Suggested change
result += `\n\n${path.relative(cwd, uri.fsPath).toPosix()}`
result += `\n\n${path.posix.relative(cwd, uri.fsPath)}`

@cte cte changed the title Show LLM streaming file write content Improve diagnostics fetching after file edits May 7, 2025
@hannesrudolph hannesrudolph moved this from New to PR [Pre Approval Review] in Roo Code Roadmap May 7, 2025
Base automatically changed from cte/show-file-write-progress to main May 13, 2025 16:47
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels May 13, 2025
@cte cte marked this pull request as draft May 13, 2025 21:30
bgilbert6 pushed a commit to bgilbert6/Roo-Code that referenced this pull request May 14, 2025
* added posthog remote config

* changeset

* add feature flags constant

* move init outside function to keep from potentially re-running

---------

Co-authored-by: Elephant Lumps <[email protected]>
@hannesrudolph hannesrudolph moved this from New to PR [Draft/WIP] in Roo Code Roadmap May 20, 2025
@hannesrudolph hannesrudolph moved this from PR [Draft / In Progress] to TEMP in Roo Code Roadmap May 26, 2025
@daniel-lxs daniel-lxs moved this from TEMP to PR [Draft / In Progress] in Roo Code Roadmap May 26, 2025
@hannesrudolph
Copy link
Collaborator

stale

@github-project-automation github-project-automation bot moved this from PR [Pre Approval Review] to Done in Roo Code Roadmap Jul 7, 2025
@github-project-automation github-project-automation bot moved this from PR [Draft / In Progress] to Done in Roo Code Roadmap Jul 7, 2025
@cte cte deleted the cte/diagnostics-improvements branch July 31, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR - Draft / In Progress size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants