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

(chore) add debugger config for ts plugin #1487

Merged
merged 2 commits into from May 29, 2022

Conversation

jasonlyu123
Copy link
Member

@jasonlyu123 jasonlyu123 commented May 17, 2022

https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code#debugging-tsserver-server-side

added an environment variable for the tsserver to launch with inspector enabled when we launch extension for debugging. So we can attach a debugger like what we did for language-server. Do we want to keep the sourcemap in the published plugin? If not, we might need to create another tsconfig to distinguish.

@dummdidumm
Copy link
Member

Awesome! Good question about those source maps. I don't think that we need them in production, but it's also a question of whether or not it really hurts. How many additional kilobytes are we talking about?

@jasonlyu123
Copy link
Member Author

20KB. About 25%.

@dummdidumm
Copy link
Member

Just realized we have a .npmignore file. Could you add the source maps to that? Then they are not published and we don't need an extra build step.

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

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

🎉

@dummdidumm dummdidumm merged commit fa5eb0f into sveltejs:master May 29, 2022
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.

None yet

2 participants