2019-01-11 15:20:12 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @Filename: /dir/a.ts
|
|
|
|
////declare const decorator: any;
|
|
|
|
////class A {
|
|
|
|
//// @decorator method() {};
|
|
|
|
////};
|
|
|
|
|
2019-04-25 23:55:04 +02:00
|
|
|
// @Filename: /dir/jsconfig.json
|
2019-01-11 15:20:12 +01:00
|
|
|
////{
|
|
|
|
//// "compilerOptions": {
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
|
|
|
goTo.file("/dir/a.ts");
|
|
|
|
verify.codeFix({
|
|
|
|
description: "Enable the 'experimentalDecorators' option in your configuration file",
|
|
|
|
newFileContent: {
|
2019-04-25 23:55:04 +02:00
|
|
|
"/dir/jsconfig.json":
|
2019-01-11 15:20:12 +01:00
|
|
|
`{
|
|
|
|
"compilerOptions": {
|
2020-01-18 21:24:08 +01:00
|
|
|
"experimentalDecorators": true
|
2019-01-11 15:20:12 +01:00
|
|
|
}
|
|
|
|
}`,
|
|
|
|
},
|
|
|
|
});
|