Skip to content

Conversation

@latekvo
Copy link
Member

@latekvo latekvo commented Dec 10, 2025

Extension crashes on startup. This PR fixes that.

This was happening because workspace.getConfiguration(); (located in getEditorType();) was being called before setExtensionContext(context);.

image

How Has This Been Tested:

  • Start the extension
  • The panel works, and no errors are thrown

@vercel

This comment was marked as spam.

@latekvo
Copy link
Member Author

latekvo commented Dec 10, 2025

Of course feel free to merge this without waiting for me

@latekvo latekvo marked this pull request as ready for review December 10, 2025 18:53
@latekvo latekvo changed the title remove offending line fix: Fix extension crashing on startup (every time) Dec 10, 2025
@latekvo latekvo changed the title fix: Fix extension crashing on startup (every time) fix: Fix extension crashing on startup Dec 10, 2025
Copy link
Contributor

@jwajgelt jwajgelt left a comment

Choose a reason for hiding this comment

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

oopsie

@jwajgelt jwajgelt merged commit 138cc60 into main Dec 11, 2025
9 checks passed
@jwajgelt jwajgelt deleted the @latekvo/fix-extension-always-crashing-on-startup branch December 11, 2025 07:54
jwajgelt pushed a commit that referenced this pull request Dec 12, 2025
Extension crashes on startup. This PR fixes that.

This was happening because `workspace.getConfiguration();` (located in
`getEditorType();`) was being called before
`setExtensionContext(context);`.

<img width="914" height="152" alt="image"
src="https://github.com/user-attachments/assets/adc99ef2-7518-4b2e-9e79-925b70ca3fa6"
/>

### How Has This Been Tested: 

- Start the extension
- The panel works, and no errors are thrown
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