@@ -237,23 +237,21 @@ export class TypeScriptServerSpawner {
237
237
}
238
238
}
239
239
240
- if ( ! isWeb ( ) ) {
241
- const pluginPaths = this . _pluginPathsProvider . getPluginPaths ( ) ;
240
+ const pluginPaths = isWeb ( ) ? [ ] : this . _pluginPathsProvider . getPluginPaths ( ) ;
242
241
243
- if ( pluginManager . plugins . length ) {
244
- args . push ( '--globalPlugins' , pluginManager . plugins . map ( x => x . name ) . join ( ',' ) ) ;
242
+ if ( pluginManager . plugins . length ) {
243
+ args . push ( '--globalPlugins' , pluginManager . plugins . map ( x => x . name ) . join ( ',' ) ) ;
245
244
246
- const isUsingBundledTypeScriptVersion = currentVersion . path === this . _versionProvider . defaultVersion . path ;
247
- for ( const plugin of pluginManager . plugins ) {
248
- if ( isUsingBundledTypeScriptVersion || plugin . enableForWorkspaceTypeScriptVersions ) {
249
- pluginPaths . push ( plugin . path ) ;
250
- }
245
+ const isUsingBundledTypeScriptVersion = currentVersion . path === this . _versionProvider . defaultVersion . path ;
246
+ for ( const plugin of pluginManager . plugins ) {
247
+ if ( isUsingBundledTypeScriptVersion || plugin . enableForWorkspaceTypeScriptVersions ) {
248
+ pluginPaths . push ( isWeb ( ) ? plugin . uri . toString ( ) : plugin . uri . path ) ;
251
249
}
252
250
}
251
+ }
253
252
254
- if ( pluginPaths . length !== 0 ) {
255
- args . push ( '--pluginProbeLocations' , pluginPaths . join ( ',' ) ) ;
256
- }
253
+ if ( pluginPaths . length !== 0 ) {
254
+ args . push ( '--pluginProbeLocations' , pluginPaths . join ( ',' ) ) ;
257
255
}
258
256
259
257
if ( configuration . npmLocation && ! isWeb ( ) ) {
0 commit comments