Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix typos #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { store } from "./store";

export async function activate(context: ExtensionContext) {
// Get access to the Live Share API. Since this extension
// takes a "hard dependency" on Live Share, we can guaruntee,
// takes a "hard dependency" on Live Share, we can guarantee,
// that this API would always be available. Otherwise,
// we could check check for null, which indicates the end-user
// doesn't have Live Share installed alongside your extension.
Expand All @@ -36,15 +36,15 @@ export async function activate(context: ExtensionContext) {
);

// This event will fire whenever an end-user joins
// or leaves a sessionn, either of the host or guest.
// or leaves a session, either of the host or guest.
vsls.onDidChangeSession(async e => {
if (e.session.role === Role.Host) {
store.count = 0;

// Expose a new custom RPC service, that allows
// guests in a Live Share session to retrieve and
// synchronize custom state with each other. In the
// case of this sample, the state being sychronized
// case of this sample, the state being synchronized
// is simply a count, and the only action that
// can be taken on it is to increment the count.
service = await vsls.shareService(SERVICE_NAME);
Expand Down