certinia / debug-log-analyzer

Salesforce Apex debug log analyzer for Visual Studio Code - Visualize code execution via a Flame chart and identify performance and SOQL/DML problems via Method and Database analysis
https://marketplace.visualstudio.com/items?itemName=financialforce.lana
BSD 3-Clause "New" or "Revised" License
84 stars 18 forks source link

bug: inconsistent search results #536

Closed lcottercertinia closed 1 day ago

lcottercertinia commented 2 months ago

Summary

The search component shows a different number of results after the first result.

Steps To Reproduce

  1. Using fflib.log -> go to call tree and search for "fflib_SObjectDomain.fflib.fflib_SObjectDomain", shows 1 of 1
  2. Search for "fflib_SObjectDomain.fflib.fflib_SObjectDomai", shows 1 of 1
  3. Search for "fflib_SObjectDomain.fflib.fflib_SObjectDomain" again. , shows no matches but the text is still highlighted

This may be related but previous results are not always cleared too search for "System.Test.isRunningTest" after the above and "fflib_SObjectDomain.fflib.fflib_SObjectDomain" remains highlighted

Expected result

Search should be consistent

Actual result

It is not

Additional information

Feel free to attach a screenshot. image image image image

VS Code Version: Version: 1.93.0-insider Commit: 4849ca9bdf9666755eb463db297b69e5385090e3 Date: 2024-09-04T13:13:15.344Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Darwin x64 23.6.0

Log Analyzer Extension Version: v1.16.0

OS and version: mac OS Sonoma 14.6.1

lcottercertinia commented 2 days ago

This occurs because the first search modifies the dom. the new search needs to clear the marked dom before the search occurs.