Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Fix warnings not showing #1

Open
wants to merge 1 commit into
base: digit-fork
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions coffeelint-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ function loadCofffeeLintConfig() {
}
catch (error) {
// no config file or malformed, use default then
}
}
}

connection.onInitialize((params): InitializeResult => {
coffeLintConfigFile = path.join(params.rootPath, 'coffeelint.json');
loadCofffeeLintConfig()

return {
capabilities: {
textDocumentSync: documents.syncKind,
Expand All @@ -58,7 +58,7 @@ function validateTextDocument(textDocument: ITextDocument): void {
for(var issue of issues) {
var severity;

if(issue.level === "warning") {
if(issue.level === "warn") {
severity = DiagnosticSeverity.Warning;
} else if(issue.level === "error") {
severity = DiagnosticSeverity.Error;
Expand Down