I thought that this is valid javascript since it ran without problems but after figuring it out by accident and looking up the syntax it turns out that it isn’t. It should be
try {
// something
} catch (err) {
// something
}
even when you don’t use the error in the catch block.
If this isn’t the case for you, please post your code that stopped the auto completion from working.