Skip to content

(Re)load decorators and functions directly from TypeScript #533

@nguerrera

Description

@nguerrera

See also proposal linked from #528.

We have the idea (option 1 there) to host the TypeScript compiler and consume TypeScript on the fly without a user build step. This hosting of the compiler could then be used to get the documentation and typing for decorators or Cadl-callable functions. We also have a desire to make it possible to change decorator and function definitions and immediately see the results in the IDE. Today, you have to restart the language server to observe any change to the JavaScript.

To keep work split, this issue tracks the experience of being able to write in TypeScript, save and see the results in Cadl immediately. It does not track doing anything with the JSDoc or TS typing yet. That will be left for other issues that will require further design. When we do this, though, we should have in mind that we intend to consume this data eventually, so it would be worth structuring the code for this eventuality and at least proving that we can get to the information even if we don't use it yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions