镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

typescript: autocomplete missing on some things #42

Description

@luke-john

Expected behaviour:

Glamorous component factory style arguments autocomplete the same as they do in vscode.

vscode-autocomplete

Actual behaviour:

Glamorous component factory style arguments do not autocomplete the same as they do in vscode.

stackblitz-autocomplete

Reproduction:

The screenshot for the stackblitz behaviour was captured from the following project.

https://stackblitz.com/edit/react-ts-u9qiu6?file=components%2FApp%2FApp.glamorous.tsx

Activity

  1. luke-john commented on Aug 7, 2017

    @luke-john
    Author

    Possibly it's to do with the version of typescript, Glamorous makes use of some 2.4+ features. I couldn't find what version of typescript stackblitz uses to confirm.

  2. EricSimons commented on Aug 7, 2017

    @EricSimons
    Member

    Thanks for reporting this (and for the detailed repro)! We're on TS 2.4.1, but I think I might know what's causing this — will dig in tmrw with @apai4 and report back 👍

  3. luke-john commented on Aug 27, 2017

    @luke-john
    Author

    hey @EricSimons I had some time to look into this this morning and worked out this is likely an issue with the version of typescript that monaco is using under the hood.

    It appears to be pre 2.2 which is when typescript inroduced support for extending interfaces from types. microsoft/TypeScript#13604

    A simple reproduction is available at the following link.

    https://stackblitz.com/edit/react-ts-n3tizf?file=index.tsx

    So it looks like this may be fixed with the next update to the version of monaco-editor that's being used under the hood by stackblitz.

    Notes: monaco editor pulls in typescript via monaco-typescript https://github.com/Microsoft/monaco-typescript/blob/master/package.json

  4. luke-john commented on Sep 14, 2017

    @luke-john
    Author

    Just checked it out and everything now seems to all work great :)

    Thanks so much for all the work that's been put into stackblitz 💖

  5. EricSimons commented on Sep 14, 2017

    @EricSimons
    Member

    @luke-john I totally forgot to circle back and let you know we bumped the monaco version earlier this week, so sorry about that! 😅 No problem at all, thanks a ton for all of your help in tracking down this bug (+ others) - we seriously appreciate it!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions