-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include diagnostics in snapshot output (#226)
Co-authored-by: Matthew Nitschke <[email protected]> Co-authored-by: Varun Gandhi <[email protected]>
- Loading branch information
1 parent
67e7820
commit a0147a7
Showing
16 changed files
with
109 additions
and
33 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 @@ | ||
definition deprecatedMethod. | ||
reference deprecatedMethod. |
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
11 changes: 11 additions & 0 deletions
11
cmd/scip/tests/snapshots/output/diagnostics/diagnostics.repro
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,11 @@ | ||
definition deprecatedMethod. | ||
# ^^^^^^^^^^^^^^^^^ definition diagnostics.repro/deprecatedMethod. | ||
# documentation | ||
# > signature of deprecatedMethod. | ||
# diagnostic Warning: | ||
# > deprecated identifier | ||
reference deprecatedMethod. | ||
# ^^^^^^^^^^^^^^^^^ reference diagnostics.repro/deprecatedMethod. | ||
# diagnostic Warning: | ||
# > deprecated identifier | ||
|
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,21 @@ | ||
{"id":1,"version":"0.4.3","projectRoot":"file:/root","positionEncoding":"utf-8","toolInfo":{"name":"reprolang","version":"1.0.0"},"type":"vertex","label":"metaData"} | ||
{"id":2,"type":"vertex","label":"definitionResult"} | ||
{"id":3,"type":"vertex","label":"resultSet"} | ||
{"id":4,"type":"vertex","label":"referenceResult"} | ||
{"id":5,"type":"vertex","label":"hoverResult","result":{"contents":{"kind":"markdown","value":"signature of deprecatedMethod."}}} | ||
{"id":6,"type":"edge","label":"textDocument/definition","inV":2,"outV":3} | ||
{"id":7,"type":"edge","label":"textDocument/references","inV":4,"outV":3} | ||
{"id":8,"type":"edge","label":"textDocument/hover","inV":5,"outV":3} | ||
{"id":9,"type":"vertex","label":"moniker","identifier":"reprolang repro_manager diagnostics 1.0.0 diagnostics.repro/deprecatedMethod.","kind":"export","scheme":"reprolang"} | ||
{"id":10,"type":"edge","label":"moniker","inV":9,"outV":3} | ||
{"id":11,"name":"diagnostics","version":"1.0.0","manager":"repro_manager","type":"vertex","label":"packageInformation"} | ||
{"id":12,"type":"edge","label":"packageInformation","inV":11,"outV":9} | ||
{"id":13,"type":"vertex","label":"document","uri":"file:/root/diagnostics.repro"} | ||
{"id":14,"type":"vertex","label":"range","start":{"line":0,"character":11},"end":{"line":0,"character":28}} | ||
{"id":15,"type":"edge","label":"next","inV":3,"outV":14} | ||
{"id":16,"type":"edge","label":"item","inVs":[14],"outV":2,"document":13} | ||
{"id":17,"type":"edge","label":"item","inVs":[14],"outV":4,"document":13} | ||
{"id":18,"type":"vertex","label":"range","start":{"line":1,"character":10},"end":{"line":1,"character":27}} | ||
{"id":19,"type":"edge","label":"next","inV":3,"outV":18} | ||
{"id":20,"type":"edge","label":"item","inVs":[18],"outV":4,"document":13} | ||
{"id":21,"type":"edge","label":"contains","inVs":[14,18],"outV":13} |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
definition readFileSync. | ||
# ^^^^^^^^^^^^^ definition duplicate.repro/readFileSync. | ||
# documentation signature of readFileSync. | ||
# documentation | ||
# > signature of readFileSync. | ||
definition readFileSync. | ||
# ^^^^^^^^^^^^^ definition duplicate.repro/readFileSync. | ||
# documentation signature of readFileSync. | ||
# documentation | ||
# > signature of readFileSync. | ||
|
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
3 changes: 2 additions & 1 deletion
3
cmd/scip/tests/snapshots/output/implementation-cross-repo/bird.repro
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
# Test how to implement a symbol from an external workspace. | ||
definition bird# implements global implementation animal.repro/animal# | ||
# ^^^^^ definition bird.repro/bird# | ||
# documentation signature of bird# | ||
# documentation | ||
# > signature of bird# | ||
# relationship implementation animal.repro/animal# implementation | ||
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference implementation animal.repro/animal# | ||
|
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
# Test how to implement a symbol within the same workspace. | ||
definition animal# | ||
# ^^^^^^^ definition animal.repro/animal# | ||
# documentation signature of animal# | ||
# documentation | ||
# > signature of animal# | ||
definition dog# implements animal# | ||
# ^^^^ definition animal.repro/dog# | ||
# documentation signature of dog# | ||
# documentation | ||
# > signature of dog# | ||
# relationship animal.repro/animal# implementation | ||
# ^^^^^^^ reference animal.repro/animal# | ||
definition cat# implements animal# | ||
# ^^^^ definition animal.repro/cat# | ||
# documentation signature of cat# | ||
# documentation | ||
# > signature of cat# | ||
# relationship animal.repro/animal# implementation | ||
# ^^^^^^^ reference animal.repro/animal# | ||
|
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
6 changes: 4 additions & 2 deletions
6
cmd/scip/tests/snapshots/output/relationships/defined_by.repro
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
6 changes: 4 additions & 2 deletions
6
cmd/scip/tests/snapshots/output/relationships/references.repro
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
definition local1 | ||
# ^^^^^^ definition local 1 | ||
# documentation signature of local1 | ||
# documentation | ||
# > signature of local1 | ||
definition local2 references local1 | ||
# ^^^^^^ definition local 2 | ||
# documentation signature of local2 | ||
# documentation | ||
# > signature of local2 | ||
# relationship local 1 reference | ||
# ^^^^^^ reference local 1 | ||
|
6 changes: 4 additions & 2 deletions
6
cmd/scip/tests/snapshots/output/relationships/type_defines.repro
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
definition local1 | ||
# ^^^^^^ definition local 1 | ||
# documentation signature of local1 | ||
# documentation | ||
# > signature of local1 | ||
definition local2 type_defines local1 | ||
# ^^^^^^ definition local 2 | ||
# documentation signature of local2 | ||
# documentation | ||
# > signature of local2 | ||
# relationship local 1 type_definition | ||
# ^^^^^^ reference local 1 | ||
|