import { RedmineServer } from "./redmine-server" ; import { QuickPickItem } from "vscode" ; import { ProjectParentItem } from "./models/project" ; export interface RedmineProjectOptions { example id : string ; name : string ; description : string ; identifier : string ; parent ? : ProjectParentItem ; } export interface ProjectQuickPickItem extends QuickPickItem { identifier : string ; project : RedmineProject ; } export class RedmineProject { constructor ( private server , private options ) { } get id ( ) { return this . options . id ; } get parent ( ) { return this . options . parent ; } toQuickPickItem ( ) { return { label : this . options . name , description : ( this . options . description || "" ) . split ( "\n" ) . join ( " " ) . split ( "\r" ) . join ( "" ) , detail : this . options . identifier , identifier : this . options . identifier , project : this , } ; } }