|
| 1 | +--- |
| 2 | +name: Desync |
| 3 | +about: Please provide information about the desync you encountered to help us resolve the problem |
| 4 | +--- |
| 5 | + |
| 6 | +**Before filing a new issue, check that it's not already captured by one in [this list](https://github.com/MicrosoftDocs/live-share/issues/4260)** |
| 7 | + |
| 8 | +**Product and Version** [VS/VSCode]: |
| 9 | +**OS Version** [macOS/Windows/Linux]: |
| 10 | +**Live Share Extension Version**: |
| 11 | +**Target Platform or Language** [e.g. Node.js]: |
| 12 | + |
| 13 | +**What were you doing when you encountered the desync?** |
| 14 | + |
| 15 | +**How often have you encountered desyncs?** |
| 16 | + |
| 17 | +**Do the host and the guest have the same contents?** |
| 18 | + |
| 19 | +*If yes, there's no need to answer the following questions* |
| 20 | + |
| 21 | +If you are using VS Code, the following will provide helpful information. |
| 22 | + |
| 23 | +On both the host and the guest: |
| 24 | +- Enable the `liveshare.diagnosticMode` setting |
| 25 | +- Open the file that's out of sync |
| 26 | +- Run the `liveshare.getCoeditingInformation` command (`ctrl+shift+p` to open the command palette, then search for "Get co-editing information") and paste the results below |
| 27 | + |
| 28 | +**Host co-editing information:** |
| 29 | + |
| 30 | +**Guest co-editing information:** |
| 31 | + |
| 32 | +To check that messages are being sent and received, open the Output view (`ctrl+shift+u`) and select "Visual Studio Live Share Coediting" from the dropdown. Type a character. On the sending end, you should see output like: |
| 33 | +``` |
| 34 | +[2020-12-10 23:51:25.351 ] Post message: {"messageType":"textChange","changes":[{"length":0,"newText":"a","start":400}],"changeServerVersion":12,"clientId":24,"fileName":"/src/foo.txt","time":1607644285349,"sendId":16} |
| 35 | +``` |
| 36 | +On the receiving end, you should see output like: |
| 37 | +``` |
| 38 | +[2020-12-10 23:51:27.713 ] Receive message: {"context":{"GuestSessionId":"31","IsOwner":"False"},"sourceId":"Coauthoring","eventId":45,"jsonContent":"{"messageType":"textChange","changes":[{"length":0,"newText":"a","start":400}],"changeServerVersion":12,"clientId":24,"fileName":"/src/foo.txt","time":1607644427514,"sendId":25}","time":1607644427713} |
| 39 | +``` |
| 40 | +**Are messages being sent and received?** |
0 commit comments