diff --git a/src/server/project.ts b/src/server/project.ts index b79df827b6b..83b65f880e7 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -885,6 +885,9 @@ namespace ts.server { } // Enable global plugins with synthetic configuration entries for (const globalPluginName of this.projectService.globalPlugins) { + // Skip already-locally-loaded plugins + if (options.plugins.some(p => p.name === globalPluginName)) continue; + // Provide global: true so plugins can detect why they can't find their config this.enablePlugin({ name: globalPluginName, global: true } as PluginImport, searchPaths); }