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
Alexander Wang
98f79e2ba5
arrays
2023-07-12 22:20:55 -07:00
Alexander Wang
4b7b636657
spread
2023-07-12 14:53:28 -07:00
Alexander Wang
85bfad19a6
compile composites
2023-07-12 11:55:58 -07:00
Alexander Wang
63dbaf0935
pr changes
2023-07-11 23:26:06 -07:00
Alexander Wang
67a06b6557
var-in-var
2023-07-11 18:05:03 -07:00
Alexander Wang
af69e6f626
edge cases
2023-07-11 17:33:01 -07:00
Alexander Wang
92d87b553f
new implementation
2023-07-11 17:19:34 -07:00
Alexander Wang
4a9327e102
non-root err check
2023-07-11 15:05:16 -07:00
Alexander Wang
85cf491d74
quotes
2023-07-11 14:56:09 -07:00
Alexander Wang
a6125c46ec
cleanup
2023-07-11 14:01:35 -07:00
Alexander Wang
741a9aa306
cleanup
2023-07-11 13:40:44 -07:00
Alexander Wang
090d10e9ca
handle interpolation
2023-07-11 13:32:07 -07:00
Alexander Wang
e7e2566564
save
2023-07-11 11:19:50 -07:00
Alexander Wang
08cc907f07
more test
2023-07-10 22:22:04 -07:00
Alexander Wang
0347dff7a4
more tests
2023-07-10 22:02:58 -07:00
Alexander Wang
acdbfddf23
add replace tests
2023-07-10 21:56:10 -07:00
Alexander Wang
7269ee1706
add overlay tests
2023-07-10 21:54:34 -07:00
Alexander Wang
fd70b5ef46
layers work
2023-07-10 21:32:30 -07:00
Alexander Wang
05802edb07
edge label working
2023-07-10 21:18:18 -07:00
Alexander Wang
c9793b9a87
label works
2023-07-10 19:24:21 -07:00
Alexander Wang
db051a95b6
pr fixes
2023-07-03 15:58:22 -07:00
Alexander Wang
2cce7a89c8
Revert "portal keyword"
...
This reverts commit 92cfc5c40a .
2023-07-01 20:31:45 -07:00
Alexander Wang
92cfc5c40a
portal keyword
2023-07-01 16:36:33 -07:00
Alexander Wang
0749d4fb41
attribute
2023-06-26 12:15:24 -07:00
Alexander Wang
1acc3d685a
new implementation
2023-06-26 11:57:18 -07:00
Alexander Wang
905a9317a2
fix
2023-06-26 10:51:07 -07:00
Alexander Wang
5be1f6c187
cleanup
2023-06-26 10:39:38 -07:00
Alexander Wang
02fa36d598
save
2023-06-26 10:36:12 -07:00
Alexander Wang
e1eecf7c7b
reimplement
2023-06-25 23:11:47 -07:00
Alexander Wang
09d1ec6314
reimplement
2023-06-25 23:10:56 -07:00
Alexander Wang
757f292a20
edge works
2023-06-25 20:36:10 -07:00
Alexander Wang
6749115ce2
reappear works
2023-06-25 18:59:53 -07:00
Alexander Wang
48bb6df3fe
save
2023-06-25 18:43:30 -07:00
Alexander Wang
80ddea94fa
set on edge. fix arrowhead setting case
2023-06-25 11:51:21 -07:00
Alexander Wang
6f9e478f59
label and icon position attributes
2023-06-22 16:13:08 -07:00