Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Linting integration with monaco editor #330

Open
nikhilnxvverma1 opened this issue Apr 15, 2021 · 0 comments
Open

Linting integration with monaco editor #330

nikhilnxvverma1 opened this issue Apr 15, 2021 · 0 comments

Comments

@nikhilnxvverma1
Copy link

Hello I wanted to instantiate monaco editor in an "ambient context" such that no logical code is allowed(only type declarations). I couldn't find the right configuration in monaco for it. I was hoping dtslint would help but I can't figure out how to integrate it.

Its funny because VSCode itself uses monaco in an ambient context. I feel like am missing something obvious here.

I want to show red squiggles to the user whenever they are writing any prohibitive code in an ambient context. I am making a reflection system in typescript and I only want to consume typescript AST generated by the user as given in ambient context.

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant