@@ -4,13 +4,13 @@ import * as rpc from 'vscode-jsonrpc';
4
4
import * as path from 'path' ;
5
5
import * as atomIde from 'atom-ide' ;
6
6
import * as linter from 'atom-linter' ;
7
- import * as stream from 'stream' ;
8
7
import { Socket } from 'net' ;
9
- import { EventEmitter } from 'events' ;
10
8
import { ConsoleLogger , NullLogger , Logger } from './logger' ;
11
- import { ServerManager , ActiveServer } from './server-manager.js' ;
9
+ import { LanguageServerProcess , ServerManager , ActiveServer } from './server-manager.js' ;
12
10
import Convert from './convert.js' ;
13
11
12
+ export { LanguageServerProcess } ;
13
+
14
14
import {
15
15
AutocompleteDidInsert ,
16
16
AutocompleteProvider ,
@@ -39,21 +39,6 @@ import SignatureHelpAdapter from './adapters/signature-help-adapter';
39
39
40
40
export type ConnectionType = 'stdio' | 'socket' | 'ipc' ;
41
41
42
- // Public: Defines the minimum surface area for an object that resembles a
43
- // ChildProcess. This is used so that language packages with alternative
44
- // language server process hosting strategies can return something compatible
45
- // with AutoLanguageClient.startServerProcess.
46
- export interface LanguageServerProcess extends EventEmitter {
47
- stdin : stream . Writable ;
48
- stdout : stream . Readable ;
49
- stderr : stream . Readable ;
50
- pid : number ;
51
-
52
- kill ( signal ?: string ) : void ;
53
- on ( event : 'error' , listener : ( err : Error ) => void ) : this;
54
- on ( event : 'exit' , listener : ( code : number , signal : string ) => void ) : this;
55
- }
56
-
57
42
// Public: AutoLanguageClient provides a simple way to have all the supported
58
43
// Atom-IDE services wired up entirely for you by just subclassing it and
59
44
// implementing startServerProcess/getGrammarScopes/getLanguageName and
0 commit comments