Skip to content

Commit

Permalink
wording
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlyu123 committed May 16, 2024
1 parent 159fa82 commit e68900b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ export class CodeActionsProviderImpl implements CodeActionsProvider {
)
: undefined;

// either-or situation when it's not a typo quick fix
// either-or situation when it's not a "did you mean" fix
if (
codeFixes === undefined ||
errorCodes.includes(DiagnosticCode.CANNOT_FIND_NAME_X_DID_YOU_MEAN_Y)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ describe('CodeActionsProvider', function () {
]);
});

it('provides quickfix for component import with typo diagnostics', async () => {
it('provides quickfix for component import with "did you mean" diagnostics', async () => {
const { provider, document } = setup('codeaction-component-import.svelte');

const codeActions = await provider.getCodeActions(
Expand Down Expand Up @@ -1007,7 +1007,7 @@ describe('CodeActionsProvider', function () {
assert.strictEqual(cannotFindNameDiagnostics.length, 0);
});

it('provide quick fix to fix all missing import component with typo diagnostics', async () => {
it('provide quick fix to fix all missing import component with "did you mean" diagnostics', async () => {
const { provider, document } = setup('codeaction-custom-fix-all-component4.svelte');

const range = Range.create(Position.create(4, 1), Position.create(4, 15));
Expand Down

0 comments on commit e68900b

Please sign in to comment.