This repository was archived by the owner on Nov 6, 2018. It is now read-only.
Commit 7278eca 1 parent f9ece18 commit 7278eca Copy full SHA for 7278eca
File tree 1 file changed +26
-1
lines changed
1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -28,25 +28,50 @@ export interface DecorationServerCapabilities {
28
28
decorationProvider ?: DecorationProviderOptions | ( DecorationProviderOptions & TextDocumentRegistrationOptions )
29
29
}
30
30
31
+ /**
32
+ * A text document decoration changes the appearance of a range in the document and/or adds other content to it.
33
+ */
31
34
export interface TextDocumentDecoration {
35
+ /** The range that the decoration applies to. */
32
36
range : Range
33
37
38
+ /**
39
+ * If true, the decoration applies to all lines in the range (inclusive), even if not all characters on the
40
+ * line are included.
41
+ */
34
42
isWholeLine ?: boolean
35
43
44
+ /** Content to display after the range. */
36
45
after ?: DecorationAttachmentRenderOptions
37
46
38
- background ?: string
47
+ /** The CSS background-color property value for the line. */
39
48
backgroundColor ?: string
49
+
50
+ /** The CSS border property value for the line. */
40
51
border ?: string
52
+
53
+ /** The CSS border-color property value for the line. */
41
54
borderColor ?: string
55
+
56
+ /** The CSS border-width property value for the line. */
42
57
borderWidth ?: string
43
58
}
44
59
60
+ /** A decoration attachment adds content after a [decoration](#TextDocumentDecoration). */
45
61
export interface DecorationAttachmentRenderOptions {
62
+ /** The CSS background-color property value for the attachment. */
46
63
backgroundColor ?: string
64
+
65
+ /** The CSS color property value for the attachment. */
47
66
color ?: string
67
+
68
+ /** Text to display in the attachment. */
48
69
contentText ?: string
70
+
71
+ /** Tooltip text to display when hovering over the attachment. */
49
72
hoverMessage ?: string
73
+
74
+ /** If set, the attachment becomes a link with this destination URL. */
50
75
linkURL ?: string
51
76
}
52
77
You can’t perform that action at this time.
0 commit comments