microsoft-typescript/no-in-operator

This commit is contained in:
Alexander T
2019-06-20 14:13:46 +03:00
parent 0e14b4e030
commit 9fcaa19ab0
13 changed files with 22 additions and 19 deletions
+1
View File
@@ -1190,6 +1190,7 @@ namespace ts.server {
const pluginModule = pluginModuleFactory({ typescript: ts });
const newLS = pluginModule.create(info);
for (const k of Object.keys(this.languageService)) {
// eslint-disable-next-line microsoft-typescript/no-in-operator
if (!(k in newLS)) {
this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${k} in created LS. Patching.`);
(newLS as any)[k] = (this.languageService as any)[k];