import { createProtocolConnection , BrowserMessageReader , BrowserMessageWriter } from '../main' ; import { CompletionRequest } from '../../common/api' ; const reader = new BrowserMessageReader ( self ) ; const writer = new BrowserMessageWriter ( self ) ; const connection = createProtocolConnection ( reader , writer ) ; connection . onRequest ( CompletionRequest . type , ( _params ) => { return [ ] ; } ) ; connection . listen ( ) ;