Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .eslint-plugin-local/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import type { ESLint } from 'eslint';
import glob from 'glob';
import { glob } from 'glob';
import { createRequire } from 'module';
import path from 'path';

Expand Down
5 changes: 2 additions & 3 deletions build/gulpfile.extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ EventEmitter.defaultMaxListeners = 100;
import es from 'event-stream';
import fancyLog from 'fancy-log';
import * as fs from 'fs';
import glob from 'glob';
import { glob } from 'glob';
import { gulp, filter, plumber, sourcemaps } from './lib/gulp/facade.ts';
import * as path from 'path';
import * as nodeUtil from 'util';
import * as ext from './lib/extensions.ts';
import { getVersion } from './lib/getVersion.ts';
import { createReporter } from './lib/reporter.ts';
Expand Down Expand Up @@ -315,7 +314,7 @@ async function buildWebExtensions(isWatch: boolean): Promise<void> {
const extensionsPath = path.join(root, 'extensions');

// Find all esbuild.browser.mts files
const esbuildConfigLocations = await nodeUtil.promisify(glob)(
const esbuildConfigLocations = await glob(
path.join(extensionsPath, '**', 'esbuild.browser.mts'),
{ ignore: ['**/node_modules'] }
);
Expand Down
6 changes: 3 additions & 3 deletions build/gulpfile.reh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import packageJson from '../package.json' with { type: 'json' };
import { untar } from './lib/util.ts';
import File from 'vinyl';
import * as fs from 'fs';
import glob from 'glob';
import { glob } from 'glob';
import { promisify } from 'util';
import rceditCallback from 'rcedit';
import { compileBuildWithManglingTask } from './gulpfile.compile.ts';
Expand Down Expand Up @@ -461,8 +461,8 @@ function patchWin32DependenciesTask(destinationFolderName: string) {

return async () => {
const deps = (await Promise.all([
promisify(glob)('**/*.node', { cwd }),
promisify(glob)('**/rg.exe', { cwd }),
glob('**/*.node', { cwd }),
glob('**/rg.exe', { cwd }),
])).flatMap(o => o);
const packageJsonContents = JSON.parse(await fs.promises.readFile(path.join(cwd, 'package.json'), 'utf8'));
const productContents = JSON.parse(await fs.promises.readFile(path.join(cwd, 'product.json'), 'utf8'));
Expand Down
2 changes: 1 addition & 1 deletion build/gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { EventEmitter } from 'events';
EventEmitter.defaultMaxListeners = 100;

import glob from 'glob';
import { glob } from 'glob';
import { createRequire } from 'node:module';
import { monacoTypecheckTask /* , monacoTypecheckWatchTask */ } from './gulpfile.editor.ts';
import { compileExtensionMediaTask, compileExtensionsTask, watchExtensionsTask } from './gulpfile.extensions.ts';
Expand Down
3 changes: 1 addition & 2 deletions build/gulpfile.vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ import { copyCodiconsTask } from './lib/compilation.ts';
import { getCopilotExcludeFilter, getRipgrepExcludeFilter, prepareBuiltInCopilotRipgrepShim } from './lib/copilot.ts';
import { useEsbuildTranspile } from './buildConfig.ts';
import { promisify } from 'util';
import globCallback from 'glob';
import { glob } from 'glob';
import rceditCallback from 'rcedit';
import { spawnTsgo } from './lib/tsgo.ts';
import { runEsbuildTranspile, runEsbuildBundle } from './lib/esbuild.ts';


const glob = promisify(globCallback);
const rcedit = promisify(rceditCallback);
const root = path.dirname(import.meta.dirname);
const commit = getVersion(root);
Expand Down
2 changes: 1 addition & 1 deletion build/lib/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import es from 'event-stream';
import fs from 'fs';
import cp from 'child_process';
import glob from 'glob';
import { glob } from 'glob';
import { gulp, filter, rename, buffer, vinylZip, jsonEditor } from './gulp/facade.ts';
import path from 'path';
import crypto from 'crypto';
Expand Down
5 changes: 2 additions & 3 deletions build/next/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
import * as esbuild from 'esbuild';
import * as fs from 'fs';
import * as path from 'path';
import { promisify } from 'util';

import glob from 'glob';
import { glob } from 'glob';
import gulpWatch from '../lib/watch/index.ts';
import { nlsPlugin, createNLSCollector, finalizeNLS, postProcessNLS } from './nls-plugin.ts';
import { convertPrivateFields, adjustSourceMap, type ConvertPrivateFieldsResult } from './private-to-property.ts';
Expand All @@ -19,7 +18,7 @@ import packageJson from '../../package.json' with { type: 'json' };
import { useEsbuildTranspile } from '../buildConfig.ts';
import { isWebExtension, type IScannedBuiltinExtension } from '../lib/extensions.ts';

const globAsync = promisify(glob);
const globAsync = glob;

// ============================================================================
// Configuration
Expand Down
2 changes: 1 addition & 1 deletion extensions/css-language-features/server/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { spec, junit } from 'node:test/reporters';
import path from 'node:path';
import fs from 'node:fs';
import { PassThrough } from 'node:stream';
import glob from 'glob';
import { glob } from 'glob';

const testRoot = import.meta.dirname;
const files = glob.sync(path.posix.join(testRoot, '../out/test/**/*.test.js'));
Expand Down
2 changes: 1 addition & 1 deletion extensions/html-language-features/server/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { spec, junit } from 'node:test/reporters';
import path from 'node:path';
import fs from 'node:fs';
import { PassThrough } from 'node:stream';
import glob from 'glob';
import { glob } from 'glob';

const testRoot = import.meta.dirname;
const files = glob.sync(path.posix.join(testRoot, '../out/test/**/*.test.js'));
Expand Down
174 changes: 78 additions & 96 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
"eslint-plugin-jsdoc": "^63.0.2",
"event-stream": "3.3.4",
"fancy-log": "^1.3.3",
"glob": "^5.0.15",
"glob": "^13.0.6",
"gulp": "^4.0.2",
"gulp-azure-storage": "^0.12.1",
"gulp-bom": "^3.0.0",
Expand Down
9 changes: 4 additions & 5 deletions test/integration/electron/testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'use strict';

const paths = require('path');
const glob = require('glob');
const { glob } = require('glob');
// Linux: prevent a weird NPE when mocha on Linux requires the window size from the TTY
// Since we are not running in a tty environment, we just implement the method statically
const tty = require('tty');
Expand Down Expand Up @@ -35,10 +35,7 @@ exports.run = function run(testsRoot, clb) {
require('source-map-support').install();

// Glob test files
glob('**/**.test.js', { cwd: testsRoot }, function (error, files) {
if (error) {
return clb(error);
}
glob('**/**.test.js', { cwd: testsRoot }).then(function (files) {
try {
// Fill into Mocha
files.forEach(function (f) { return mocha.addFile(paths.join(testsRoot, f)); });
Expand All @@ -50,5 +47,7 @@ exports.run = function run(testsRoot, clb) {
catch (error) {
return clb(error);
}
}, function (error) {
return clb(error);
});
};
Loading
Loading