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

fix: remove copying of apex.db to workspace on LS startup #4956

Merged
merged 78 commits into from
Aug 22, 2023

Conversation

peternhale
Copy link
Contributor

@peternhale peternhale commented Jun 28, 2023

What does this PR do?

Removes the initialization of apex.db each time the Apex LS is started
Language server will be responsible for "installing"/"upgrading" apex.db

fix: disable file watcher for apex std classes dir

What issues does this PR fix or reference?

@W-13593866@
@W-13739509@

QA Notes:

  • Start vsce in a project that has an apex.db in .sfdx/tools dir and the file should not be overlayed by extension
  • Start vsce in a project that does not have an apex.db in .sfdx/tools dir and the file should be created by the language server

Copy link
Member

@RitamAgrawal RitamAgrawal left a comment

Choose a reason for hiding this comment

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

From Extensions side it's removing the files

  • languageServerUtils
  • languageServerUtils.test
  • some tests which is no longer needed with this LSP upgrade.

LGTM! just a nit picky comment about renaming the test file.

@peternhale peternhale merged commit 62f0813 into develop Aug 22, 2023
12 checks passed
@peternhale peternhale deleted the phale/apex-db-overlay branch August 22, 2023 14:01
- name: Setup YourKit
run: echo "YOURKIT_PROFILER_AGENT=${{ env.RUNNER_OS }}-${{ env.RUNNER_ARCH}}=sampling,async_sampling_cpu,app_name=apex_lsp,alloc_object_counting" >> $GITHUB_ENV
- name: Setup YourKit Agent
run: echo "YOURKIT_PROFILER_AGENT=${{ env.RUNNER_OS }}-${{ env.RUNNER_ARCH}}=sampling,async_sampling_cpu,app_name=apex_lsp,alloc_object_counting,onexit=memory,onexit=memory,onexit=snapshot,onexit=hprof,dir=./snapshots" >> $GITHUB_ENV

Choose a reason for hiding this comment

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

onexit=memory twice? Not sure if this was deliberate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@supert3d Good catch. I'll log a bug to have the duplicate removed.

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.

5 participants