That defines an anonymous facet which is then never accessed again, so it won’t have any effect, indeed.
You can use something like EditorState.languageData.of(() => ({autocomplete: myCompletions})) as an extension to add language data for all languages. Or use the override option to autocompletion().