29 lines
695 B
TypeScript
29 lines
695 B
TypeScript
|
/// <reference path="fourslash.ts" />
|
||
|
// @filename: /dir/a.ts
|
||
|
////declare const p: Promise<number>;
|
||
|
////await p;
|
||
|
////export {};
|
||
|
// @filename: /dir/tsconfig.json
|
||
|
////{
|
||
|
//// "compilerOptions": {
|
||
|
//// "target": "es2017"
|
||
|
//// }
|
||
|
////}
|
||
|
|
||
|
verify.not.codeFixAvailable("fixTargetOption");
|
||
|
verify.codeFixAvailable("fixModuleOption");
|
||
|
|
||
|
// verify.codeFix({
|
||
|
// description: [ts.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0.message, "esnext"],
|
||
|
// index: 0,
|
||
|
// newFileContent: {
|
||
|
// "/dir/tsconfig.json":
|
||
|
// `{
|
||
|
// "compilerOptions": {
|
||
|
// "target": "es2017",
|
||
|
// "module": "esnext",
|
||
|
// }
|
||
|
// }`
|
||
|
// }
|
||
|
// });
|