Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4575e28

Browse files
authored
incorrect warning messages (microsoft#2560)
1 parenta9a09dc commit4575e28

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎Extension/src/cppTools.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class CppTools implements CppToolsTestApi {
7777
}elseif(this.failedRegistrations.find(p=>p===provider)){
7878
console.warn("provider not successfully registered, 'notifyReady' ignored");
7979
}else{
80-
console.warn(false,"provider should be registered before signaling it's ready to provide configurations");
80+
console.warn("provider should be registered before signaling it's ready to provide configurations");
8181
}
8282
}
8383

@@ -86,12 +86,14 @@ export class CppTools implements CppToolsTestApi {
8686
letp:CustomConfigurationProvider1=providers.get(provider);
8787

8888
if(p){
89-
console.warn(p.isReady,"didChangeCustomConfiguration was invoked before notifyReady");
89+
if(!p.isReady){
90+
console.warn("didChangeCustomConfiguration was invoked before notifyReady");
91+
}
9092
LanguageServer.getClients().forEach(client=>client.updateCustomConfigurations(p));
9193
}elseif(this.failedRegistrations.find(p=>p===provider)){
9294
console.warn("provider not successfully registered, 'didChangeCustomConfiguration' ignored");
9395
}else{
94-
console.warn(false,"provider should be registered before sending config change messages");
96+
console.warn("provider should be registered before sending config change messages");
9597
}
9698
}
9799

@@ -104,7 +106,7 @@ export class CppTools implements CppToolsTestApi {
104106
}elseif(this.failedRegistrations.find(p=>p===provider)){
105107
console.warn("provider not successfully registered, 'didChangeCustomBrowseConfiguration' ignored");
106108
}else{
107-
console.warn(false,"provider should be registered before sending config change messages");
109+
console.warn("provider should be registered before sending config change messages");
108110
}
109111
}
110112

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp