File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 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"
44import Convert from "../convert"
55
66/** Public: Adapts the window/showDocument command to Atom's text editors or external programs. */
7- export default class ShowDocumentAdapter {
7+ const ShowDocumentAdapter = {
88 /** {@inheritDoc attach } */
9- public attach ( arg : Parameters < typeof attach > [ 0 ] ) : ReturnType < typeof attach > {
10- attach ( arg )
11- }
9+ attach,
1210 /** {@inheritDoc showDocument } */
13- public onShowDocument ( ...args : Parameters < typeof showDocument > ) : ReturnType < typeof showDocument > {
14- return showDocument ( ...args )
15- }
11+ showDocument,
1612}
13+ // for consistency with other adapters
14+ export default ShowDocumentAdapter
1715
1816/**
1917 * Public: Attach to a {LanguageClientConnection} to recieve requests to show documents.
You can’t perform that action at this time.
0 commit comments