mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
Get correct candidate for checking port attributes providers
This commit is contained in:
@@ -645,7 +645,7 @@ export class TunnelModel extends Disposable {
|
||||
const allProviderResults = await Promise.all(flatten(this.portAttributesProviders.map(provider => {
|
||||
return Array.from(pidToPortsMapping.entries()).map(entry => {
|
||||
const portGroup = entry[1];
|
||||
const matchingCandidate = matchingCandidates.get(portGroup[1]);
|
||||
const matchingCandidate = matchingCandidates.get(portGroup[0]);
|
||||
return provider.providePortAttributes(portGroup,
|
||||
matchingCandidate?.pid, matchingCandidate?.detail, new CancellationTokenSource().token);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user