diff --git a/packages/language-server/src/plugins/typescript/features/CodeActionsProvider.ts b/packages/language-server/src/plugins/typescript/features/CodeActionsProvider.ts index 933670b85..287f21664 100644 --- a/packages/language-server/src/plugins/typescript/features/CodeActionsProvider.ts +++ b/packages/language-server/src/plugins/typescript/features/CodeActionsProvider.ts @@ -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) diff --git a/packages/language-server/test/plugins/typescript/features/CodeActionsProvider.test.ts b/packages/language-server/test/plugins/typescript/features/CodeActionsProvider.test.ts index 781dfa795..80c896949 100644 --- a/packages/language-server/test/plugins/typescript/features/CodeActionsProvider.test.ts +++ b/packages/language-server/test/plugins/typescript/features/CodeActionsProvider.test.ts @@ -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( @@ -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));