1 | import type * as atomIde from "atom-ide-base";
|
2 | import * as linter from "atom/linter";
|
3 | import LinterPushV2Adapter from "./linter-push-v2-adapter";
|
4 | import IdeDiagnosticAdapter from "./diagnostic-adapter";
|
5 | import { CodeAction, Command, LanguageClientConnection, ServerCapabilities } from "../languageclient";
|
6 | import { Range, TextEditor } from "atom";
|
7 | export default class CodeActionAdapter {
|
8 |
|
9 | static canAdapt(serverCapabilities: ServerCapabilities): boolean;
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | static getCodeActions(connection: LanguageClientConnection, serverCapabilities: ServerCapabilities, linterAdapter: LinterPushV2Adapter | IdeDiagnosticAdapter | undefined, editor: TextEditor, range: Range, linterMessages: linter.Message[] | atomIde.Diagnostic[], filterActions?: (actions: (Command | CodeAction)[] | null) => (Command | CodeAction)[] | null, onApply?: (action: Command | CodeAction) => Promise<boolean>): Promise<atomIde.CodeAction[]>;
|
23 | private static createCodeAction;
|
24 | private static applyWorkspaceEdit;
|
25 | private static executeCommand;
|
26 | }
|