facebook

Support for Optional Chaining with TypeScript in the Editor

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #640132 Reply

    martinwestacott
    Participant

    Hi,

    I’m getting validation errors highlighted in the Eclipse editor with code like this:

    const nextStatements = statements?.next_ones as NextStatementResource;

    Eclipse currently highlights errors at the question mark and also at the end of line. This, however, is valid TypeScript code based on optional chaining – see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#optional-chaining. I’ve installed an extension in VS Code so that it handles this correctly and doesn’t complain (https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-next) but how can I fix this in Eclipse with CodeMix?

    Thanks for any suggestions or help offered.

    – Martin

    #640138 Reply

    support-swapna
    Moderator

    Martin,

    Sorry that you are seeing this issue.

    The extension you mentioned is not compatible with the current CodeMix version. We are going to release an update to CodeMix soon which will support it. We can share the prerelease build with you when it is ready.

    Apologies for inconvenience caused. Please let us know if you have any further questions.

    –Swapna
    Genuitec Support

    #640139 Reply

    martinwestacott
    Participant

    Hi Swapna,

    Thank you and yes, please let me know when the pre-release build is ready.

    – Martin

    #648351 Reply

    brabenetz
    Participant

    Yeah, let us know when it’s implemented. thanks.

    #648352 Reply

    support-swapna
    Moderator

    Our latest release, CodeMix CI 2020.3.3 is compatible with the said extension. Please update via Help > Check for Updates, and then install the extension via Help > CodeMix Extensions page.

    Please let us know how it works for you.

    –Swapna
    Genuitec Support

    #648673 Reply

    brabenetz
    Participant

    yes,
    downloading the extension as *.vsix file and then import it with CodeMix Extensions page worked perfectly.
    Not even an Eclipse restart was needed!
    Thanks,
    Harald

    #648879 Reply

    support-swapna
    Moderator

    Harald,

    Glad that it works. Thank you for getting back to us.
    Installing extensions do not require the IDE restart. Reloading CodeMix engine is enough to apply the extension.
    Please let us know if you see any issues with CodeMix.

    –Swapna
    Genuitec Support

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Support for Optional Chaining with TypeScript in the Editor

You must be logged in to post in the forum log in