import { Extension } from "./extension" ; import { Package } from "./package" ; extends Extension export class LocalExtension extends Extension { public constructor ( pkg , private extensionPath ) { super ( pkg , "" ) ; } public get location ( ) : string { return this . extensionPath ; } public get modulePath ( ) : string { return this . extensionPath ; } public async remove ( ) { throw new Error ( "Cannot remove local extension. Lifetime not our responsibility." ) ; } }