Enabling the label switched protocol (LSP) tracing

Procedure
  1. To enable the tracing of messages sent to the Typescript (TS) server, in the Preferences view, set the typescript.tsserver.trace attribute to verbose. Use this to diagnose the TS server issues.

  2. To enable logging of the TS server to a file, set the typescript.tsserver.log attribute to verbose. Use this log to diagnose the TS server issues. The log contains the file paths.

Viewing the Typescript language server log

This section describes how to view the Typescript language server log.

Procedure
  1. To get the path to the log file, see the Typescript Output console:

    finding the typescript language server log
  2. To open log file, use the Open TS Server log command.

    viewing typescript language server log

Viewing the Typescript logs output in the Output panel

This section describes how to view the Typescript logs output in the Output panel.

Procedure
  1. Navigate to the Output view

  2. Select TypeScript in the drop-down list.

    viewing typescript logs output in the output panel