-
Notifications
You must be signed in to change notification settings - Fork 451
Adding Checkin and hooking it up to the viewlet #100
Conversation
It doesn't currently change anything. Something is not set up properly for this to work.
- assert.throws doesn't seem to work as expected with Async/Await
- also cleaned up some unused error strings - also fixed the status update to only run one at a time.
Hi @jpricketMSFT, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
src/tfvc/repository.ts
Outdated
@@ -50,6 +51,12 @@ export class Repository { | |||
return this._repositoryRootFolder; | |||
} | |||
|
|||
public async Checkin(files: string[], comment: string, workItemIds: number[]): Promise<string> { | |||
Logger.LogDebug(`TFVC Repository.Undo`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Undo ==> Checkin
src/tfvc/tfvc-extension.ts
Outdated
} | ||
|
||
try { | ||
this._manager.Telemetry.SendEvent(TfvcTelemetryEvents.Checkin); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this down?
src/tfvc/tfvcerror.ts
Outdated
@@ -63,24 +81,25 @@ export class TfvcError { | |||
|
|||
export class TfvcErrorCodes { | |||
public static get MissingArgument(): string { return "MissingArgument"; } | |||
public static get BadConfigFile(): string { return "BadConfigFile"; } | |||
//public static get BadConfigFile(): string { return "BadConfigFile"; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the commented out ones.
Added commit box hover provider but this doesn't get used in the current Insiders build.
Added Checkin command and tests
Hooked up checkin to the viewlet