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] Bug fixes and optimizations #253

Conversation

charlwillia6
Copy link

@charlwillia6 charlwillia6 commented Jan 30, 2025

Description ✏️

Fixes miscellaneous issue that occurred while building the project and running it in the debugger. There were several issues with unique keys and paths. Also, there was an error with the use of "name" in lsp.ts. This PR fixes those issues. Some of these issues may only effect Windows users, but I did test to make sure that they are cross-platform.

Screenshot 2025-01-29 173317
Screenshot 2025-01-29 173619
Screenshot 2025-01-29 173846

Checklist ✅

  • I have added screenshots (if UI changes are present).
  • I have done a self-review of my code.
  • I have manually tested my code (if applicable).

Important

Fixes unique key, path handling, and error handling issues across multiple files, with minor optimizations and refactoring.

  • Behavior:
    • Fixes unique key issue in InventoryPreview.tsx by changing key to ${item.command}-${index}.
    • Corrects path handling in paths.ts by converting Windows paths to file URL format.
    • Fixes error handling in executeGotoProvider() in lsp.ts by using input.name instead of name.
  • Misc:
    • Adds type: "module" to package.json creation in paths.ts.
    • Ensures semicolon usage in VsCodeExtension.ts.
    • Removes unused file autocomplete.ts.

This description was created by Ellipsis for 02d032e. It will automatically update as commits are pushed.

cwilliams and others added 27 commits October 27, 2024 20:28
@charlwillia6 charlwillia6 requested review from nang-dev, Fryingpannn and a team as code owners January 30, 2025 18:33
@charlwillia6 charlwillia6 requested a review from a team as a code owner January 30, 2025 18:33
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 02d032e in 1 minute and 28 seconds

More details
  • Looked at 122 lines of code in 7 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. extensions/vscode/src/autocomplete/lsp.ts:62
  • Draft comment:
    Unnecessary use of as string since oldestKey is already a string. Consider removing it.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of as any in gotoCache.delete(oldestKey as string); is unnecessary since oldestKey is already a string. This can be simplified.

Workflow ID: wflow_P7nGKBTveNUJTPDT


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@charlwillia6 charlwillia6 changed the title Charlwillia6/bug fixes and optimizations [FIX] Bug fixes and optimizations Jan 30, 2025
@Himanshu-Singh-Chauhan Himanshu-Singh-Chauhan merged commit f7d121e into trypear:main Jan 31, 2025
3 checks passed
nang-dev pushed a commit that referenced this pull request Feb 4, 2025
* Fix: Improve path handling, LSP error logging, and React component keys

* Refactor: Add `isLast` prop to markdown preview components

---------

Co-authored-by: cwilliams <[email protected]>
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.

2 participants