Skip to content

Commit c2accda

Browse files
committed
Only try to install extensions that are not installed
1 parent af7620e commit c2accda

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/cs.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,14 @@ export class CodeSync {
294294
this.startSync('Importing extensions');
295295
let excluded: string[] = this.Settings.ExcludedExternalPackages;
296296
let extensions: string[] = this.Settings.Extensions;
297+
let installedExtensions = helpers.getInstalledExtensions();
297298
let installedAny: boolean = false;
298299
extensions.forEach(e => {
299-
let val = helpers.installExtension(e);
300-
if (val) {
301-
installedAny = true;
300+
if (installedExtensions.filter(i => i.id == e).length == 0) {
301+
let val = helpers.installExtension(e);
302+
if (val) {
303+
installedAny = true;
304+
}
302305
}
303306
});
304307
if (installedAny) {

0 commit comments

Comments
 (0)