Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
cleaning up a merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpowell committed Jul 3, 2019
1 parent 883fc69 commit 6a113c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ async function activateProfile(
await settingsHelper.updateUserSettings(profileSettings);

let extensions = config.getProfileExtensions(profile);
await extensionsHelper.installExtensions(extensions);
await extensionsHelper.removeExtensions(extensions);
await extensionsHelper.installExtensions(extensions, logger);
await extensionsHelper.removeExtensions(extensions, logger);

msg.dispose();

Expand Down Expand Up @@ -178,7 +178,7 @@ export async function activate(context: vscode.ExtensionContext) {
)
);

liveShare.initialize(context, config, (profile: string) => {
liveShare.initialize(config, (profile: string) => {
activateProfile(profile, config, settingsHelper, extensionsHelper);
});
}
4 changes: 1 addition & 3 deletions src/services/liveShare.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import * as vscode from "vscode";
import * as vsls from "vsls";
import Config from "./config";

export async function initialize(
context: vscode.ExtensionContext,
config: Config,
activateProfileHandler: (profile: string) => void
) {
// Check to see if the end-user has the Live Share
// Check to see if the end-user has the Live Share
// extension installed, and if not, exit early.
const liveShare = await vsls.getApi();
if (!liveShare) {
Expand Down

0 comments on commit 6a113c7

Please # to comment.