Autocomplete is case sensitive
Commands like add_executable, etc, only autocomplete when you type in lowercase. As this is not a syntax requirement to use CMake, can autocomplete be case insensitive? I thought the extension was less than useful for a second because I would type 'ADD_EXECUTABLE' and it would never be found in the autocomplete list. Turns out my habit of writing CMake scripts in all caps isn't quite supported.
This is an issue for me as well. If someone wants to point me in the right direction I'd be happy to make the changes and submit at PR.
Hi, This was by design because lower case is preferred in modern cmake guidelines.
If you want to change this behavior, look at cmXxxSuggestions calls in provideCompletionItems. It lookups the currentWord, if you lowercase currentWord, the promise will be resolved.
Then you should have to modify the result to uppercase the completion item.
I think it should do the job.
Beautiful. I'll take a look and maybe add it as a workspace option. Though I totally agree that it's a best practice now, it would be great to have jt work for for those of us who have to use legacy CMake projects on occasion.