isGlobalCompletion

Not true for all global completions. This will be true if the enclosing scope matches a few syntax kinds. See isSnippetScope.