Skip to content

Commit

Permalink
chore: improve code action titles
Browse files Browse the repository at this point in the history
  • Loading branch information
spence-s committed Jan 24, 2024
1 parent 8b331fb commit 8c1ee73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions server/code-actions-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class QuickFixCodeActionsBuilder {
}

const ignoreAction: CodeAction = {
title: `Add Ignore Rule ${diagnostic.code}: Same Line`,
title: `Ignore Rule ${diagnostic.code}: Same Line`,
kind: CodeActionKind.QuickFix,
diagnostics: [diagnostic],
edit: {
Expand Down Expand Up @@ -138,7 +138,7 @@ export class QuickFixCodeActionsBuilder {
}

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

const ignoreFileAction = {
title: `Add Ignore Rule ${diagnostic.code}: Entire File`,
title: `Ignore Rule ${diagnostic.code}: Entire File`,
kind: CodeActionKind.QuickFix,
diagnostics: [diagnostic],
edit: {
Expand Down
6 changes: 3 additions & 3 deletions test/stubs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const getCodeActionParams = (): CodeActionParams => ({

export const getIgnoreSameLineCodeAction = () => ({
...CodeAction.create(
'Add Ignore Rule test: Same Line',
'Ignore Rule test: Same Line',
{
changes: {
uri: [
Expand All @@ -43,7 +43,7 @@ export const getIgnoreSameLineCodeAction = () => ({

export const getIgnoreNextLineCodeAction = () => ({
...CodeAction.create(
'Add Ignore Rule test: Next Line',
'Ignore Rule test: Line Above',
{
changes: {
uri: [
Expand All @@ -61,7 +61,7 @@ export const getIgnoreNextLineCodeAction = () => ({

export const getIgnoreFileCodeAction = () => ({
...CodeAction.create(
'Add Ignore Rule test: Entire File',
'Ignore Rule test: Entire File',
{
changes: {
uri: [
Expand Down

0 comments on commit 8c1ee73

Please sign in to comment.