microsoft-typescript/no-in-operator

This commit is contained in:
Alexander T committed 2019-06-20 14:13:46 +03:00
1 parent 0e14b4e030
commit 9fcaa19ab0
13 files changed
+22 -19

No files matched your search

+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];