Skip to content

Commit cc09fff

Browse files
authored
Merge branch 'main' into handle-multiple-compile-commands
2 parents c7a9c05 + b11f390 commit cc09fff

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

Extension/src/LanguageServer/references.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import * as telemetry from '../telemetry';
1313
import { DefaultClient } from './client';
1414
import { PersistentState } from './persistentState';
1515
import { FindAllRefsView } from './referencesView';
16+
import { CppSettings } from './settings';
1617

1718
nls.config({ messageFormat: nls.MessageFormat.bundle, bundleFormat: nls.BundleFormat.standalone })();
1819
const localize: nls.LocalizeFunc = nls.loadMessageBundle();
@@ -469,19 +470,24 @@ export class ReferencesManager {
469470
}
470471

471472
if (this.referencesStartedWhileTagParsing) {
473+
const showLog: boolean = util.getNumericLoggingLevel(new CppSettings().loggingLevel) >= 3;
472474
const msg: string = localize("some.references.may.be.missing", "[Warning] Some references may be missing, because workspace parsing was incomplete when {0} was started.",
473475
referencesCommandModeToString(this.client.ReferencesCommandMode));
474476
if (this.client.ReferencesCommandMode === ReferencesCommandMode.Peek) {
475477
if (this.referencesChannel) {
476478
this.referencesChannel.appendLine(msg);
477479
this.referencesChannel.appendLine("");
478-
this.referencesChannel.show(true);
480+
if (showLog) {
481+
this.referencesChannel.show(true);
482+
}
479483
}
480484
} else if (this.client.ReferencesCommandMode === ReferencesCommandMode.Find) {
481485
const logChannel: vscode.OutputChannel = logger.getOutputChannel();
482486
logChannel.appendLine(msg);
483487
logChannel.appendLine("");
484-
logChannel.show(true);
488+
if (showLog) {
489+
logChannel.show(true);
490+
}
485491
}
486492
}
487493

Extension/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3355,9 +3355,9 @@ mute-stdout@^2.0.0:
33553355
integrity sha1-xqm0thhdO39w0//Lc0y/yLDzh2E=
33563356

33573357
nanoid@^3.3.7:
3358-
version "3.3.7"
3359-
resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8"
3360-
integrity sha1-0MMBppG8jVTvoKIibM8/4v1la9g=
3358+
version "3.3.8"
3359+
resolved "https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/nanoid/-/nanoid-3.3.8.tgz#b1be3030bee36aaff18bacb375e5cce521684baf"
3360+
integrity sha1-sb4wML7jaq/xi6yzdeXM5SFoS68=
33613361

33623362
natural-compare@^1.4.0:
33633363
version "1.4.0"

0 commit comments

Comments
 (0)