[API] User id mismatch between session & peers for anonymous users.
Describe what happened:
User id does NOT match between peers of the host & session of the guest, only on anonymous users.
What was your system configuration? Product and Version [VSCode]: OS Version[macOS]: Live Share Extension Version: 1.0.4753 (npm) Target Platform or Language [Node.js]:
Steps to Reproduce / Scenario:
Expected
When there is 2 machines, live share host and anonymous guest user.
Output guest data on the host machine,
console.log(this.liveshare?.peers[0].user);
// {displayName: 'Guest User', emailAddress: 'anonymous', userName: 'anonymous', id: 'AAAA' }
Output self data on the guest machine
console.log(this.liveshare?.session.user);
// {displayName: 'Guest User', emailAddress: 'anonymous', userName: 'anonymous', id: 'AAAA' }
User ids AAAA === AAAA match on the both machine.
Actual
on the host machine
console.log(this.liveshare?.peers[0].user);
// {displayName: 'Guest User', emailAddress: 'anonymous', userName: 'anonymous', id: 'BBBB' }
on the guest machine
console.log(this.liveshare?.session.user);
// {displayName: 'Guest User', emailAddress: 'anonymous', userName: 'anonymous', id: 'AAAA' }
Both ids do not match. This behavior occurred only on anonymous user. It seems to work as expected on signed user.
Please attach logs to this issue: Not provided due to API problem.
Screenshots Not provided due to API problem.