Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,17 @@ Linted file: fixtures/lsp/frameworks/svelte/debugger.svelte
########## Diagnostic Reports
File URI: file://<variable>/fixtures/lsp/frameworks/svelte/debugger.svelte

code: "eslint(no-debugger)"
code_description.href: "https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-debugger.html"
message: "`debugger` statement is not allowed\nhelp: Remove the debugger statement"
range: Range { start: Position { line: 1, character: 1 }, end: Position { line: 1, character: 10 } }
related_information[0].message: ""
related_information[0].location.uri: "file://<variable>/fixtures/lsp/frameworks/svelte/debugger.svelte"
related_information[0].location.range: Range { start: Position { line: 1, character: 1 }, end: Position { line: 1, character: 10 } }
severity: Some(Warning)
source: Some("oxc")
tags: None

code: "eslint(no-unassigned-vars)"
code_description.href: "https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unassigned-vars.html"
message: "'title' is always 'undefined' because it's never assigned.\nhelp: Variable declared without assignment. Either assign a value or remove the declaration."
Expand All @@ -433,38 +444,27 @@ severity: Some(Warning)
source: Some("oxc")
tags: None

code: "eslint(no-debugger)"
code_description.href: "https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-debugger.html"
message: "`debugger` statement is not allowed\nhelp: Remove the debugger statement"
range: Range { start: Position { line: 1, character: 1 }, end: Position { line: 1, character: 10 } }
related_information[0].message: ""
related_information[0].location.uri: "file://<variable>/fixtures/lsp/frameworks/svelte/debugger.svelte"
related_information[0].location.range: Range { start: Position { line: 1, character: 1 }, end: Position { line: 1, character: 10 } }
severity: Some(Warning)
source: Some("oxc")
tags: None

########### Code Actions/Commands
CodeAction:
Title: Disable no-unassigned-vars for this line
Title: Remove the debugger statement
Is Preferred: Some(true)
TextEdit: TextEdit {
range: Range {
start: Position {
line: 3,
character: 0,
line: 1,
character: 1,
},
end: Position {
line: 3,
character: 0,
line: 1,
character: 10,
},
},
new_text: "\t// oxlint-disable-next-line no-unassigned-vars\n",
new_text: "",
}


CodeAction:
Title: Disable no-unassigned-vars for this whole file
Title: Disable no-debugger for this line
Is Preferred: Some(false)
TextEdit: TextEdit {
range: Range {
Expand All @@ -477,84 +477,84 @@ TextEdit: TextEdit {
character: 0,
},
},
new_text: "// oxlint-disable no-unassigned-vars\n",
new_text: "\t// oxlint-disable-next-line no-debugger\n",
}


CodeAction:
Title: Disable no-unassigned-vars for this line
Is Preferred: Some(true)
Title: Disable no-debugger for this whole file
Is Preferred: Some(false)
TextEdit: TextEdit {
range: Range {
start: Position {
line: 4,
line: 1,
character: 0,
},
end: Position {
line: 4,
line: 1,
character: 0,
},
},
new_text: "\t// oxlint-disable-next-line no-unassigned-vars\n",
new_text: "// oxlint-disable no-debugger\n",
}


CodeAction:
Title: Disable no-unassigned-vars for this whole file
Is Preferred: Some(false)
Title: Disable no-unassigned-vars for this line
Is Preferred: Some(true)
TextEdit: TextEdit {
range: Range {
start: Position {
line: 1,
line: 3,
character: 0,
},
end: Position {
line: 1,
line: 3,
character: 0,
},
},
new_text: "// oxlint-disable no-unassigned-vars\n",
new_text: "\t// oxlint-disable-next-line no-unassigned-vars\n",
}


CodeAction:
Title: Remove the debugger statement
Is Preferred: Some(true)
Title: Disable no-unassigned-vars for this whole file
Is Preferred: Some(false)
TextEdit: TextEdit {
range: Range {
start: Position {
line: 1,
character: 1,
character: 0,
},
end: Position {
line: 1,
character: 10,
character: 0,
},
},
new_text: "",
new_text: "// oxlint-disable no-unassigned-vars\n",
}


CodeAction:
Title: Disable no-debugger for this line
Is Preferred: Some(false)
Title: Disable no-unassigned-vars for this line
Is Preferred: Some(true)
TextEdit: TextEdit {
range: Range {
start: Position {
line: 1,
line: 4,
character: 0,
},
end: Position {
line: 1,
line: 4,
character: 0,
},
},
new_text: "\t// oxlint-disable-next-line no-debugger\n",
new_text: "\t// oxlint-disable-next-line no-unassigned-vars\n",
}


CodeAction:
Title: Disable no-debugger for this whole file
Title: Disable no-unassigned-vars for this whole file
Is Preferred: Some(false)
TextEdit: TextEdit {
range: Range {
Expand All @@ -567,7 +567,7 @@ TextEdit: TextEdit {
character: 0,
},
},
new_text: "// oxlint-disable no-debugger\n",
new_text: "// oxlint-disable no-unassigned-vars\n",
}


Expand Down
Loading
Loading