Skip to content

Commit e331f75

Browse files
author
Tajudeen
committed
Fix os import in builtInExtensions.js (use os.homedir directly)
1 parent 402e50e commit e331f75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/lib/builtInExtensions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports.getExtensionStream = getExtensionStream;
88
exports.getBuiltInExtensions = getBuiltInExtensions;
99
const fs = require("fs");
1010
const path = require("path");
11-
const os_1 = require("os");
11+
const os = require("os");
1212
const rimraf_1 = require("rimraf");
1313
const event_stream_1 = require("event-stream");
1414
const gulp_rename_1 = require("gulp-rename");
@@ -20,7 +20,7 @@ const root = path.dirname(path.dirname(__dirname));
2020
const productjson = JSON.parse(fs.readFileSync(path.join(__dirname, '../../product.json'), 'utf8'));
2121
const builtInExtensions = productjson.builtInExtensions || [];
2222
const webBuiltInExtensions = productjson.webBuiltInExtensions || [];
23-
const controlFilePath = path.join(os_1.default.homedir(), '.vscode-oss-dev', 'extensions', 'control.json');
23+
const controlFilePath = path.join(os.homedir(), '.vscode-oss-dev', 'extensions', 'control.json');
2424
const ENABLE_LOGGING = !process.env['VSCODE_BUILD_BUILTIN_EXTENSIONS_SILENCE_PLEASE'];
2525
function log(...messages) {
2626
if (ENABLE_LOGGING) {

0 commit comments

Comments
 (0)