Skip to content

Commit 60180e0

Browse files
committed
Share predownloaded packages with the installer
1 parent 440adb4 commit 60180e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/installer/manager.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import * as pioNodeHelpers from 'platformio-node-helpers';
1111
import { PIO_CORE_VERSION_SPEC } from '../constants';
1212
import PythonPrompt from './python-prompt';
1313
import StateStorage from '../state-storage';
14+
import { extension } from '../main';
15+
import path from 'path';
1416
import vscode from 'vscode';
1517

1618
export default class InstallationManager {
@@ -34,6 +36,11 @@ export default class InstallationManager {
3436
useDevelopmentPIOCore: config.get('useDevelopmentPIOCore'),
3537
pythonPrompt: new PythonPrompt(),
3638
disableAutoUpdates: disableAutoUpdates,
39+
predownloadedPackageDir: path.join(
40+
extension.context.extensionPath,
41+
'assets',
42+
'predownloaded'
43+
),
3744
}
3845
),
3946
];

0 commit comments

Comments
 (0)