DelimiterAutoCompleter is not work

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 6 years ago by Roger
Version: 17.2.0665

DelimiterAutoCompleter is not work in this case.
How can we prevent this?

using System;
using System.Collections.Generic;
using System.Linq;

namespace DotNetLanguagesAddon {
public class CSharpLanguage {
public void DemoTest() {
var result = Add(10,Add);

private int Add(int l, int r){
return l + r;

Repro step :
1. Paste above codes to C# SyntaxEditor Demo on Sample Browser.
2. On line 8, Type "(" at left of ")".
Expected : var result = Add(10,Add());
Actual : var result = Add(10,Add();
Version : 17.2.0665

Comments (1)

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Roger,

There is logic in there to prevent auto-completion of the delimiters in cases where it detects an end delimiter may already be there.  When we had the auto-complete insertion more aggressive during development, there were cases it got to be inserting end delimiters too often and it ended up being annoying when going and doing edits on a line.  

We model our current logic after Visual Studio's editor and if you paste the code in VS 2017, it behaves the same.  I believe that is because they ran into the same thing with more aggressive auto-completion.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.