diff options
Diffstat (limited to 'support/texlab/tests/lsp/text_document/snapshots/lsp__text_document__document_symbol__enumerate_nested.snap')
-rw-r--r-- | support/texlab/tests/lsp/text_document/snapshots/lsp__text_document__document_symbol__enumerate_nested.snap | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/support/texlab/tests/lsp/text_document/snapshots/lsp__text_document__document_symbol__enumerate_nested.snap b/support/texlab/tests/lsp/text_document/snapshots/lsp__text_document__document_symbol__enumerate_nested.snap new file mode 100644 index 0000000000..8f777b6d8f --- /dev/null +++ b/support/texlab/tests/lsp/text_document/snapshots/lsp__text_document__document_symbol__enumerate_nested.snap @@ -0,0 +1,140 @@ +--- +source: tests/lsp/text_document/document_symbol.rs +expression: "find_symbols(r#\"\n%! main.tex\n\\documentclass{article}\n\n\\begin{document}\n\n\\begin{enumerate}\n \\item\\label{it:foo} Foo\n \\item\\label{it:bar} Bar\n \\item[Baz] Baz\n \\item[Qux]\\label{it:qux} Qux\n\\end{enumerate}\n\n\\end{document}\n|\n\n%! main.aux\n\\relax\n\\newlabel{it:foo}{{1}{1}}\n\\newlabel{it:qux}{{2}{1}}\"#,\n serde_json::json!({\n \"textDocument\" :\n {\n \"documentSymbol\" :\n { \"hierarchicalDocumentSymbolSupport\" : true, },\n },\n }), serde_json::Value::Null)" +--- +[ + { + "name": "Enumerate", + "kind": 10, + "deprecated": false, + "range": { + "start": { + "line": 4, + "character": 0 + }, + "end": { + "line": 9, + "character": 15 + } + }, + "selectionRange": { + "start": { + "line": 4, + "character": 0 + }, + "end": { + "line": 9, + "character": 15 + } + }, + "children": [ + { + "name": "1", + "detail": "it:foo", + "kind": 22, + "deprecated": false, + "range": { + "start": { + "line": 5, + "character": 4 + }, + "end": { + "line": 5, + "character": 27 + } + }, + "selectionRange": { + "start": { + "line": 5, + "character": 9 + }, + "end": { + "line": 5, + "character": 23 + } + }, + "children": [] + }, + { + "name": "Item", + "detail": "it:bar", + "kind": 22, + "deprecated": false, + "range": { + "start": { + "line": 6, + "character": 4 + }, + "end": { + "line": 6, + "character": 27 + } + }, + "selectionRange": { + "start": { + "line": 6, + "character": 9 + }, + "end": { + "line": 6, + "character": 23 + } + }, + "children": [] + }, + { + "name": "Baz", + "kind": 22, + "deprecated": false, + "range": { + "start": { + "line": 7, + "character": 4 + }, + "end": { + "line": 7, + "character": 18 + } + }, + "selectionRange": { + "start": { + "line": 7, + "character": 4 + }, + "end": { + "line": 7, + "character": 18 + } + }, + "children": [] + }, + { + "name": "2", + "detail": "it:qux", + "kind": 22, + "deprecated": false, + "range": { + "start": { + "line": 8, + "character": 4 + }, + "end": { + "line": 8, + "character": 32 + } + }, + "selectionRange": { + "start": { + "line": 8, + "character": 14 + }, + "end": { + "line": 8, + "character": 28 + } + }, + "children": [] + } + ] + } +] |