Skip to content

fix(lana): follow-up fixes for the Salesforce Services migration - #969

Merged
lcottercertinia merged 5 commits into
certinia:mainfrom
lukecotter:fix-951-followups
Sep 2, 2026
Merged

fix(lana): follow-up fixes for the Salesforce Services migration#969
lcottercertinia merged 5 commits into
certinia:mainfrom
lukecotter:fix-951-followups

Conversation

@lukecotter

Copy link
Copy Markdown
Collaborator

Follow-ups to #951.

  • Restore the full Apex log list. ApexLogService.listLogs needs an explicit limit and the migration passed none, so the picker showed 25 logs.
  • Stop loading Salesforce Services on shutdown. deactivate() imported the services module to dispose it, so every window close pulled in a 129 KB chunk even when no log was retrieved.
  • Open the log panel before retrieving the log. The panel appears at once again, and a large log streams from disk instead of crossing the webview message channel.
  • Remove docs/pr-951-952-review-findings.md.

1982 tests pass; type check, lint and format are clean.

ApexLogService.listLogs requires an explicit limit, and the migration passed
none, so the picker showed 25 logs. The replaced LogService query set no LIMIT
and returned a full Tooling API page, so request 2000 to match.
deactivate() imported the services module to dispose it, so every window close
pulled in a 129 KB chunk even when no log was ever retrieved. Register disposal
when the retrieve command first loads the module instead.
The migration awaited the log body before creating the panel and then passed
that body to the webview, so a slow retrieve showed no UI and a 50 MB log was
copied across the webview message channel instead of streamed from disk.

Hand the retrieve to createView as its beforeSendLog promise, and resolve that
promise with the body only when the cache write failed. A failed write no
longer records a log path that does not exist, and a rejected retrieve now
reports an error instead of leaving the webview on its loading state.
Review tracking notes do not belong in the shipped repository.
@lukecotter

Copy link
Copy Markdown
Collaborator Author

@peternhale This is a follow up to #951 whoch I just merged if you wouldnt mind taking a look

lcottercertinia
lcottercertinia previously approved these changes Sep 1, 2026
# Conflicts:
#	lana/src/commands/LogView.ts
#	lana/src/commands/RetrieveLogFile.ts
#	lana/src/commands/__tests__/RetrieveLogFile.test.ts
@lcottercertinia
lcottercertinia merged commit cacf9cc into certinia:main Sep 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants