Maybe look to see how sleitnick solved the problem with his module autocomplete plugin?
The difference is hes replacing what the user inputs so for example :TestMod becomes local TestModule = require(ā¦TestModule) etc my plugin isnāt doing this.
Also his plugin isnāt inserting any new lines which I believe is the reason my plugin is broke at the moment.
Iām gonna give it until next wednesdays update and take it from there. But as far as im concerned the problem my plugin is facing is a script error bug where for some reason inserting a new line is now making the auto complete prompt appear at the beginning of the script.
If u press tab to insert the plugin will work perfectly at the moment.
Fixed the plugin consider enabling auto update for the future
Also fixed a bug where the plugin wouldnāt insert into the correct position
Added support for inserting based on the length of the service as requested by @SomeFedoraGuy:
Change how the plugin inserts new services by running Shared.ServiceSortType()
only two modes supported right now
Shared.ServiceSortType(āAlphabeticalā)
Shared.ServiceSortType(āLengthā)
these functions only need to be run once and will be saved to the local machine for future use.
Link to the github: GitHub - Baileyeatspizza/Service-Autocomplete: Roblox studio port of service autocompletion roblox LSP provides
Great update, thanks!
What I originally asked for would be a āLengthInversedā here, which, in your screenshot, would start at and āServerScriptServiceā end at āTeamsā.
It would be good when you press enter it doesnt go on the top of all statements by its own.
And please fix when i typed for Example Replicated and I press enter
It should delete the keyword I wrote already and replace with the autocompleted line.
This solves the issue of breaking my freaking fingers to define many services
One suggestion is that when you hit Enter, the keyword should be instantly removed as you hit Enter, so I donāt have to manually edit it
Here is the video of the issue, or create a setting to disable it
I know @Grip_All already explained it but Iām explaining it better
ah thanks a few people have said this but I wasnāt sure what they were referring to.
I am not going to implement this the plugin was designed to add services as ur writing code for example in the code below replicated storage will be added to the top of the script when its autocompleted
local part = ReplicatedStorage.SomePart
What you guys want is just the services defined but thereās some edge cases which wonāt allow this to be implemented without problems
For example I write out ContentProvider:PreloadAsync() all on a new line however, if āContentProviderā is removed the code ends up being :PreloadAsync() which is not what the user intended
Sorry, but for that reason the feature will not be added (if u find urself repeating the same service definitions in every script make a template to avoid editing the services)
I have an idea, Why not add an setting, which defaults to how it works now, in case if someone gets annoyed by that, then they can disable the setting, also sometimes you can forget that you made a template, and some people like I are uncomfortable with templates
hey Ive just found out that your plugin doesnt have auto completion for MemoryStoreServiceā¦
Is there a way to access the services with a period instead of GetService()?
This is literally bad practice why would it be implemented
Do some research and come back.
sorry if ur having difficulties with the plugin it detects the services currently present in ur studio instance which works great for most cases
but some services (maybe MemoryStoreService) arenāt present in studio by default and become available when GetService is used to request themā¦
Iāll add a hardcoded list of services to the plugin in the next update thatāll fix it shoulda been added before but I forgot thanks for the reminder
Going to do a quick update to the plugin in the next week to fix some long standing bugs that keep occurring.
Feel free to post any bugs below and Iāll look into them.
On a good note its been over a year with no roblox changes breaking this plugin.
Ok Iāve done this Iām going to keep testing it out for a few more days to make sure I havenāt missed anything then Iāll update the plugin.
The main goals for this change are to:
- 1: Stop plugin from basing autocomplete on an existing service that is not at the top of the script.
- 2: Lower risk of auto complete accidently breaking your existing code (mainly caused by the case above)
- 3: Add in a table of known services because if you didnāt know already some services only appear once you use :GetService() on them a good example of this is āTeamsā or āMemoryStoreServiceā
But give a few days to make sure no side effects appear as a result.