@typescript-deploys/pr-build 4.9.0-pr-51065-14 → 4.9.0-pr-51065-20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsserver.js +12 -9
- package/lib/tsserverlibrary.js +12 -9
- package/package.json +1 -1
package/lib/tsserver.js
CHANGED
|
@@ -150353,6 +150353,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
150353
150353
|
return !!this.program && this.program.isSourceOfProjectReferenceRedirect(fileName);
|
|
150354
150354
|
}
|
|
150355
150355
|
enableGlobalPlugins(options, pluginConfigOverrides) {
|
|
150356
|
+
if (!this.projectService.globalPlugins.length)
|
|
150357
|
+
return;
|
|
150356
150358
|
const host = this.projectService.host;
|
|
150357
150359
|
if (!host.require && !host.importPlugin) {
|
|
150358
150360
|
this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");
|
|
@@ -150362,15 +150364,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
150362
150364
|
...this.projectService.pluginProbeLocations,
|
|
150363
150365
|
combinePaths(this.projectService.getExecutingFilePath(), "../../..")
|
|
150364
150366
|
];
|
|
150365
|
-
|
|
150366
|
-
|
|
150367
|
-
|
|
150368
|
-
|
|
150369
|
-
|
|
150370
|
-
|
|
150371
|
-
|
|
150372
|
-
this.enablePlugin({ name: globalPluginName, global: true }, searchPaths, pluginConfigOverrides);
|
|
150373
|
-
}
|
|
150367
|
+
for (const globalPluginName of this.projectService.globalPlugins) {
|
|
150368
|
+
if (!globalPluginName)
|
|
150369
|
+
continue;
|
|
150370
|
+
if (options.plugins && options.plugins.some((p) => p.name === globalPluginName))
|
|
150371
|
+
continue;
|
|
150372
|
+
this.projectService.logger.info(`Loading global plugin ${globalPluginName}`);
|
|
150373
|
+
this.enablePlugin({ name: globalPluginName, global: true }, searchPaths, pluginConfigOverrides);
|
|
150374
150374
|
}
|
|
150375
150375
|
}
|
|
150376
150376
|
beginEnablePluginSync(pluginConfigEntry, searchPaths, pluginConfigOverrides) {
|
|
@@ -151026,6 +151026,9 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
151026
151026
|
return (_a2 = this.getCurrentProgram()) == null ? void 0 : _a2.forEachResolvedProjectReference(cb);
|
|
151027
151027
|
}
|
|
151028
151028
|
enablePluginsWithOptions(options, pluginConfigOverrides) {
|
|
151029
|
+
var _a2;
|
|
151030
|
+
if (!((_a2 = options.plugins) == null ? void 0 : _a2.length) && !this.projectService.globalPlugins.length)
|
|
151031
|
+
return;
|
|
151029
151032
|
const host = this.projectService.host;
|
|
151030
151033
|
if (!host.require && !host.importPlugin) {
|
|
151031
151034
|
this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -152830,6 +152830,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
152830
152830
|
return !!this.program && this.program.isSourceOfProjectReferenceRedirect(fileName);
|
|
152831
152831
|
}
|
|
152832
152832
|
enableGlobalPlugins(options, pluginConfigOverrides) {
|
|
152833
|
+
if (!this.projectService.globalPlugins.length)
|
|
152834
|
+
return;
|
|
152833
152835
|
const host = this.projectService.host;
|
|
152834
152836
|
if (!host.require && !host.importPlugin) {
|
|
152835
152837
|
this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");
|
|
@@ -152839,15 +152841,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
152839
152841
|
...this.projectService.pluginProbeLocations,
|
|
152840
152842
|
combinePaths(this.projectService.getExecutingFilePath(), "../../..")
|
|
152841
152843
|
];
|
|
152842
|
-
|
|
152843
|
-
|
|
152844
|
-
|
|
152845
|
-
|
|
152846
|
-
|
|
152847
|
-
|
|
152848
|
-
|
|
152849
|
-
this.enablePlugin({ name: globalPluginName, global: true }, searchPaths, pluginConfigOverrides);
|
|
152850
|
-
}
|
|
152844
|
+
for (const globalPluginName of this.projectService.globalPlugins) {
|
|
152845
|
+
if (!globalPluginName)
|
|
152846
|
+
continue;
|
|
152847
|
+
if (options.plugins && options.plugins.some((p) => p.name === globalPluginName))
|
|
152848
|
+
continue;
|
|
152849
|
+
this.projectService.logger.info(`Loading global plugin ${globalPluginName}`);
|
|
152850
|
+
this.enablePlugin({ name: globalPluginName, global: true }, searchPaths, pluginConfigOverrides);
|
|
152851
152851
|
}
|
|
152852
152852
|
}
|
|
152853
152853
|
beginEnablePluginSync(pluginConfigEntry, searchPaths, pluginConfigOverrides) {
|
|
@@ -153503,6 +153503,9 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
153503
153503
|
return (_a2 = this.getCurrentProgram()) == null ? void 0 : _a2.forEachResolvedProjectReference(cb);
|
|
153504
153504
|
}
|
|
153505
153505
|
enablePluginsWithOptions(options, pluginConfigOverrides) {
|
|
153506
|
+
var _a2;
|
|
153507
|
+
if (!((_a2 = options.plugins) == null ? void 0 : _a2.length) && !this.projectService.globalPlugins.length)
|
|
153508
|
+
return;
|
|
153506
153509
|
const host = this.projectService.host;
|
|
153507
153510
|
if (!host.require && !host.importPlugin) {
|
|
153508
153511
|
this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "4.9.0-pr-51065-
|
|
5
|
+
"version": "4.9.0-pr-51065-20",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|