Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 C# interpolated string breaks VA Outline
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mkoe
Junior Member

12 Posts

Posted - Jul 07 2021 :  02:19:43 AM  Show Profile  Reply with Quote
C# interpolated strings ending with "\" break VA Outline:

class Foo
{
	public void Bar1()
	{
		string s = $"Hallo\\";
	}

	public void Bar2()
	{
	}
}


Bar2 is no longer visible inside the VA Outline.

feline
Whole Tomato Software

United Kingdom
17335 Posts

Posted - Jul 07 2021 :  08:48:21 AM  Show Profile  Reply with Quote
Thank you for the very clear example, I am seeing the same problem here. This is currently a known bug, that we are hoping to have a fix for fairly soon:

case=145778

for now I have found a work around, which is adding a comment after the interpolated string, so the function would become:

public void Bar1()
{
	string s = $"Hallo\\";
	// work around for Visual Assist bug - Console.WriteLine("{folderPath}//");
}

which fixes the problem for me. Can you try this to make sure this works for you as well please.

zen is the art of being at one with the two'ness
Go to Top of Page

mkoe
Junior Member

12 Posts

Posted - Jul 07 2021 :  09:29:56 AM  Show Profile  Reply with Quote
Thank you. For now it helps
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
17335 Posts

Posted - Jul 08 2021 :  12:15:53 PM  Show Profile  Reply with Quote
Thank you for the update, I am glad this works for you as well. We are aiming to get this fixed fairly soon, but I don't currently have a solid estimate for when this will be fixed.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000