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

Method msg

vscode-ng-language-service/server/src/logger.ts:132–149  ·  view source on GitHub ↗
(s: string, type: ts.server.Msg = ts.server.Msg.Err)

Source from the content-addressed store, hash-verified

130 }
131
132 msg(s: string, type: ts.server.Msg = ts.server.Msg.Err) {
133 if (!this.loggingEnabled()) {
134 return;
135 }
136
137 let prefix = '';
138 if (!this.inGroup || this.firstInGroup) {
139 this.firstInGroup = false;
140 prefix = `${type} ${this.seq}`.padEnd(10) + `[${nowString()}] `;
141 }
142 const entry = prefix + s + '\n';
143
144 fs.writeSync(this.fd, entry);
145
146 if (!this.inGroup) {
147 this.seq++;
148 }
149 }
150}

Callers 5

perftrcMethod · 0.95
infoMethod · 0.95
errorMethod · 0.80
warnMethod · 0.80
infoMethod · 0.80

Calls 2

loggingEnabledMethod · 0.95
nowStringFunction · 0.85

Tested by

no test coverage detected