Updated code block UI to use CodeCompletionServices

In this PR, I have updated the `CodeBlockEditor` UI class to use the new `CodeCompletionServices` APIs for code completion 

@Benglin PTAL.
This code has moved to `CodeCompletionServices`