()
| 21 | private onDidChangeTextEditorSelectionHandler: vscode.Disposable | undefined; |
| 22 | |
| 23 | constructor() { |
| 24 | this.decoration = vscode.window.createTextEditorDecorationType({ |
| 25 | isWholeLine: true, |
| 26 | backgroundColor: config().get('rmarkdown.chunkBackgroundColor'), |
| 27 | }); |
| 28 | // From https://github.com/microsoft/vscode-jupyter/blob/f8c0f925d855a45240fd06875b17216e47eb08f8/src/interactive-window/editor-integration/decorator.ts#L84 |
| 29 | this.currentCellTop = vscode.window.createTextEditorDecorationType({ |
| 30 | borderColor: new vscode.ThemeColor('interactive.activeCodeBorder'), |
| 31 | borderWidth: '2px 0px 0px 0px', |
| 32 | borderStyle: 'solid', |
| 33 | isWholeLine: true |
| 34 | }); |
| 35 | this.currentCellBottom = vscode.window.createTextEditorDecorationType({ |
| 36 | borderColor: new vscode.ThemeColor('interactive.activeCodeBorder'), |
| 37 | borderWidth: '0px 0px 1px 0px', |
| 38 | borderStyle: 'solid', |
| 39 | isWholeLine: true |
| 40 | }); |
| 41 | |
| 42 | // Register the event listener and store the disposable |
| 43 | this.onDidChangeTextEditorSelectionHandler = vscode.window.onDidChangeTextEditorSelection( |
| 44 | () => this.onDidChangeTextEditorSelection() |
| 45 | ); |
| 46 | } |
| 47 | |
| 48 | // Event handler for text editor selection change |
| 49 | private onDidChangeTextEditorSelection() { |
nothing calls this directly
no test coverage detected