Skip to content
Draft
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
128 changes: 101 additions & 27 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4235,7 +4235,6 @@
"@eslint/js": "^9.36.0",
"@shikijs/monaco": "^3.7.0",
"@types/chai": "^4.1.4",
"@types/glob": "7.1.3",
"@types/js-yaml": "^4.0.9",
"@types/lru-cache": "^5.1.0",
"@types/marked": "^0.7.2",
Expand Down Expand Up @@ -4265,7 +4264,7 @@
"eslint-plugin-rulesdir": "^0.2.2",
"event-stream": "^4.0.1",
"fork-ts-checker-webpack-plugin": "9.1.0",
"glob": "7.1.6",
"glob": "13.0.6",
"globals": "^16.4.0",
"graphql": "15.5.0",
"graphql-tag": "2.11.0",
Expand Down
14 changes: 9 additions & 5 deletions scripts/preprocess-svg.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

const util = require('util');
const fs = require('fs');
const path = require('path');
const minimist = require('minimist');
const svgLoader = require('svg-inline-loader');
const globCb = require('glob');
const { glob } = require('glob');
const mkdirpCb = require('mkdirp');

function printUsage(consoleFn, exitCode) {
Expand All @@ -14,9 +19,9 @@ with the way that Webpack will transpile them at build time.

Options:

--help, -h Display this message.
--in, -i [dirname] Discover and convert SVG files beneath [dirname].
--out, -o [dirname] Emit JavaScript source to files beneath [dirname].
--help, -h Display this message.
--in, -i [dirname] Discover and convert SVG files beneath [dirname].
--out, -o [dirname] Emit JavaScript source to files beneath [dirname].
`);
process.exit(exitCode);
}
Expand Down Expand Up @@ -52,7 +57,6 @@ async function processFile(inFilename, outFilename) {
await writeFile(outFilename, moduleSource, { encoding: 'utf8' });
}

const glob = util.promisify(globCb);
const mkdirp = util.promisify(mkdirpCb);

async function processDirectory(inDirectory, outDirectory) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// This file is providing the test runner to use when running extension tests.
import * as path from 'path';
import * as vscode from 'vscode';
import glob from 'glob';
import * as glob from 'glob';
import Mocha from 'mocha';
import { mockWebviewEnvironment } from './mocks/mockWebviewEnvironment';
import { EXTENSION_ID } from '../constants';
Expand Down