You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// for virtual documents based on interpolated strings we need to remove two kinds of trivia from the overall string portions.
22
29
/// * for interpolation expressions we need to remove the entire range of the expression - this will be invisible to the virtual document since it is F# code.
@@ -35,19 +42,32 @@ let private discoverRangesToRemoveForInterpolatedString
// for the first part we have whatever 'leading' element on the left and a trailing interpolation piece (which can include a format specifier) on the right
38
-
| SynInterpolatedStringPart.String(range = range)when index =0->
45
+
| SynInterpolatedStringPart.String(value = value;range = range)when index =0->
39
46
[|
40
47
// leading tokens adjustment
41
48
// GAP: we don't know how many interpolation $ or " there are, so we are guessing
// there's no such thing as a verbatim interpolated string
58
+
| SynStringKind.Verbatim -> range
59
+
60
+
61
+
// GAP: we don't know if there's a format specifier at the front: %[flags][width][.precision][type]
62
+
// flags are 0,+,-, width is an integer, precision is `.` followed by an integer, type is one of the following: b, s, c, d, i, u, x, X, o, B, e, E, f, F, g, G, M, O, A, a, t, %
0 commit comments