Live Share 中的連絡人Contacts in Live Share

您已使用 Live Share,並注意透過外部應用程式(例如聊天或電子郵件)傳送連結,可能會變得非常快速?So you have been using Live Share and notice that sending links via an external application (like chat or email) can get old really fast? 我們知道,如果我們想要鼓勵共同作業,您可能需要最少的摩擦,才能讓您愛用。We know that if we want to encourage collaboration, there needs to be the least amount of friction possible for you to love it. 這就是為什麼 Live Share 現在具有狀態連絡人This is why Live Share now has contacts with status .

所有版本的Live Share v 1.0.950開始都會自動啟用連絡人。Contacts will be automatically enabled for all versions of Live Share v1.0.950 onwards.

連絡人會以個別的窗格形式出現在 Live Share 視窗中,如下圖所示:Contacts will appear in your Live Share window as a separate pane, as seen in the image below:

連絡人

在 [Live Share] 視窗中顯示 [連絡人] 窗格 Showing contacts pane in the Live Share window

我的連絡人中顯示了誰?Who shows up in my contacts?

您的 [連絡人] 窗格會顯示兩種類型的連絡人,以在工作時支援開發人員的自然工作流程。Your contacts pane is made displays two types of contacts that support developers' natural workflows while working.

1. 最近的連絡人1. Recent Contacts

這些是您先前使用 Live Share 共同合作的開發人員。These are developers you've previously collaborated with using Live Share. 實際上,大部分的開發人員經常與相同的人員共同作業,因此,最新的清單可讓您更有效率地使用您的小組/教室/等等。In practice, most developers frequently collaborate with the same people, and therefore, the recent list enables a more repeatable means of working with your team/classroom/etc.

2. 建議的連絡人2. Suggested Contacts

這些是在過去30天內,已提供給您目前開啟之專案的開發人員。These are developers that have contributed to your currently open project within the last 30 days. 在實務上,這些是您可能想要與之共同作業的人員,因此我們建議您這樣做,以便更輕鬆地開始使用。In practice, these are the folks you're likely to want to collaborate with, and therefore, we suggest them in order to make it easier to get started.

直接使用者邀請Direct user invitations

您的所有連絡人都可以直接從您的編輯器中邀請到 Live Share 會話。他們會收到快顯通知,讓他們加入宣告會話。All your contacts can be invited directly to a Live Share session from within your editor.They'll get a toast notification that gives them the option to join the session or not. 這不需要完全交換會話 Url。This removes the need to exchange session URLs entirely. DirectInvitationVSCode Live Share 主機(左)直接邀請對等(right)進入會話DirectInvitationVSCode A Live Share host (left) directly inviting a peer (right) into a session

連絡人的狀態如何運作?How does status for contacts work?

當開發人員使用 Live Share 登入之後,其可用性狀態將會發佈到其對等。Once developers sign-in with Live Share, their availability status will be published to their peers. 如此一來,您就可以看到小組中的某個人已上線,然後使用上述直接邀請立即開始與他們共同作業。As a result, you can see that someone on your team is online, and then immediately start collaborating with them, using direct invitation as seen above. 您的狀態可以直接從編輯器中設定,讓您可以向小組發出通知,而不需要內容切換。Your status can be set directly from within the editor so you can signal you availability to your team, without the need to context switch. Live Share 連絡人目前有4個狀態:Live Share contacts have 4 statuses currently:

1. 可用: 如果您有 Live Share 延伸模組,而且主動使用您的編輯器,而不是在會話中,則預設狀態將會 Available1. Available: Your default status will be Available if you have the Live Share extension and are actively using your editor, while not being in a session.

2. 不要打擾: 如果您目前處於作用中的 Live Share 會話,而且所有邀請通知都已隱藏,則您的狀態會設定為 Do not disturb2. Do not disturb: Your status is set to Do not disturb if you are currently in an active Live Share session and all invitation notifications are suppressed.

3. 離開: 在無活動5分鐘後,您的狀態會自動切換為 Away3. Away: After 5 minutes of inactivity, your status will automatically switch to Away.

4. 離線: 當您離開一段長時間,或退出宣告共用狀態時,您將會離線4. Offline: You will be offline once you are away for an extended period of time, or if you choose to opt-out of sharing status

管理連絡人和共用狀態Managing contacts and sharing status

如果您想要退出宣告這項功能,您可以透過兩種方式來執行。If you want to opt-out of this feature, you can do it in two ways.

  1. 您可以選擇 offline來停用狀態設定。You can disable the status setting by choosing to be offline. 停用之後,您仍然可以看到其他的狀態並加以邀請,但您的狀態將不會發佈,而其他人也無法直接邀請您。Once disabled, you'll still be able to see other's status and invite them, but your status won't be published, and others can't directly invite you. 您可以選擇離線,方法是按一下狀態圓形,這會顯示下列下拉式功能表:You can choose to be offline by clicking on the status circle which will bring up the following drop-down menu:

dropdownstatus 顯示存在狀態的下拉式記錄dropdownstatus Showing drop down of states of Presence

  1. 您可以開啟 user settings,並移至 [擴充功能] > Visual Studio Live Share > Live Share:目前狀態,並停用目前狀態服務。You can open user settings and go to Extensions > Visual Studio Live Share > Live Share: Presence and disable the Presence service. 停用之後,您仍然可以看到其他的狀態並加以邀請,但您的狀態將不會發佈,而其他人也無法直接邀請您。Once disabled, you'll still be able to see other's status and invite them, but your status won't be published, and others can't directly invite you.

presencesettings

常見問題FAQ's

1. 當我使用 Live Share v 1.0.950 和更新版本時,是否會自動選擇共用狀態?1. Will I be automatically opting into sharing status when I use Live Share v1.0.950 and above?

當您第一次看到 [連絡人] 時,您會收到快顯通知,並退出宣告共用狀態的選項。The very first time you see contacts you will be notified with a toast and an option to opt out of it sharing your status. 之後,您將會自動與您的連絡人分享您的狀態,除非您退出宣告,如上所示。After that, you will be automatically share your status with your contacts, unless you choose to opt-out as shown above.

2. 我可以加入自己的連絡人嗎?2. Can I add my own contacts?

目前,我們的「連絡人」服務會自動偵測您經常共用程式碼的共同作業者,或「並存」的工作,而且不會提供您新增自己連絡人的選項。Currently, our contacts service auto-detects those collaborators who you frequently share code with or work along-side, and does not provide you with the option to add your own contacts.

認為能夠手動新增連絡人會很有用嗎?Think being able to manually add contacts will be useful? 在這裡開啟 GitHub 功能要求,協助我們設定此優先順序。Help us prioritize this by opening a GitHub feature request here.