Brendan Zabarauskas
c7c0da316f
Add more documentation to the diagnostics
2019-06-01 22:35:37 +10:00
Brendan Zabarauskas
10d29b09c0
Document emitter config
2019-05-30 22:13:28 +10:00
Brendan Zabarauskas
cc24e47f39
Remove one intermediate variable
2019-05-30 22:08:56 +10:00
Brendan Zabarauskas
b018e1f1ce
Improve doc comments
2019-05-30 22:02:22 +10:00
Brendan Zabarauskas
5e242beade
Fix spelling
2019-05-30 22:00:41 +10:00
Brendan Zabarauskas
b23ef45954
Make diagnostics look closer to what the LSP expects
2019-05-30 21:54:07 +10:00
Brendan Zabarauskas
40d08b6a74
Split up message body into components
2019-05-30 20:45:40 +10:00
Brendan Zabarauskas
89ae72a391
Add Header struct
2019-05-30 20:45:40 +10:00
Brendan Zabarauskas
67940dcc31
Use impl trait in some places
2019-05-30 18:30:36 +10:00
Brendan Zabarauskas
b0ec5e20db
Add color configuration
2019-05-30 13:51:29 +10:00
Brendan Zabarauskas
41ceefa483
Use impl trait
2019-05-30 13:38:08 +10:00
Brendan Zabarauskas
555f46a024
Clean up identifiers and comments
2019-05-30 13:38:08 +10:00
Brendan Zabarauskas
c94e48e17f
Use better box drawing characters
2019-05-30 13:35:15 +10:00
Brendan Zabarauskas
fe90a877a5
Color file name prefix
2019-05-30 12:04:37 +10:00
Brendan Zabarauskas
511b1f0660
More formatting cleanups
2019-05-30 12:04:17 +10:00
Brendan Zabarauskas
f1c3055d3e
Group formatting resets more consistently
2019-05-30 11:55:39 +10:00
Brendan Zabarauskas
63ad2c43d3
Consistently use write macro
...
This seems to clean things up instead of using a confusing mixture of calls to `write!` and `writeln!`.
2019-05-30 11:48:24 +10:00
Brendan Zabarauskas
a3117d49b1
Clean up color handling
2019-05-30 11:43:43 +10:00
Brendan Zabarauskas
dbf7941742
Use proper box drawing characters
2019-05-29 15:35:34 +10:00
Brendan Zabarauskas
fba94814f4
Correctly pad line numbers
2019-05-29 13:35:48 +10:00
Brendan Zabarauskas
cf0b8e40be
Update dependencies
2019-05-29 13:27:19 +10:00
Brendan Zabarauskas
5cee79b9d8
Modernise crate imports
2019-05-29 13:27:19 +10:00
Brendan Zabarauskas
d85aad774c
Clean up color handling some more
2019-05-29 12:59:36 +10:00
Brendan Zabarauskas
934b5d0cf3
Move emittter-specific stuff into emitter module
2019-05-29 12:34:11 +10:00
Brendan Zabarauskas
3a74d8fe71
Add some comments to make emitter clearer
2019-05-29 12:33:29 +10:00
Brendan Zabarauskas
13ac7ae5b9
Clean up multiline snippet printing
2019-05-29 12:33:22 +10:00
Brendan Zabarauskas
90763c772d
Remove Pad type in favour of fmt-native padding
2019-05-29 12:33:22 +10:00
Brendan Zabarauskas
132ede3775
Clean up blue handling
2019-05-29 12:33:22 +10:00
Brendan Zabarauskas
7385a892c2
Simplify labels
2019-05-29 11:39:51 +10:00
Markus Westerlind
6625821c64
Version 0.3
2019-04-30 18:53:39 +02:00
Markus Westerlind
60bb6ac950
Update the edition to 2018
2019-04-30 08:45:33 +02:00
Markus Westerlind
daf43fee82
Run cargo fix --edition --all
2019-04-30 08:43:28 +02:00
Fietz, Jaro
dc909ed02d
Make CodeMap generic over AsRef<str>
2019-03-28 12:14:53 +01:00
Louis Pilfold
fcd250a390
More space in emit output
2019-02-26 10:37:02 +00:00
Brendan Zabarauskas
b5348a0055
Bump version to 0.2.1
2019-02-26 21:13:47 +11:00
Louis Pilfold
ed482b93a3
Support multi-line diagnostics
...
Closes https://github.com/brendanzab/codespan/issues/23
2019-02-24 20:18:57 +00:00
Brendan Zabarauskas
ea3dcc66a1
Run rustfmt
2018-11-29 12:35:21 +11:00
Brendan Zabarauskas
98477a5462
Bump cargo version
2018-10-11 22:49:36 +11:00
Brendan Zabarauskas
ee8c54ed70
Add publish script
...
Inspired by the one in LALRPOP!
d673c84fb7/publish.sh
2018-10-11 22:49:36 +11:00
dependabot[bot]
401bc98144
Update termcolor requirement from 0.3.4 to 1.0.4
...
Updates the requirements on [termcolor](https://github.com/BurntSushi/termcolor ) to permit the latest version.
- [Release notes](https://github.com/BurntSushi/termcolor/releases )
- [Commits](https://github.com/BurntSushi/termcolor/commits/1.0.4 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-10-11 06:02:47 +00:00
Michael Bryan
1cedf12c44
Added serde support to codespan-reporting
2018-08-21 19:14:57 +08:00
Brendan Zabarauskas
e79c130ff6
Bump codespan and codespan-reporting versions
2018-08-21 08:15:25 +10:00
Michael Bryan
be736c1471
Added heapsize derives to the codespan-reporting crate
2018-08-20 21:02:32 +08:00
Gary Tierney
bff170e14e
Update emitter example to use a diagnostic code
2018-06-30 17:27:24 +01:00
Gary Tierney
de6033108a
Add support for emitting optional error codes
...
Adds an optional `code` field to Diagnostic and a new `with_code()` function.
The given code will be appended to the severity in square brackets in the same
style as rustc.
2018-06-29 02:00:11 +01:00
Brendan Zabarauskas
e8e2c75618
Assorted cleanups to codespan-lsp
2018-05-04 16:49:03 +10:00
Markus Westerlind
bd3a7c19f9
Version 0.1.3 of codespan-reporting
2018-04-18 22:33:42 +02:00
Brendan Zabarauskas
f688a76e6e
Fix structopt application naming
2018-04-18 22:13:46 +10:00
Brendan Zabarauskas
f7ad9d7a58
Exclude screenshots from crate
2018-04-18 22:06:46 +10:00
Brendan Zabarauskas
165b238d74
Rework READMEs
...
This makes the root README describe the codespan crate.
2018-04-18 15:56:26 +10:00