@@ -10,7 +10,7 @@ import * as paths from 'vs/base/common/paths';
1010import Severity from 'vs/base/common/severity' ;
1111import { TPromise } from 'vs/base/common/winjs.base' ;
1212import { IMessageService } from 'vs/platform/message/common/message' ;
13- import { AbstractPluginService , ActivatedPlugin , IPluginContext , IPluginMemento , loadAMDModule } from 'vs/platform/plugins/common/abstractPluginService' ;
13+ import { AbstractPluginService , ActivatedPlugin , IPluginContext , IPluginMemento } from 'vs/platform/plugins/common/abstractPluginService' ;
1414import { IMessage , IPluginDescription , IPluginStatus } from 'vs/platform/plugins/common/plugins' ;
1515import { PluginsRegistry } from 'vs/platform/plugins/common/pluginsRegistry' ;
1616import { PluginHostStorage } from 'vs/platform/storage/common/remotable.storage' ;
@@ -339,10 +339,6 @@ export class PluginHostPluginService extends AbstractPluginService<ExtHostPlugin
339339 }
340340
341341 protected _loadPluginModule ( pluginDescription : IPluginDescription ) : TPromise < IPluginModule > {
342- if ( pluginDescription . isAMD ) {
343- return loadAMDModule ( uriFromPath ( pluginDescription . main ) ) ;
344- }
345-
346342 return loadCommonJSModule ( pluginDescription . main ) ;
347343 }
348344
@@ -429,18 +425,3 @@ function loadCommonJSModule<T>(modulePath: string): TPromise<T> {
429425 }
430426 return TPromise . as ( r ) ;
431427}
432-
433-
434- // TODO@Alex : Duplicated in:
435- // * src\bootstrap.js
436- // * src\vs\workbench\electron-main\bootstrap.js
437- // * src\vs\platform\plugins\common\nativePluginService.ts
438- function uriFromPath ( _path ) {
439- let pathName = _path . replace ( / \\ / g, '/' ) ;
440-
441- if ( pathName . length > 0 && pathName . charAt ( 0 ) !== '/' ) {
442- pathName = '/' + pathName ;
443- }
444-
445- return encodeURI ( 'file://' + pathName ) ;
446- }
0 commit comments