Skip to content

Commit a2294bb

Browse files
authored
Merge pull request #3122 from github/koesie10/npm-upgrade
Run `npm upgrade`
2 parents 8b2fd1a + 0b7b6f1 commit a2294bb

35 files changed

Lines changed: 9081 additions & 33852 deletions

extensions/ql-vscode/package-lock.json

Lines changed: 9014 additions & 33782 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/ql-vscode/src/codeql-cli/distribution.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,8 @@ export class DistributionManager implements DistributionProvider {
195195

196196
if (process.env.PATH) {
197197
for (const searchDirectory of process.env.PATH.split(delimiter)) {
198-
const expectedLauncherPath = await getExecutableFromDirectory(
199-
searchDirectory,
200-
);
198+
const expectedLauncherPath =
199+
await getExecutableFromDirectory(searchDirectory);
201200
if (expectedLauncherPath) {
202201
return {
203202
codeQlPath: expectedLauncherPath,

extensions/ql-vscode/src/common/readonly.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
export type DeepReadonly<T> = T extends Array<infer R>
22
? DeepReadonlyArray<R>
33
: // eslint-disable-next-line @typescript-eslint/ban-types
4-
T extends Function
5-
? T
6-
: T extends object
7-
? DeepReadonlyObject<T>
8-
: T;
4+
T extends Function
5+
? T
6+
: T extends object
7+
? DeepReadonlyObject<T>
8+
: T;
99

1010
interface DeepReadonlyArray<T> extends ReadonlyArray<DeepReadonly<T>> {}
1111

extensions/ql-vscode/src/common/sarif-utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,14 @@ export function parseHighlightedLine(
234234
const highlightStartColumn = isSingleLineHighlight
235235
? highlightedRegion.startColumn
236236
: isFirstHighlightedLine
237-
? highlightedRegion.startColumn
238-
: 0;
237+
? highlightedRegion.startColumn
238+
: 0;
239239

240240
const highlightEndColumn = isSingleLineHighlight
241241
? highlightedRegion.endColumn
242242
: isLastHighlightedLine
243-
? highlightedRegion.endColumn
244-
: line.length + 1;
243+
? highlightedRegion.endColumn
244+
: line.length + 1;
245245

246246
const plainSection1 = line.substring(0, highlightStartColumn - 1);
247247
const highlightedSection = line.substring(

extensions/ql-vscode/src/common/vscode/telemetry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ export class ExtensionTelemetryListener
162162
const status = !error
163163
? CommandCompletion.Success
164164
: error instanceof UserCancellationException
165-
? CommandCompletion.Cancelled
166-
: CommandCompletion.Failed;
165+
? CommandCompletion.Cancelled
166+
: CommandCompletion.Failed;
167167

168168
this.reporter.sendTelemetryEvent(
169169
"command-usage",

extensions/ql-vscode/src/databases/local-databases/database-manager.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,8 @@ export class DatabaseManager extends DisposableObject {
424424
step: ++step,
425425
});
426426

427-
const databaseItem = await this.createDatabaseItemFromPersistedState(
428-
database,
429-
);
427+
const databaseItem =
428+
await this.createDatabaseItemFromPersistedState(database);
430429
try {
431430
await this.refreshDatabase(databaseItem);
432431
await this.registerDatabase(databaseItem);

extensions/ql-vscode/src/extension.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ async function installOrUpdateDistribution(
542542
const messageText = willUpdateCodeQl
543543
? "Updating CodeQL CLI"
544544
: codeQlInstalled
545-
? "Checking for updates to CodeQL CLI"
546-
: "Installing CodeQL CLI";
545+
? "Checking for updates to CodeQL CLI"
546+
: "Installing CodeQL CLI";
547547

548548
try {
549549
await installOrUpdateDistributionWithProgressTitle(
@@ -564,8 +564,8 @@ async function installOrUpdateDistribution(
564564
willUpdateCodeQl
565565
? "update"
566566
: codeQlInstalled
567-
? "check for updates to"
568-
: "install"
567+
? "check for updates to"
568+
: "install"
569569
} CodeQL CLI`;
570570

571571
if (e instanceof GithubRateLimitedError) {

extensions/ql-vscode/src/local-queries/results-view.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ function sortInterpretedResults(
104104
a.message.text === undefined
105105
? 0
106106
: b.message.text === undefined
107-
? 0
108-
: multiplier *
109-
a.message.text?.localeCompare(b.message.text, env.language),
107+
? 0
108+
: multiplier *
109+
a.message.text?.localeCompare(b.message.text, env.language),
110110
);
111111
break;
112112
default:

extensions/ql-vscode/src/local-queries/skeleton-query-wizard.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,8 @@ export class SkeletonQueryWizard {
507507
): Promise<DatabaseItem | undefined> {
508508
const defaultDatabaseNwo = QUERY_LANGUAGE_TO_DATABASE_REPO[language];
509509

510-
const dbItems = await SkeletonQueryWizard.sortDatabaseItemsByDateAdded(
511-
databaseItems,
512-
);
510+
const dbItems =
511+
await SkeletonQueryWizard.sortDatabaseItemsByDateAdded(databaseItems);
513512

514513
const defaultDatabaseItem = await SkeletonQueryWizard.findDatabaseItemByNwo(
515514
language,

extensions/ql-vscode/src/model-editor/auto-model-codeml-queries.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ export async function runAutoModelQueries({
8585
// CodeQL needs to have access to the database to be able to retrieve the
8686
// snippets from it. The source location prefix is used to determine the
8787
// base path of the database.
88-
const sourceLocationPrefix = await databaseItem.getSourceLocationPrefix(
89-
cliServer,
90-
);
88+
const sourceLocationPrefix =
89+
await databaseItem.getSourceLocationPrefix(cliServer);
9190
const sourceArchiveUri = databaseItem.sourceArchive;
9291
const sourceInfo =
9392
sourceArchiveUri === undefined

0 commit comments

Comments
 (0)