-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Semantic highlighting: Inconsistent token type when interface require optional properties #95867
Comments
With
Because the type is callable and has properties, it is a guess what the main purpose of the type is. We currently have the rule that we only call something a function if it has no properties as well, |
@aeschli Thanks for your detail reply. One more question, is this a expected behavior? Considering the description of Functions in MDN
To solve the conflict, as "Function object" must be a callable, I think it should have a higher priority than "properties" under semantic highlighting. |
It's really a guess what is more important. It being a callables or it having properties. You'd be surprised how many objects are also callable. |
I moved the issue over to aeschli/typescript-vscode-sh-plugin#14. |
Version: 1.44.2
Commit: ff91584
Date: 2020-04-16T17:07:18.473Z (5 days ago)
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.4.0
Steps to Reproduce:
Reproduce recording:

Source:
Does this issue occur when all extensions are disabled?: No
The text was updated successfully, but these errors were encountered: