You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to create a typescript declaration file editor which would report errors(red squiggles) for any code that is not allowed in an ambient context. That is to say any logical statement like if blocks, method calls, for loops etc. should be disallowed just like as in a regular *.d.ts file in VSCode.
I scoured through the documentation but couldn't find anything. Am I missing something obvious? I did however, discover dtslint (microsoft) but couldn't find a way to integrate it. If I am correct, the lint property is absent in DiagnosticsOptions of typescript's LanguageService.
I am working on a reflection system in typescript by traversing the AST of the declaration code and I need to prohibit users from writing logical statement code.
Thanks
The text was updated successfully, but these errors were encountered:
From the editor's point of view, you can use monaco.editor.setModelMarkers to add new warnings or errors to a certain text model. I cannot offer any help with how to compute the markers you want to render.
I'll close this issue, but if you have specific follow up questions, we'll try to help as good as we can given the limited resources that we have.
I wanted to create a typescript declaration file editor which would report errors(red squiggles) for any code that is not allowed in an ambient context. That is to say any logical statement like if blocks, method calls, for loops etc. should be disallowed just like as in a regular *.d.ts file in VSCode.
I scoured through the documentation but couldn't find anything. Am I missing something obvious? I did however, discover dtslint (microsoft) but couldn't find a way to integrate it. If I am correct, the lint property is absent in DiagnosticsOptions of typescript's LanguageService.
I am working on a reflection system in typescript by traversing the AST of the declaration code and I need to prohibit users from writing logical statement code.
Thanks
The text was updated successfully, but these errors were encountered: