Skip to content

Commit e6e2e94

Browse files
committed
update
1 parent 3acfdfe commit e6e2e94

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/lsap/capability/definition.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ async def __call__(self, req: DefinitionRequest) -> DefinitionResponse | None:
4848
locations = await ensure_capability(
4949
self.client,
5050
WithRequestDeclaration,
51-
error="To find declarations, you can: "
52-
"1) Use 'definition' mode (most language servers treat them similarly); "
53-
"2) For C/C++, check corresponding header files manually.",
51+
error="""To find declarations, you can:
52+
1) Use 'definition' mode (most language servers treat them similarly);
53+
2) For C/C++, check corresponding header files manually.""",
5454
).request_declaration_locations(file_path, lsp_pos)
5555
case "type_definition":
5656
locations = await ensure_capability(
5757
self.client,
5858
WithRequestTypeDefinition,
59-
error="To find type definitions, you can: "
60-
"1) Use 'definition' on the type name itself if visible; "
61-
"2) Use 'hover' to see the type name and then search for it.",
59+
error="""To find type definitions, you can:
60+
1) Use 'definition' on the type name itself if visible;
61+
2) Use 'hover' to see the type name and then search for it.""",
6262
).request_type_definition_locations(file_path, lsp_pos)
6363

6464
if not locations:

src/lsap/capability/outline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
from lsap.schema.models import Position, Range, SymbolDetailInfo, SymbolKind
1414
from lsap.schema.outline import OutlineRequest, OutlineResponse
15-
from lsap.utils.capability import ensure_capability
1615
from lsap.schema.types import SymbolPath
16+
from lsap.utils.capability import ensure_capability
1717
from lsap.utils.symbol import iter_symbols
1818

1919
from .abc import Capability

src/lsap/utils/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def read(self, read_range: LSPRange) -> Snippet | None:
143143
dedented_lines = textwrap.dedent("".join(raw_lines)).splitlines(keepends=True)
144144

145145
numbered_lines = [
146-
f"{start_line + i + 1:05d}| {line}" for i, line in enumerate(dedented_lines)
146+
f"{start_line + i + 1}| {line}" for i, line in enumerate(dedented_lines)
147147
]
148148
content = "".join(numbered_lines)
149149

0 commit comments

Comments
 (0)