Commit b44cf29
authored
(fix) Don't use
This solves #981 - when toString() is used on an actual raw source map the receiving end will try to parse the string [object Object] as JSON, failing miserably.
By removing the toString and casting to `string | RawSourceMap` we handle both cases correctly, since the SourceMapConsumer is able to handle both the case where we are passing a JSON string and a raw source map object.toString, this could be a RawSourceMap (#982)1 parent 3aad06a commit b44cf29
File tree
2 files changed
+48
-19
lines changed- packages/language-server
- src/plugins/svelte
- test/plugins/svelte
2 files changed
+48
-19
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
Lines changed: 46 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
37 | 70 | | |
38 | 71 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 72 | + | |
50 | 73 | | |
51 | 74 | | |
52 | 75 | | |
| |||
102 | 125 | | |
103 | 126 | | |
104 | 127 | | |
105 | | - | |
106 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
107 | 136 | | |
108 | 137 | | |
109 | 138 | | |
110 | 139 | | |
111 | 140 | | |
112 | | - | |
| 141 | + | |
113 | 142 | | |
114 | 143 | | |
115 | 144 | | |
116 | 145 | | |
117 | 146 | | |
118 | | - | |
| 147 | + | |
119 | 148 | | |
120 | 149 | | |
121 | 150 | | |
122 | 151 | | |
123 | 152 | | |
124 | | - | |
| 153 | + | |
125 | 154 | | |
126 | 155 | | |
127 | 156 | | |
| |||
0 commit comments