-
Notifications
You must be signed in to change notification settings - Fork 12.8k
@example breaks when example includes @
character (org package imports)
#39371
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
Comments
Minimal example: /**
* @example
* class Foo {
* @bla foo() { }
* }
*/
function foo() { } Results in:
|
@mjbvz What exactly is the proposed behavior change here? This seems fundamentally unsolvable - we have no idea whether |
No proposal at the moment, just moving upstream so we can collect more feedback on the problem |
@RyanCavanaugh I think if you can check if there there is any other characters other than What do you think ? : ) It's especially annoying when we use organisation scopes in import statements:
Thanks so much!! |
@RyanCavanaugh I had another idea! Make it sure VSCode checks any
What do you think about my suggestions, still fundamentally unsolvable? : O |
In the latest discussion with @mjbvz, we came up with two plausible fixes:
But we wanted to know how people have used non-initial The basic problem here is to survey how JSDoc tags are used not at the end beginning of a line, and estimate how often each usage occurs. Of those 50,000 hits, about 38,000 were for tags Typescript already handles correctly:
|
Uh oh!
There was an error while loading. Please reload this page.
TS Template added by @mjbvz
TypeScript Version: 4.0.0-dev.20200701
Search Terms
Steps to Reproduce:
@example
with an@
in the example (eg. an organisation package import)As you can see from the screenshot, the whole code
@example
is broken because it's writtenrequire('@google-cloud/storage')
inside the example.Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: