kisstkondoros / gutter-preview

Other
158 stars 37 forks source link

Extension issue #37

Closed st-schneider closed 5 years ago

st-schneider commented 5 years ago
{
    "activationTimes": {
        "startup": true,
        "codeLoadingTime": 112,
        "activateCallTime": 7,
        "activateResolvedTime": 19,
        "activationEvent": "*"
    },
    "runtimeErrors": [
        {
            "name": "TypeError [ERR_INVALID_ARG_TYPE]",
            "message": "The \"path\" argument must be of type string. Received type undefined"
        },
        {
            "name": "TypeError [ERR_INVALID_ARG_TYPE]",
            "message": "The \"path\" argument must be of type string. Received type undefined"
        },
        {
            "name": "TypeError [ERR_INVALID_ARG_TYPE]",
            "message": "The \"path\" argument must be of type string. Received type undefined"
        },
        {
            "name": "TypeError [ERR_INVALID_ARG_TYPE]",
            "message": "The \"path\" argument must be of type string. Received type undefined"
        }
    ]
}
kisstkondoros commented 5 years ago

Thanks for reporting the issue.

It is related to https://github.com/kisstkondoros/gutter-preview/blob/master/src/extension.ts#L111 if there is no workspace folder the problem occurs, a simple null check should do it.

I'll release a fix for it at the evening, sorry for the inconvenience

kisstkondoros commented 5 years ago

Closed accidentaly

kisstkondoros commented 5 years ago

:D

st-schneider commented 5 years ago

It is a multi folder workspace.

kisstkondoros commented 5 years ago

Issue was hopefully fixed with the new version: 0.17.3. It is already available in the market.