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

[Bug]: two slash often requires a reload of the editor to start working #1181

Open
bautistaaa opened this issue Nov 25, 2023 · 4 comments
Open
Labels
bug Something isn't working fix provides a fix to a problem help wanted Extra attention is needed

Comments

@bautistaaa
Copy link
Member

What happened?

in the editor we support the two slash plugin // ^?

often times it doesnt work on initial use and requires a reload. code can be found in twoslash.ts

What browsers are you seeing the problem on?

No response

Relevant log output

No response

@bautistaaa bautistaaa added bug Something isn't working triage labels Nov 25, 2023
@me-imfhd
Copy link
Contributor

how can i reproduce this ?

@bautistaaa
Copy link
Member Author

how can i reproduce this ?

add this to types in the user code

CleanShot 2023-11-25 at 21 50 07@2x

you'll notice sometimes it doesnt load that gray overlay that shows the type

@me-imfhd
Copy link
Contributor

my side, even that is not working, on reload

@DennisJosefsson
Copy link

I guess that's the issue here (that's an example, don't think I've seen it working anywhere so far), and it's quite confusing when the text assumes it's visible but it's not.
slashslashtypeheroissue

https://typehero.dev/challenge/indexed-types

@jhechtf jhechtf added fix provides a fix to a problem help wanted Extra attention is needed and removed triage labels Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix provides a fix to a problem help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

4 participants