[mod] surface client
This commit is contained in:
parent
5f094cdd95
commit
5c859d014f
9 changed files with 37 additions and 19 deletions
|
|
@ -28,12 +28,11 @@ function simpleWebSocketTransport(uri) {
|
|||
|
||||
});
|
||||
};
|
||||
|
||||
function lsp(transport,fileId){
|
||||
let client = new LSPClient().connect(transport);
|
||||
return languageServerSupport(client, fileId);
|
||||
function client(transport){
|
||||
return new LSPClient().connect(transport)
|
||||
};
|
||||
|
||||
|
||||
const baseExts = [
|
||||
lineNumbers(),
|
||||
highlightActiveLineGutter(),
|
||||
|
|
@ -82,4 +81,4 @@ function createEditorView(state, parent) {
|
|||
return new EditorView({ state, parent });
|
||||
}
|
||||
|
||||
export { createEditorState, createEditorView, openSearchPanel,openLintPanel, languageServerSupport, baseExts ,lsp, simpleWebSocketTransport};
|
||||
export { createEditorState, createEditorView, openSearchPanel,openLintPanel, languageServerSupport, baseExts ,client, simpleWebSocketTransport};
|
||||
Loading…
Add table
Add a link
Reference in a new issue