Skip to content

Commit 40e9d92

Browse files
committed
feat(langserver): all refactorings and quickfixes are now previewable
when you select a quickfix or refactoring with <kbd>CONTROL</kbd>+<kbd>RETURN</kbd> a refactor preview window is shown.
1 parent 3cb63ac commit 40e9d92

File tree

4 files changed

+360
-244
lines changed

4 files changed

+360
-244
lines changed

packages/language_server/src/robotcode/language_server/robotframework/parts/code_action_helper_mixin.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
from __future__ import annotations
22

33
import ast
4+
from dataclasses import dataclass
45
from typing import List, Optional, Tuple
56

67
from robotcode.core.lsp.types import (
8+
DocumentUri,
79
Position,
810
Range,
911
)
@@ -14,6 +16,16 @@
1416
)
1517
from robotcode.language_server.robotframework.utils.async_ast import Visitor
1618

19+
SHOW_DOCUMENT_SELECT_AND_RENAME_COMMAND = "_robotcode.codeActionShowDocumentSelectAndRename"
20+
21+
22+
@dataclass
23+
class CodeActionDataBase:
24+
type: str
25+
method: str
26+
document_uri: DocumentUri
27+
range: Range
28+
1729

1830
class FindSectionsVisitor(Visitor):
1931
def __init__(self) -> None:

0 commit comments

Comments
 (0)