MCPcopy Create free account
hub / github.com/angular/angular / warn

Method warn

vscode-ng-language-service/server/src/session.ts:730–736  ·  view source on GitHub ↗

* Show a warning message in the remote console and log to file. * * @param message The message to show.

(message: string)

Source from the content-addressed store, hash-verified

728 * @param message The message to show.
729 */
730 warn(message: string): void {
731 if (this.logToConsole) {
732 this.connection.console.warn(message);
733 }
734 // ts.server.Msg does not have warning level, so log as info.
735 this.logger.msg(`[WARN] ${message}`, ts.server.Msg.Info);
736 }
737
738 /**
739 * Show an information message in the remote console and log to file.

Callers

nothing calls this directly

Calls 2

msgMethod · 0.80
warnMethod · 0.65

Tested by

no test coverage detected