taplo icon indicating copy to clipboard operation
taplo copied to clipboard

Offline mode

Open prokie opened this issue 2 years ago • 3 comments

Hello!

Is it possible to set a setting so it does not try to open https://www.schemastore.org/api/json/catalog.json on launch. I am trying to use this extension at work, where I do not have internet access.

I am using local schemas so I don't need schemas from that catalog.


WARN initialize:initialize: failed to fetch catalog error=error sending request: JsValue(LA: request to https://www.schemastore.org/api/json/catalog.json failed, reason: connect ETIMEDOUT 20.42.128.105:443
LA: request to https://www.schemastore.org/api/json/catalog.json failed, reason: connect ETIMEDOUT 20.42.128.105:443
    at ClientRequest.<anonymous> (/home/ethopon/.vscode/extensions/tamasfe.even-better-toml-0.19.0/dist/server.js:12:15885)
    at ClientRequest.emit (node:events:526:28)
    at TLSSocket.socketErrorListener (node:_http_client:442:9)
    at TLSSocket.emit (node:events:526:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21))

Caused by:
    JsValue(LA: request to https://www.schemastore.org/api/json/catalog.json failed, reason: connect ETIMEDOUT 20.42.128.105:443
    LA: request to https://www.schemastore.org/api/json/catalog.json failed, reason: connect ETIMEDOUT 20.42.128.105:443
        at ClientRequest.<anonymous> (/home/ethopon/.vscode/extensions/tamasfe.even-better-toml-0.19.0/dist/server.js:12:15885)
        at ClientRequest.emit (node:events:526:28)
        at TLSSocket.socketErrorListener (node:_http_client:442:9)
        at TLSSocket.emit (node:events:526:28)
        at emitErrorNT (node:internal/streams/destroy:157:8)
        at emitErrorCloseNT (node:internal/streams/destroy:122:3)
        at process.processTicksAndRejections (node:internal/process/task_queues:83:21)) self.root=file:///proj/asic_no_backup_trixie1_0/workspaces/ethopon/beetle_subsystem1_0
ERROR initialize:initialize: failed to add schemas from catalog error=error sending request: JsValue(LA: request to https://www.schemastore.org/api/json/catalog.json failed, reason: connect ETIMEDOUT 20.42.128.105:443
LA: request to https://www.schemastore.org/api/json/catalog.json failed, reason: connect ETIMEDOUT 20.42.128.105:443
    at ClientRequest.<anonymous> (/home/ethopon/.vscode/extensions/tamasfe.even-better-toml-0.19.0/dist/server.js:12:15885)
    at ClientRequest.emit (node:events:526:28)
    at TLSSocket.socketErrorListener (node:_http_client:442:9)
    at TLSSocket.emit (node:events:526:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)) self.root=file:///proj/asic_no_backup_trixie1_0/workspaces/ethopon/beetle_subsystem1_0

This seems to have no effect:

"evenBetterToml.schema.catalogs": []

prokie avatar Jan 10 '23 17:01 prokie

+1

jaybuidl avatar Jan 18 '23 19:01 jaybuidl

Have there been any work of late to support local schemas?

prokie avatar Sep 07 '23 05:09 prokie

The project is currently in maintenance mode. So any change would need the help from a contributor.

ia0 avatar Sep 07 '23 20:09 ia0