Skip to content

Commit 8c1ee73

Browse files
committed
chore: improve code action titles
1 parent 8b331fb commit 8c1ee73

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

server/code-actions-builder.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class QuickFixCodeActionsBuilder {
7878
}
7979

8080
const ignoreAction: CodeAction = {
81-
title: `Add Ignore Rule ${diagnostic.code}: Same Line`,
81+
title: `Ignore Rule ${diagnostic.code}: Same Line`,
8282
kind: CodeActionKind.QuickFix,
8383
diagnostics: [diagnostic],
8484
edit: {
@@ -138,7 +138,7 @@ export class QuickFixCodeActionsBuilder {
138138
}
139139

140140
const ignoreAction: CodeAction = {
141-
title: `Add Ignore Rule ${diagnostic.code}: Next Line`,
141+
title: `Ignore Rule ${diagnostic.code}: Line Above`,
142142
kind: CodeActionKind.QuickFix,
143143
diagnostics: [diagnostic],
144144
edit: {
@@ -159,7 +159,7 @@ export class QuickFixCodeActionsBuilder {
159159
const line = shebang === '#!' ? 1 : 0;
160160

161161
const ignoreFileAction = {
162-
title: `Add Ignore Rule ${diagnostic.code}: Entire File`,
162+
title: `Ignore Rule ${diagnostic.code}: Entire File`,
163163
kind: CodeActionKind.QuickFix,
164164
diagnostics: [diagnostic],
165165
edit: {

test/stubs.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const getCodeActionParams = (): CodeActionParams => ({
2222

2323
export const getIgnoreSameLineCodeAction = () => ({
2424
...CodeAction.create(
25-
'Add Ignore Rule test: Same Line',
25+
'Ignore Rule test: Same Line',
2626
{
2727
changes: {
2828
uri: [
@@ -43,7 +43,7 @@ export const getIgnoreSameLineCodeAction = () => ({
4343

4444
export const getIgnoreNextLineCodeAction = () => ({
4545
...CodeAction.create(
46-
'Add Ignore Rule test: Next Line',
46+
'Ignore Rule test: Line Above',
4747
{
4848
changes: {
4949
uri: [
@@ -61,7 +61,7 @@ export const getIgnoreNextLineCodeAction = () => ({
6161

6262
export const getIgnoreFileCodeAction = () => ({
6363
...CodeAction.create(
64-
'Add Ignore Rule test: Entire File',
64+
'Ignore Rule test: Entire File',
6565
{
6666
changes: {
6767
uri: [

0 commit comments

Comments
 (0)