microsoft / inshellisense

IDE style command line auto complete
MIT License
8.21k stars 179 forks source link

feat: Add support for local autocomplete specs path configuration #223

Closed alanhe421 closed 2 months ago

alanhe421 commented 2 months ago

A new configuration option 'specs.path' has been added to allow users to specify a local directory for autocomplete specs. Function loadLocalSpecsSet introduced to load local autocomplete specs from the specified path. The loading of local specs has been integrated into the startup routine.

fixed https://github.com/microsoft/inshellisense/issues/83

@cpendery I realized a version of loading any path, local complementary specification. Do you see OK.

If it's ok, I'll submit the corresponding UT test again. Thanks.

specs

image

is-config

image

usage

image
alanhe421 commented 2 months ago

@cpendery

Please help to check again if it's okay. I have made the modifications you mentioned.

alanhe421 commented 2 months ago

LGTM!

So can it be merge?

Since the load-completion logic is consistent with the previous one, I don't see the need to add more tests at this point, and I'm fine with that. @cpendery

thanks.

cpendery commented 2 months ago

LGTM!

So can it be merge?

Since the load-completion logic is consistent with the previous one, I don't see the need to add more tests at this point, and I'm fine with that. @cpendery

thanks.

Sorry I forgot to merge it after I approved it. Just merged it