This commit is contained in:
github-actions-bot
2021-06-06 23:18:03 +00:00
parent 1fdc76aee6
commit 31750d8510
198 changed files with 359 additions and 307 deletions

View File

@@ -320,8 +320,24 @@
"color": {
"type": "string"
},
"dashes": {
"type": "boolean"
"style": {
"oneOf": [
{
"enum": [
"solid"
]
},
{
"enum": [
"dashed"
]
},
{
"enum": [
"dotted"
]
}
]
}
},
"required": [
@@ -476,6 +492,27 @@
"type": "string",
"description": "The text to show"
},
"decorations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"range": {
"oneOf": [
{
"$ref": "#/definitions/LineColumnRange"
}
]
},
"label": {
"type": "string"
}
},
"required": [
"range"
]
}
},
"fileName": {
"type": "string",
"description": "An optional filename that might be used for chosing a syntax highlighter"
@@ -486,6 +523,40 @@
"text"
]
},
"LineColumnRange": {
"type": "object",
"properties": {
"start": {
"$ref": "#/definitions/LineColumnPosition",
"description": "The start position"
},
"end": {
"$ref": "#/definitions/LineColumnPosition",
"description": "The end position"
}
},
"required": [
"start",
"end"
]
},
"LineColumnPosition": {
"type": "object",
"properties": {
"line": {
"type": "number",
"description": "The 0-based line number"
},
"column": {
"type": "number",
"description": "The 0-based column number"
}
},
"required": [
"line",
"column"
]
},
"MonacoTextDiffVisualizationData": {
"type": "object",
"properties": {

View File

@@ -93,7 +93,7 @@ export type GraphEdge = {
label?: string;
id?: string;
color?: string;
dashes?: boolean;
style?: "solid" | "dashed" | "dotted";
};
export type GridVisualizationData = {
@@ -143,12 +143,38 @@ export type MonacoTextVisualizationData = {
* The text to show
*/
text: string;
decorations?: ({
range: LineColumnRange;
label?: string;
})[];
/**
* An optional filename that might be used for chosing a syntax highlighter
*/
fileName?: string;
};
export type LineColumnRange = {
/**
* The start position
*/
start: LineColumnPosition;
/**
* The end position
*/
end: LineColumnPosition;
};
export type LineColumnPosition = {
/**
* The 0-based line number
*/
line: number;
/**
* The 0-based column number
*/
column: number;
};
export type MonacoTextDiffVisualizationData = {
kind: {
text: true;