Skip to content

Commit

Permalink
W103-015 Add tests that range formats the whole file
Browse files Browse the repository at this point in the history
fix #1073
fix #1074
fix #1086
  • Loading branch information
joaopsazevedo authored and godunko committed Jan 24, 2023
1 parent 0cd9669 commit 83015b2
Show file tree
Hide file tree
Showing 2 changed files with 260 additions and 2 deletions.
Expand Up @@ -18,6 +18,49 @@
"id": 1,
"method": "initialize",
"params": {
"processId": 31570,
"capabilities": {
"textDocument": {
"synchronization": {
"dynamicRegistration": false,
"willSave": true,
"willSaveWaitUntil": true,
"didSave": true
},
"completion": {},
"definition": {},
"hover": {},
"formatting": {
"dynamicRegistration": true
},
"implementation": {},
"codeLens": {},
"typeDefinition": {},
"selectionRange": {},
"documentHighlight": {},
"documentSymbol": {
"hierarchicalDocumentSymbolSupport": true
},
"references": {},
"rangeFormatting": {},
"onTypeFormatting": {},
"declaration": {},
"foldingRange": {
"lineFoldingOnly": true
},
"colorProvider": {}
},
"workspace": {
"applyEdit": true,
"executeCommand": {},
"didChangeWatchedFiles": {},
"workspaceEdit": {},
"didChangeConfiguration": {},
"semanticTokens": {
"refreshSupport": true
}
}
},
"rootUri": "$URI{.}"
}
},
Expand All @@ -27,7 +70,8 @@
"id": 1,
"result": {
"capabilities": {
"documentFormattingProvider": true
"documentFormattingProvider": true,
"documentRangeFormattingProvider": true
}
}
}
Expand Down
216 changes: 215 additions & 1 deletion testsuite/ada_lsp/range_formatting/W103-015_GitHub-1086/test.json
Expand Up @@ -18,7 +18,217 @@
"id": 1,
"method": "initialize",
"params": {
"rootUri": "$URI{.}"
"processId": 2073,
"rootUri": "$URI{.}",
"initializationOptions": {},
"capabilities": {
"workspace": {
"applyEdit": true,
"executeCommand": {
"dynamicRegistration": false
},
"workspaceEdit": {
"documentChanges": true
},
"didChangeWatchedFiles": {
"dynamicRegistration": true
},
"symbol": {
"dynamicRegistration": false
},
"configuration": true,
"semanticTokens": {
"refreshSupport": false
},
"workspaceFolders": true,
"progress": true
},
"textDocument": {
"synchronization": {
"dynamicRegistration": false,
"willSave": true,
"willSaveWaitUntil": true,
"didSave": true
},
"completion": {
"dynamicRegistration": false,
"completionItem": {
"snippetSupport": false,
"deprecatedSupport": true,
"tagSupport": {
"valueSet": [
1
]
}
},
"contextSupport": true
},
"hover": {
"dynamicRegistration": false,
"contentFormat": [
"markdown",
"plaintext"
]
},
"signatureHelp": {
"dynamicRegistration": false,
"signatureInformation": {
"parameterInformation": {
"labelOffsetSupport": true
},
"activeParameterSupport": true
}
},
"references": {
"dynamicRegistration": false
},
"definition": {
"dynamicRegistration": false,
"linkSupport": true
},
"declaration": {
"dynamicRegistration": false,
"linkSupport": true
},
"implementation": {
"dynamicRegistration": false,
"linkSupport": true
},
"typeDefinition": {
"dynamicRegistration": false,
"linkSupport": true
},
"documentSymbol": {
"dynamicRegistration": false,
"hierarchicalDocumentSymbolSupport": true,
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
}
},
"documentHighlight": {
"dynamicRegistration": false
},
"codeAction": {
"dynamicRegistration": false,
"codeActionLiteralSupport": {
"codeActionKind": {
"valueSet": [
"quickfix",
"refactor",
"refactor.extract",
"refactor.inline",
"refactor.rewrite",
"source",
"source.organizeImports"
]
}
},
"isPreferredSupport": true
},
"formatting": {
"dynamicRegistration": false
},
"rangeFormatting": {
"dynamicRegistration": false
},
"rename": {
"dynamicRegistration": false
},
"publishDiagnostics": {
"relatedInformation": false,
"codeDescriptionSupport": false,
"tagSupport": {
"valueSet": [
1,
2
]
}
},
"semanticTokens": {
"dynamicRegistration": false,
"requests": {
"full": true,
"range": true
},
"tokenTypes": [
"comment",
"keyword",
"string",
"number",
"regexp",
"operator",
"namespace",
"type",
"struct",
"class",
"interface",
"enum",
"typeParameter",
"function",
"method",
"member",
"field",
"property",
"event",
"macro",
"variable",
"parameter",
"label",
"enumConstant",
"enumMember",
"dependent",
"concept"
],
"tokenModifiers": [
"declaration",
"definition",
"implementation",
"readonly",
"static",
"abstract",
"async",
"modification",
"deprecated",
"documentation",
"defaultLibrary"
],
"formats": [
"relative"
],
"overlappingTokenSupport": false,
"multilineTokenSupport": true
}
},
"experimental": {}
}
>>>>>>> W103-015 Add tests that range formats the whole file
}
},
"wait": [
Expand All @@ -27,6 +237,10 @@
"id": 1,
"result": {
"capabilities": {
<<<<<<< HEAD
=======
"textDocumentSync": 2,
>>>>>>> W103-015 Add tests that range formats the whole file
"documentFormattingProvider": true
}
}
Expand Down

0 comments on commit 83015b2

Please sign in to comment.