Interface IProject

Index

Properties

Methods

Properties

public path: string

public rootDirectory: IDirectory

Methods

public addBuffer(buffer: ITextBuffer, options?: any): any

Parameters

Returns

any

public addBufferAtIndex(buffer: ITextBuffer, index: number, options?: any): any

Parameters

  • buffer: ITextBuffer
  • index: number
  • options?: any optional

Returns

any

public bufferForId(id: any): ITextBuffer

Parameters

  • id: any

Returns

ITextBuffer

public bufferForPath(filePath: string): Promise

Parameters

  • filePath: string

Returns

Promise

public bufferForPathSync(filePath: string): ITextBuffer

Parameters

  • filePath: string

Returns

ITextBuffer

public buildBuffer(absoluteFilePath: string): Promise

Parameters

  • absoluteFilePath: string

Returns

Promise

public buildBufferSync(absoluteFilePath: string): ITextBuffer

Parameters

  • absoluteFilePath: string

Returns

ITextBuffer

public buildEditorForBuffer(buffer: any, editorOptions: any): IEditor

Parameters

  • buffer: any
  • editorOptions: any

Returns

IEditor

public contains(pathToCheck: string): boolean

Parameters

  • pathToCheck: string

Returns

boolean

public deserializeParams(params: any): any

Parameters

  • params: any

Returns

any

public destroyRepo(): any

Returns

any

public destroyUnretainedBuffers(): any

Returns

any

public destroyed(): any

Returns

any

public eachBuffer(args?: Array<any>): any

Parameters

  • args?: Array<any> optional

Returns

any

public findBufferForPath(filePath: string): ITextBuffer

Parameters

  • filePath: string

Returns

ITextBuffer

public getBuffers(): ITextBuffer

Returns

ITextBuffer

public getPath(): string

Returns

string

public getRepo(): IGit

Returns

IGit

public getRootDirectory(): IDirectory

Returns

IDirectory

public isPathModified(filePath: string): boolean

Parameters

  • filePath: string

Returns

boolean

public open(filePath: string, options?: any): Promise

Parameters

  • filePath: string
  • options?: any optional

Returns

Promise

public openSync(filePath: string, options?: any): IEditor

Parameters

  • filePath: string
  • options?: any optional

Returns

IEditor

public relativize(fullPath: string): string

Parameters

  • fullPath: string

Returns

string

public replace(regex: any, replacementText: any, filePaths: any, iterator: any): Promise

Parameters

  • regex: any
  • replacementText: any
  • filePaths: any
  • iterator: any

Returns

Promise

public resolve(uri: string): string

Parameters

  • uri: string

Returns

string

public scan(regex: any, options: any, iterator: any): Promise

Parameters

  • regex: any
  • options: any
  • iterator: any

Returns

Promise

public serializeParams(): any

Returns

any

public setPath(projectPath: string): any

Parameters

  • projectPath: string

Returns

any