-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote branch 'origin/master' into edge
- Loading branch information
Showing
13 changed files
with
1,309 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
project Default is | ||
end Default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
with P; | ||
|
||
procedure Main | ||
is | ||
Foo : P.Incomplete; | ||
Bar : P.Incomplete_2; | ||
begin | ||
null; | ||
end Main; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package P is | ||
type Incomplete; | ||
type Incomplete_2; | ||
|
||
type Something is record | ||
X : Incomplete; | ||
end record; | ||
|
||
type Incomplete is record | ||
Y : Integer; | ||
end record; | ||
|
||
private | ||
type Incomplete_2 is record | ||
Z : Integer; | ||
end record; | ||
end P; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,285 @@ | ||
[ | ||
{ | ||
"comment": [ | ||
"This test checks that the textDocument/hover request works fine ", | ||
"on predefined entities (pragmas, aspects, attributes)." | ||
] | ||
}, | ||
{ | ||
"start": { | ||
"cmd": ["${ALS}"] | ||
} | ||
}, | ||
{ | ||
"send": { | ||
"request": { | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"method": "initialize", | ||
"params": { | ||
"processId": 2357134, | ||
"rootUri": "$URI{.}", | ||
"capabilities": { | ||
"workspace": { | ||
"applyEdit": true, | ||
"workspaceEdit": { | ||
"documentChanges": true, | ||
"resourceOperations": ["rename"] | ||
} | ||
}, | ||
"textDocument": { | ||
"synchronization": {}, | ||
"completion": { | ||
"dynamicRegistration": true, | ||
"completionItem": { | ||
"snippetSupport": false, | ||
"documentationFormat": ["plaintext", "markdown"], | ||
"resolveSupport": { | ||
"properties": ["detail", "documentation"] | ||
} | ||
} | ||
}, | ||
"hover": {}, | ||
"signatureHelp": {}, | ||
"declaration": {}, | ||
"definition": {}, | ||
"typeDefinition": {}, | ||
"implementation": {}, | ||
"documentSymbol": { | ||
"hierarchicalDocumentSymbolSupport": true | ||
}, | ||
"codeAction": { | ||
"codeActionLiteralSupport": { | ||
"codeActionKind": { | ||
"valueSet": [ | ||
"", | ||
"quickfix", | ||
"refactor", | ||
"refactor.extract", | ||
"refactor.inline", | ||
"refactor.rewrite", | ||
"source", | ||
"source.organizeImports" | ||
] | ||
} | ||
} | ||
}, | ||
"formatting": { | ||
"dynamicRegistration": false | ||
}, | ||
"rangeFormatting": { | ||
"dynamicRegistration": false | ||
}, | ||
"onTypeFormatting": { | ||
"dynamicRegistration": false | ||
}, | ||
"publishDiagnostics": { | ||
"relatedInformation": true | ||
}, | ||
"foldingRange": { | ||
"lineFoldingOnly": true | ||
} | ||
}, | ||
"experimental": { | ||
"advanced_refactorings": ["add_parameter"] | ||
} | ||
} | ||
} | ||
}, | ||
"wait": [ | ||
{ | ||
"id": 1, | ||
"result": { | ||
"capabilities": { | ||
"textDocumentSync": 2, | ||
"completionProvider": { | ||
"triggerCharacters": [".", ",", "'", "("], | ||
"resolveProvider": true | ||
}, | ||
"hoverProvider": true, | ||
"signatureHelpProvider": { | ||
"triggerCharacters": [",", "("], | ||
"retriggerCharacters": ["\b"] | ||
}, | ||
"declarationProvider": true, | ||
"definitionProvider": true, | ||
"typeDefinitionProvider": true, | ||
"implementationProvider": true, | ||
"referencesProvider": true, | ||
"documentHighlightProvider": true, | ||
"documentSymbolProvider": true, | ||
"codeActionProvider": { | ||
"workDoneProgress": false, | ||
"codeActionKinds": ["quickfix", "refactor.rewrite"], | ||
"resolveProvider": false | ||
}, | ||
"workspaceSymbolProvider": true, | ||
"documentFormattingProvider": true, | ||
"documentRangeFormattingProvider": true, | ||
"documentOnTypeFormattingProvider": { | ||
"firstTriggerCharacter": "\n" | ||
}, | ||
"renameProvider": { | ||
"prepareProvider": true | ||
}, | ||
"foldingRangeProvider": true, | ||
"executeCommandProvider": { | ||
"commands": ["<HAS>", "als-other-file"] | ||
}, | ||
"callHierarchyProvider": true, | ||
"semanticTokensProvider": { | ||
"legend": { | ||
"tokenTypes": [], | ||
"tokenModifiers": [] | ||
}, | ||
"range": true, | ||
"full": true | ||
}, | ||
"workspace": {}, | ||
"alsReferenceKinds": ["<HAS>", "reference"] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"send": { | ||
"request": { | ||
"jsonrpc": "2.0", | ||
"method": "initialized" | ||
}, | ||
"wait": [] | ||
} | ||
}, | ||
{ | ||
"send": { | ||
"request": { | ||
"jsonrpc": "2.0", | ||
"method": "workspace/didChangeConfiguration", | ||
"params": { | ||
"settings": { | ||
"ada": { | ||
"scenarioVariables": {}, | ||
"defaultCharset": "ISO-8859-1", | ||
"enableDiagnostics": false, | ||
"followSymlinks": false, | ||
"documentationStyle": "gnat", | ||
"namedNotationThreshold": 3, | ||
"foldComments": false | ||
} | ||
} | ||
} | ||
}, | ||
"wait": [] | ||
} | ||
}, | ||
{ | ||
"send": { | ||
"request": { | ||
"jsonrpc": "2.0", | ||
"method": "textDocument/didOpen", | ||
"params": { | ||
"textDocument": { | ||
"uri": "$URI{main.adb}", | ||
"languageId": "Ada", | ||
"version": 0, | ||
"text": "with P;\n\nprocedure Main\nis\n Foo : P.Incomplete;\n Bar : P.Incomplete_2;\nbegin\n null;\nend Main;" | ||
} | ||
} | ||
}, | ||
"wait": [] | ||
} | ||
}, | ||
{ | ||
"send": { | ||
"request": { | ||
"jsonrpc": "2.0", | ||
"id": 4, | ||
"method": "textDocument/hover", | ||
"params": { | ||
"textDocument": { | ||
"uri": "$URI{main.adb}" | ||
}, | ||
"position": { | ||
"line": 4, | ||
"character": 14 | ||
} | ||
} | ||
}, | ||
"wait": [ | ||
{ | ||
"id": 4, | ||
"result": { | ||
"contents": [ | ||
{ | ||
"language": "ada", | ||
"value": "type Incomplete is record\n Y : Integer;\nend record;" | ||
}, | ||
"at p.ads (2:4)" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"send": { | ||
"request": { | ||
"jsonrpc": "2.0", | ||
"id": 5, | ||
"method": "textDocument/hover", | ||
"params": { | ||
"textDocument": { | ||
"uri": "$URI{main.adb}" | ||
}, | ||
"position": { | ||
"line": 5, | ||
"character": 14 | ||
} | ||
} | ||
}, | ||
"wait": [ | ||
{ | ||
"id": 5, | ||
"result": null | ||
} | ||
] | ||
} | ||
}, | ||
|
||
{ | ||
"send": { | ||
"request": { | ||
"jsonrpc": "2.0", | ||
"method": "textDocument/didClose", | ||
"params": { | ||
"textDocument": { | ||
"uri": "$URI{main.adb}" | ||
} | ||
} | ||
}, | ||
"wait": [] | ||
} | ||
}, | ||
{ | ||
"send": { | ||
"request": { | ||
"jsonrpc": "2.0", | ||
"id": 7, | ||
"method": "shutdown" | ||
}, | ||
"wait": [ | ||
{ | ||
"id": 7, | ||
"result": null | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"stop": { | ||
"exit_code": 0 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
title: 'hover.predefined_entities' |
Oops, something went wrong.