File tree 2 files changed +13
-0
lines changed
tests/baselines/reference/api
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -617,6 +617,12 @@ namespace ts.server.protocol {
617
617
* so this description should make sense by itself if the parent is inlineable=true
618
618
*/
619
619
description : string ;
620
+
621
+ /**
622
+ * A message to show to the user if the refactoring cannot be applied in
623
+ * the current context.
624
+ */
625
+ notApplicableReason ?: string ;
620
626
}
621
627
622
628
export interface GetEditsForRefactorRequest extends Request {
@@ -3217,6 +3223,7 @@ namespace ts.server.protocol {
3217
3223
readonly allowTextChangesInNewFiles ?: boolean ;
3218
3224
readonly lazyConfiguredProjectsFromExternalProject ?: boolean ;
3219
3225
readonly providePrefixAndSuffixTextForRename ?: boolean ;
3226
+ readonly provideRefactorNotApplicableReason ?: boolean ;
3220
3227
readonly allowRenameOfImportPath ?: boolean ;
3221
3228
readonly includePackageJsonAutoImports ?: "auto" | "on" | "off" ;
3222
3229
}
Original file line number Diff line number Diff line change @@ -6881,6 +6881,11 @@ declare namespace ts.server.protocol {
6881
6881
* so this description should make sense by itself if the parent is inlineable=true
6882
6882
*/
6883
6883
description: string;
6884
+ /**
6885
+ * A message to show to the user if the refactoring cannot be applied in
6886
+ * the current context.
6887
+ */
6888
+ notApplicableReason?: string;
6884
6889
}
6885
6890
interface GetEditsForRefactorRequest extends Request {
6886
6891
command: CommandTypes.GetEditsForRefactor;
@@ -8902,6 +8907,7 @@ declare namespace ts.server.protocol {
8902
8907
readonly allowTextChangesInNewFiles?: boolean;
8903
8908
readonly lazyConfiguredProjectsFromExternalProject?: boolean;
8904
8909
readonly providePrefixAndSuffixTextForRename?: boolean;
8910
+ readonly provideRefactorNotApplicableReason?: boolean;
8905
8911
readonly allowRenameOfImportPath?: boolean;
8906
8912
readonly includePackageJsonAutoImports?: "auto" | "on" | "off";
8907
8913
}
You can’t perform that action at this time.
0 commit comments