mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 11:10:48 +00:00
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:
parent
a649d8f404
commit
1a30c325e5
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue