mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-26 00:36:29 -05:00
Merge pull request #20545 from RyanCavanaugh/codefixOmnibus
Omnibus fixes for telemetry-sourced crashes
This commit is contained in:
9
tests/cases/fourslash/incompleteFunctionCallCodefix.ts
Normal file
9
tests/cases/fourslash/incompleteFunctionCallCodefix.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @noImplicitAny: true
|
||||
//// function f(/*1*/x) {
|
||||
//// }
|
||||
//// f(
|
||||
|
||||
verify.not.codeFixAvailable([]);
|
||||
|
||||
7
tests/cases/fourslash/incompleteFunctionCallCodefix2.ts
Normal file
7
tests/cases/fourslash/incompleteFunctionCallCodefix2.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @noImplicitAny: true
|
||||
//// function f(new C(100, 3, undefined)
|
||||
|
||||
verify.not.codeFixAvailable([]);
|
||||
|
||||
7
tests/cases/fourslash/incompleteFunctionCallCodefix3.ts
Normal file
7
tests/cases/fourslash/incompleteFunctionCallCodefix3.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @noImplicitAny: true
|
||||
//// function ...q) {}} f(10);
|
||||
|
||||
verify.not.codeFixAvailable([]);
|
||||
|
||||
6
tests/cases/fourslash/typeToStringCrashInCodeFix.ts
Normal file
6
tests/cases/fourslash/typeToStringCrashInCodeFix.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @noImplicitAny: true
|
||||
//// function f(y, z = { p: y[
|
||||
|
||||
verify.getAndApplyCodeFix();
|
||||
Reference in New Issue
Block a user