in BuildTasks/PublishVSExtension/Utils.ts [44:61]
export function logout(publisher: string) {
if (loggedIn)
{
const vsixPublisherExe = getVsixPublisherExe();
const vsixPublisher = tl.tool(vsixPublisherExe);
vsixPublisher.arg("logout");
vsixPublisher.arg(["-publisherName", publisher]);
vsixPublisher.arg("-ignoreMissingPublisher");
if (vsixPublisher.execSync({ failOnStdErr: true } as tr.IExecOptions).code !== 0)
{
throw new Error("Logout failed.");
}
loggedIn = false;
}
console.info(`Logout successful.`)
}