Skip to content

Do not print unexpected attributes to console #338

Open
@hendrikvanantwerpen

Description

@hendrikvanantwerpen

TSSG prints warnings to the console if nodes have unexpected attributes defined on them. Printing to the console from a library is bad practice and can break applications using the library. (For example, LSP is often implemented over and stdio connection, and unexpected output breaks that.)

Instead of printing the warnings, we should return them as part of the result, and leave processing them up to the caller.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions