Skip to content

Commit 55ef612

Browse files
authored
document color requests not sent when there are multiple providers (microsoft#182625)
1 parent 3e4ed47 commit 55ef612

File tree

1 file changed

+3
-1
lines changed
  • src/vs/editor/contrib/colorPicker/browser

1 file changed

+3
-1
lines changed

src/vs/editor/contrib/colorPicker/browser/color.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ async function _findColorData<T extends IColorPresentation | IExtColorData | ICo
8585
defaultProvider = provider;
8686
} else {
8787
try {
88-
validDocumentColorProviderFound ||= await collector.compute(provider, model, token, colorData);
88+
if (await collector.compute(provider, model, token, colorData)) {
89+
validDocumentColorProviderFound = true;
90+
}
8991
} catch (e) {
9092
onUnexpectedExternalError(e);
9193
}

0 commit comments

Comments
 (0)