-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
43966da
commit ba4e806
Showing
7 changed files
with
101 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
import { QuickPickItem, SourceControlResourceGroup } from "vscode"; | ||
import { QuickPickItem } from "vscode"; | ||
import { ISvnResourceGroup } from "../common/types"; | ||
|
||
export default class ChangeListItem implements QuickPickItem { | ||
constructor(protected group: SourceControlResourceGroup) {} | ||
constructor(protected group: ISvnResourceGroup) {} | ||
|
||
get label(): string { | ||
return this.group.id.replace(/^changelist-/, ""); | ||
} | ||
|
||
get id(): string { | ||
return this.group.id; | ||
} | ||
|
||
get description(): string { | ||
return this.group.label; | ||
} | ||
get resourceGroup(): SourceControlResourceGroup { | ||
get resourceGroup(): ISvnResourceGroup { | ||
return this.group; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { QuickPickItem } from "vscode"; | ||
import { Repository } from "../repository"; | ||
import { Resource } from "../resource"; | ||
|
||
export class FileItem implements QuickPickItem { | ||
constructor( | ||
protected _repository: Repository, | ||
protected _state: Resource, | ||
public picked = false | ||
) {} | ||
|
||
get label(): string { | ||
return this._repository.repository.removeAbsolutePath( | ||
this._state.resourceUri.fsPath | ||
); | ||
} | ||
|
||
get description(): string { | ||
return this._state.resourceUri.fsPath; | ||
} | ||
get state(): Resource { | ||
return this._state; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters