@dodona/papyros 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,10 +15,11 @@ export declare class BatchInputEditor extends CodeMirrorEditor {
|
|
|
15
15
|
constructor();
|
|
16
16
|
/**
|
|
17
17
|
* Apply highlighting to the lines in the Editor
|
|
18
|
+
* @param {boolean} disable Whether to disable editing the lines if marked
|
|
18
19
|
* @param {function(number): UsedInputGutterInfo} getInfo Function to obtain gutter
|
|
19
20
|
* info per line (1-based indexing)
|
|
20
21
|
*/
|
|
21
|
-
highlight(getInfo: (lineNr: number) => UsedInputGutterInfo): void;
|
|
22
|
+
highlight(disable: boolean, getInfo: (lineNr: number) => UsedInputGutterInfo): void;
|
|
22
23
|
/**
|
|
23
24
|
* @return {Array<string>} Array of valid user input
|
|
24
25
|
* Data in the last line that is not terminated by a newline is omitted
|
package/dist/editor/Gutters.d.ts
CHANGED
|
@@ -59,6 +59,11 @@ export declare abstract class Gutters<Info extends GutterInfo = GutterInfo, Conf
|
|
|
59
59
|
* @param {Info} info Info used to render the marker
|
|
60
60
|
*/
|
|
61
61
|
setMarker(view: EditorView, info: Info): void;
|
|
62
|
+
/**
|
|
63
|
+
* @param {EditorView} view The view in which the Gutters live
|
|
64
|
+
* @return {Set<number>} The 1-based line numbers with a breakpoint
|
|
65
|
+
*/
|
|
66
|
+
getMarkedLines(view: EditorView): Set<number>;
|
|
62
67
|
/**
|
|
63
68
|
* @return {Extension} The Gutters as a CodeMirror Extension
|
|
64
69
|
*/
|
|
@@ -70,11 +75,6 @@ export declare abstract class Gutters<Info extends GutterInfo = GutterInfo, Conf
|
|
|
70
75
|
export declare class BreakpointsGutter extends Gutters {
|
|
71
76
|
constructor();
|
|
72
77
|
protected marker(): GutterMarker;
|
|
73
|
-
/**
|
|
74
|
-
* @param {EditorView} view The view in which the Gutters live
|
|
75
|
-
* @return {Set<number>} The 1-based line numbers with a breakpoint
|
|
76
|
-
*/
|
|
77
|
-
getBreakpoints(view: EditorView): Set<number>;
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
80
|
* Extra data used to represent input gutters
|
|
@@ -10,6 +10,10 @@ export declare class BatchInputHandler extends UserInputHandler {
|
|
|
10
10
|
* Messages used when asking for user input
|
|
11
11
|
*/
|
|
12
12
|
private prompts;
|
|
13
|
+
/**
|
|
14
|
+
* Whether a run is occurring
|
|
15
|
+
*/
|
|
16
|
+
private running;
|
|
13
17
|
/**
|
|
14
18
|
* Editor containing the input of the user
|
|
15
19
|
*/
|