File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,14 @@ import { TextEditor } from "atom"
4
4
import Convert from "../convert"
5
5
6
6
/** Public: Adapts the window/showDocument command to Atom's text editors or external programs. */
7
- export default class ShowDocumentAdapter {
7
+ const ShowDocumentAdapter = {
8
8
/** {@inheritDoc attach } */
9
- public attach ( arg : Parameters < typeof attach > [ 0 ] ) : ReturnType < typeof attach > {
10
- attach ( arg )
11
- }
9
+ attach,
12
10
/** {@inheritDoc showDocument } */
13
- public onShowDocument ( ...args : Parameters < typeof showDocument > ) : ReturnType < typeof showDocument > {
14
- return showDocument ( ...args )
15
- }
11
+ showDocument,
16
12
}
13
+ // for consistency with other adapters
14
+ export default ShowDocumentAdapter
17
15
18
16
/**
19
17
* Public: Attach to a {LanguageClientConnection} to recieve requests to show documents.
You can’t perform that action at this time.
0 commit comments