obrejla / vscode-jsthis

Better IntelliSense for JavaScript "this" keyword

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement some source code sanitization

obrejla opened this issue · comments

When error occurs in a source code, then it's not parsable and no CC items can be suggested. We should be able to at least somehow "sanitize" such an errored code (e.g. try to add missing semicolon, brackets, etc.).

Look at esprima tolerant option.

Consider to use at least: { tolerant: true, sourceType: 'module' } options. Tolerant option suppresses e.g. use strict errors and module sourceType is much more tolerant for source constructs.