Commit graph

276 commits

Author SHA1 Message Date
Barry Nolte
baa97fd713
Merge branch 'terrastruct:master' into LanguageServer 2023-11-16 10:11:50 -08:00
Alexander Wang
87736b1f11
d2ir: fix glob edge with common glob 2023-11-08 15:02:09 -08:00
Barry Nolte
1c4d076812
Update d2compiler/compile.go
Co-authored-by: gavin-ts <85081687+gavin-ts@users.noreply.github.com>
2023-11-03 13:38:51 -07:00
Alexander Wang
ffe5a1fe86
compiler: fix vars crashing. Change scoping behavior 2023-11-01 12:26:17 -07:00
Alexander Wang
5c6a94a6ca
compiler: Fix compiler errors of keys in globs 2023-10-31 15:55:25 -07:00
Gavin Nishizawa
2893a48191
error using source/target-arrowhead on shape 2023-10-27 21:00:46 -07:00
Gavin Nishizawa
70b46bacd0
add no_arrowheads_in_shape compiler test 2023-10-27 21:00:16 -07:00
Michał Wieluński
448b51c345
fix invisible null constraints in sql_table
fixes #1655
2023-10-13 10:33:38 +02:00
Gavin Nishizawa
142f637b6a
add compile test 2023-10-05 13:11:03 -07:00
Gavin Nishizawa
84affc96d1
add validation for sequence diagram edges to descendant 2023-10-02 11:05:20 -07:00
Gavin Nishizawa
a8af739064
update compile test for edges to descendant from subgraph container 2023-10-02 11:05:20 -07:00
Gavin Nishizawa
2a9acd06aa
cleanup validation 2023-10-02 11:05:19 -07:00
Gavin Nishizawa
b41a9e4e96
update validation and test 2023-10-02 11:05:19 -07:00
Gavin Nishizawa
97488fe2d8
updating validation 2023-10-02 11:05:19 -07:00
Gavin Nishizawa
8947e45a81
disable validation 2023-10-02 11:05:18 -07:00
Gavin Nishizawa
c228b400b2
disable compiler validation 2023-10-02 11:05:18 -07:00
Gavin Nishizawa
17f2545e75
improve grid edge validation, messages, and test 2023-09-28 13:55:20 -07:00
Gavin Nishizawa
a43aae9d1a
update grid edge validation and test 2023-09-28 13:55:19 -07:00
Gavin Nishizawa
bb79c30fd8
updating compile edge validation 2023-09-28 13:55:19 -07:00
Gavin Nishizawa
3aed2c4110
update compile test 2023-09-28 13:55:19 -07:00
Gavin Nishizawa
ceaf2fb681
remove compile error for nested grids 2023-09-28 11:25:16 -07:00
Gavin Nishizawa
15a22000a7
remove compile error for nested grid edge 2023-09-27 15:19:08 -07:00
Gavin Nishizawa
20190c1224
add test 2023-09-22 20:01:31 -07:00
Gavin Nishizawa
095e23ddad
save test 2023-09-18 14:03:32 -07:00
Gavin Nishizawa
75ad59838b
validate empty text labels 2023-09-18 13:57:37 -07:00
Gavin Nishizawa
731a7df195
validate text shape labels 2023-09-18 13:16:50 -07:00
Gavin Nishizawa
fc06b09df6
validate nested grid edges (not implemented yet) 2023-09-13 20:27:17 -07:00
Gavin Nishizawa
64313e1787
restrict edges in grid diagrams to between direct children (nested not implemented yet) 2023-09-12 22:17:57 -07:00
Gavin Nishizawa
46bd6aeee5
edge case of edges on grid container 2023-09-12 17:08:34 -07:00
Gavin Nishizawa
5c50f41ce9
update grid edge validation 2023-09-12 16:07:57 -07:00
Anmol Sethi
eed3f7eb21
d2ir: Many more glob fixes 2023-08-30 00:37:03 -07:00
Anmol Sethi
976ec17476
d2ir: Prevent globs from overriding any fields set by non globs 2023-08-30 00:37:03 -07:00
Anmol Sethi
aba28d365a
d2ir: More alixander identified lazy glob bugs 2023-08-30 00:37:03 -07:00
Anmol Sethi
89b400b8f1
d2ir: Alixander review lazy glob fixes 2023-08-30 00:37:03 -07:00
Alexander Wang
bae5705674
setup imports with tests 2023-08-04 20:16:25 -07:00
Barry Nolte
9b463d5c9f
d2-vscode LanguageServerChanges
These changes are for the language server in d2-vscode.

When the D2_LSP_MODE environment variable is set, the
d2 cli will read the d2 file, produce the ast (and possible
errors), convert it to JSON, print it out to stdout,
then terminate.  This was done this way to keep the
changes to the d2 cli code to a minimum.

PR for d2-vscode to come after this is accepted
2023-08-04 12:31:36 -07:00
Anmol Sethi
203953723e
d2parser: Autodetect UTF-16 based on BOM
Turns out I was wrong this is safe.
2023-08-02 11:10:24 -07:00
Alexander Wang
fb542087f7
folder check 2023-07-29 10:12:13 -07:00
Alexander Wang
45b396c894
config vars 2023-07-20 16:08:08 -07:00
Alexander Wang
da0d24555d
rm commented code 2023-07-13 15:13:24 -07:00
Alexander Wang
d275a45033
allow edges in vars 2023-07-13 14:47:32 -07:00
Alexander Wang
f12f9ca69d
move edge check 2023-07-13 14:34:33 -07:00
Alexander Wang
29af92310b
fix no-primary-composite 2023-07-13 14:11:14 -07:00
Alexander Wang
4847714c3c
fix compiler creating vars 2023-07-13 12:24:48 -07:00
Alexander Wang
fb0c0d20ed
nested null 2023-07-13 10:22:37 -07:00
Alexander Wang
eba41af47d
use scalarstring 2023-07-13 10:13:26 -07:00
Alexander Wang
780345beeb
fix double quote primary 2023-07-13 10:11:08 -07:00
Alexander Wang
ffdb5121f4
err msg 2023-07-13 08:37:22 -07:00
Alexander Wang
ef11d47fc8
null 2023-07-13 08:35:16 -07:00
Alexander Wang
301bc8ddfb
add precedent test 2023-07-12 23:01:11 -07:00