Home
IDEs Support (IntelliJ Platform) | JetBrains
Submit a request
Community
Sign in
Konstantin Ulitin
Follow
New articles and posts
New articles, posts, and comments
Total activity
244
Last activity
May 13, 2020 16:57
Member since
March 11, 2012 13:50
Following
0 users
Followed by
0 users
Votes
0
Subscriptions
94
Activity overview
Articles (0)
Posts (0)
Comments (150)
Konstantin Ulitin
commented,
May 13, 2020 16:57
Yes, it will help, depending on a FileType.
Community
IntelliJ IDEA Open API and Plugin Development
Get auto complete working in a custom LightVirtualFile instance
0 votes
Konstantin Ulitin
commented,
May 13, 2020 15:33
If you want to check how TypeScript suggests completion for all modules from scratch files, you may look at `com.intellij.lang.javascript.psi.resolve.JSResolveUtil#getResolveScope`. Basically, it u...
Community
IntelliJ IDEA Open API and Plugin Development
Get auto complete working in a custom LightVirtualFile instance
0 votes
Konstantin Ulitin
commented,
December 11, 2019 09:18
I'm glad that it worked for you! To fix parameter info, you need to ensure that doSomething in import statement is resolved to the method of the class. ((ES6ImportedExportedDefaultBinding)resolveRe...
Community
IntelliJ IDEA Open API and Plugin Development
Is there any way to add JavaScript type inference logic?
0 votes
Konstantin Ulitin
commented,
December 10, 2019 13:32
It should be processed in ES6TypeEvaluator#addTypeFromDialectSpecificElements. ((ES6ImportedExportedDefaultBinding)resolveResult).findReferencedElements() is called there and passes referenced elem...
Community
IntelliJ IDEA Open API and Plugin Development
Is there any way to add JavaScript type inference logic?
0 votes
Konstantin Ulitin
commented,
December 10, 2019 13:00
Oh, to have your reference in 'foo/bar' working for type evaluation, you need to add an extension of com.intellij.lang.javascript.psi.resolve.JSModuleReferenceContributor Like here. And don't forge...
Community
IntelliJ IDEA Open API and Plugin Development
Is there any way to add JavaScript type inference logic?
0 votes
Konstantin Ulitin
commented,
December 09, 2019 10:22
I think the better way to solve this is to do two things: Make 'module' be resolved to your special file or PSI element. If it's already done, then Implement FrameworkIndexingHandler#addTypeFromRe...
Community
IntelliJ IDEA Open API and Plugin Development
Is there any way to add JavaScript type inference logic?
0 votes
Konstantin Ulitin
commented,
November 21, 2019 10:56
Yes, thank you, but sadly this is now what I expected to see. How many breakpoints do you have? Can you please check if setting js.debugger.async.call.stack.depth to 0 in Help | Find Action... | Re...
Community
WebStorm
Webstorm debugging: startup time went from 15s to 50s
0 votes
Konstantin Ulitin
commented,
November 20, 2019 10:35
Hi Jeffery, Could you please share any whole line from that log, starting from {"timestamp": "...", "IN": {"method":"Debugger.paused"..? Somewhere from the middle.
Community
WebStorm
Webstorm debugging: startup time went from 15s to 50s
0 votes
Konstantin Ulitin
commented,
August 06, 2019 16:03
Hi Tomasz, The easiest approach is to implement PsiReferenceContributor, we added it for WEB-24393. Built-in javascript resolver won't start if PsiReferenceContributor returns a result. Probably, f...
Community
IntelliJ IDEA Open API and Plugin Development
Treat part of JS identifier specially depending on context
1 vote
Konstantin Ulitin
commented,
July 24, 2019 14:53
MultiHostInjector should behave the same way as LanguageInjector in most cases. Do you use exactly JavascriptLanguage.INSTANCE language for injection? It's hard to say what goes wrong without seein...
Community
IntelliJ IDEA Open API and Plugin Development
Different behavior between LanguageInjector and MultiHostInjector
0 votes