DCD icon indicating copy to clipboard operation
DCD copied to clipboard

dcd gives autocompletion when the caret is within a string

Open SingingBush opened this issue 3 years ago • 1 comments

I was doing some testing recently and typed pragma(msg, "A pragma statement").

Interestingly I got an auto-complete option for pragma whilst typing the string "A pragma statement". DCD should have been able to detect that the caret was within a string so should not have given this option.

This was on dcd 0.13.1

SingingBush avatar Jun 05 '22 20:06 SingingBush

This isn't just pragma statements. I tested with writeln("imp"); with the caret just after the 'p' and was able to get an auto-completion for import which, when hitting return, then resulted in:

	writeln("import std.stdio; 
	 
	");

This is related to the intellij-dlanguage plugin but the auto-completion options are driven by dcd.

SingingBush avatar Jun 05 '22 20:06 SingingBush