remix-project icon indicating copy to clipboard operation
remix-project copied to clipboard

add markers to editor

Open bunsenstraat opened this issue 2 years ago • 0 comments

Adds squiggly line markers to the editor, this includes a message that appears on hover

Screenshot 2022-08-09 at 13 29 04
let errors = [
        {
            position: {
                start: {
                    line: 10,
                    column: 1,
                },
                end: {
                    line: 10,
                    column: 10
                }
            },
            message: 'testing',
            severity: 'error',
            file: 'contracts/1_Storage.sol'
        },
        {
            position: {
                start: {
                    line: 18,
                    column: 1,
                },
                end: {
                    line: 18,
                    column: 10
                }
            },
            message: 'testing2',
            severity: 'warning',
            file: 'contracts/1_Storage.sol'
        },
    ]
    await remix.call('editor', 'addErrorMarker' as any, errors)

bunsenstraat avatar Jul 26 '22 07:07 bunsenstraat