Skip to content

Commit c7c8591

Browse files
committed
Refactor warning to warn to align with console
1 parent ba842ce commit c7c8591

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/src/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class LspLogger {
1616
}
1717

1818
error = (msg: string, lvl?: number) => this.emit(LogLevel.error, msg, lvl)
19-
warning = (msg: string, lvl?: number) => this.emit(LogLevel.warning, msg, lvl)
19+
warn = (msg: string, lvl?: number) => this.emit(LogLevel.warning, msg, lvl)
2020
info = (msg: string, lvl?: number) => this.emit(LogLevel.info, msg, lvl)
2121
log = (msg: string, lvl?: number) => this.emit(LogLevel.log, msg, lvl)
2222
debug = (msg: string, lvl?: number) => this.emit(LogLevel.debug, msg, lvl)

server/src/project/document.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export abstract class BaseProjectDocument {
171171
// Don't parse oversize documents.
172172
if (await this.isOversize) {
173173
this.workspace.logger.debug(`Document oversize: ${this.textDocument.lineCount} lines.`);
174-
this.workspace.logger.warning(`Syntax parsing has been disabled to prevent crashing.`);
174+
this.workspace.logger.warn(`Syntax parsing has been disabled to prevent crashing.`);
175175
this._isBusy = false;
176176
return;
177177
}
@@ -201,7 +201,7 @@ export abstract class BaseProjectDocument {
201201
// Don't parse oversize documents.
202202
if (await this.isOversize) {
203203
this.workspace.logger.debug(`Document oversize: ${this.textDocument.lineCount} lines.`);
204-
this.workspace.logger.warning(`Syntax parsing has been disabled to prevent crashing.`);
204+
this.workspace.logger.warn(`Syntax parsing has been disabled to prevent crashing.`);
205205
return;
206206
}
207207

0 commit comments

Comments
 (0)