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.
Added comments here