Problems view - do not show markers for SCM input (#156151)

Filter out markers omitted for the text document of the SCM input field
This commit is contained in:
Ladislau Szomoru 2022-07-25 15:17:05 +02:00 committed by GitHub
parent a649d8f404
commit 1a30c325e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -103,7 +103,7 @@ class MarkerStats implements MarkerStatistics {
const result: MarkerStatistics = { errors: 0, warnings: 0, infos: 0, unknowns: 0 };
// TODO this is a hack
if (resource.scheme === Schemas.inMemory || resource.scheme === Schemas.walkThrough || resource.scheme === Schemas.walkThroughSnippet) {
if (resource.scheme === Schemas.inMemory || resource.scheme === Schemas.walkThrough || resource.scheme === Schemas.walkThroughSnippet || resource.scheme === Schemas.vscodeSourceControl) {
return result;
}

View file

@ -411,7 +411,7 @@ export class MarkersTable extends Disposable implements IProblemsWidget {
const items: MarkerTableItem[] = [];
for (const resourceMarker of this.resourceMarkers) {
for (const marker of resourceMarker.markers) {
if (marker.resource.scheme === network.Schemas.walkThrough || marker.resource.scheme === network.Schemas.walkThroughSnippet) {
if (marker.resource.scheme === network.Schemas.walkThrough || marker.resource.scheme === network.Schemas.walkThroughSnippet || marker.resource.scheme === network.Schemas.vscodeSourceControl) {
continue;
}

View file

@ -456,7 +456,7 @@ export class Filter implements ITreeFilter<MarkerElement, FilterData> {
}
private filterResourceMarkers(resourceMarkers: ResourceMarkers): TreeFilterResult<FilterData> {
if (resourceMarkers.resource.scheme === network.Schemas.walkThrough || resourceMarkers.resource.scheme === network.Schemas.walkThroughSnippet) {
if (resourceMarkers.resource.scheme === network.Schemas.walkThrough || resourceMarkers.resource.scheme === network.Schemas.walkThroughSnippet || resourceMarkers.resource.scheme === network.Schemas.vscodeSourceControl) {
return false;
}