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 {
@@ -3223,6 +3229,7 @@ namespace ts.server.protocol {
3223
3229
readonly allowTextChangesInNewFiles ?: boolean ;
3224
3230
readonly lazyConfiguredProjectsFromExternalProject ?: boolean ;
3225
3231
readonly providePrefixAndSuffixTextForRename ?: boolean ;
3232
+ readonly provideRefactorNotApplicableReason ?: boolean ;
3226
3233
readonly allowRenameOfImportPath ?: boolean ;
3227
3234
readonly includePackageJsonAutoImports ?: "auto" | "on" | "off" ;
3228
3235
}
Original file line number Diff line number Diff line change @@ -6956,6 +6956,11 @@ declare namespace ts.server.protocol {
6956
6956
* so this description should make sense by itself if the parent is inlineable=true
6957
6957
*/
6958
6958
description: string;
6959
+ /**
6960
+ * A message to show to the user if the refactoring cannot be applied in
6961
+ * the current context.
6962
+ */
6963
+ notApplicableReason?: string;
6959
6964
}
6960
6965
interface GetEditsForRefactorRequest extends Request {
6961
6966
command: CommandTypes.GetEditsForRefactor;
@@ -8983,6 +8988,7 @@ declare namespace ts.server.protocol {
8983
8988
readonly allowTextChangesInNewFiles?: boolean;
8984
8989
readonly lazyConfiguredProjectsFromExternalProject?: boolean;
8985
8990
readonly providePrefixAndSuffixTextForRename?: boolean;
8991
+ readonly provideRefactorNotApplicableReason?: boolean;
8986
8992
readonly allowRenameOfImportPath?: boolean;
8987
8993
readonly includePackageJsonAutoImports?: "auto" | "on" | "off";
8988
8994
}
You can’t perform that action at this time.
0 commit comments