Discussions related to Visual Prolog
sbishop61
Posts: 9
Joined: 9 May 2021 9:55

IDE: intellisense autocomplete PFC classes

Unread post by sbishop61 »

I am probably making a basic mistake, but I was hoping that the IDE would provide autocomplete popups with PFC classes etc.

For example I add the Web/json package to the project and build. That adds in all of the required packages.

In the editor in a .pro file I type in JSON = jsonObject:: and it does prompt me with new which is great. However, I expected that after I had typed JSON = j, it would prompt with classes in the project starting with j, so jsonObject would have been an option.

Am I missing something?
User avatar
Thomas Linder Puls
VIP Member
Posts: 1253
Joined: 28 Feb 2000 0:01

Re: IDE: intellisense autocomplete PFC classes

Unread post by Thomas Linder Puls »

When a package is added to the project it is available to use. But to use it from some other package there must also be an include directive (or a chain of such) that makes the package visible.

We have decided that the package should only be suggested if it is visible.

So initially classes and interfaces from the package is not suggested. But once you have used one name from the package (and compiled) the include statements will be updated and the package will become visible. By then the classes and interfaces from the package will be suggested.

By limiting the names to those that are already visible we hope that the suggestions is more relevant to the context you are in.
Regards Thomas Linder Puls
PDC
Post Reply