Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Use of ternary expression causes highlighting error #43

Open
scottlee-elega opened this issue Jan 29, 2021 · 0 comments
Open

Use of ternary expression causes highlighting error #43

scottlee-elega opened this issue Jan 29, 2021 · 0 comments

Comments

@scottlee-elega
Copy link

Details

Using a ternary expression in the below specified context causes syntax highlighting to break, although this is valid syntax and does deploy / run correctly.

What editor are you seeing the problem in? (e.g. Atom, Visual Studio Code, etc.)
Visual Studio Code

What version of the editor are you using?
1.52.1

What color theme are you using?
Visual Studio 2019 Dark

Repro

Please provide a code example and (optionally) a screenshot demonstrating the problem.

public without sharing class ProjectIncludedInBidHandler
{
	public Boolean isDelete;
	public Boolean isInsert;

	public ProjectIncludedInBidHandler()
	{
		this.isDelete = Trigger.isDelete != null ? Trigger.isDelete : false;
		this.isInsert = Trigger.isInsert != null ? Trigger.isInsert : false;
	}

	public Set<Id> relatedOportunityIds
	{
		get 
		{
			if(relatedOportunityIds == null) 
				relatedOportunityIds = new Set<Id>();
			return relatedOportunityIds;
		}
		set;
	}
}

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant