fix(40640) add missing notApplicableReason in protocol (#40680) (#40688)

* update protocol

* fix lint error

Co-authored-by: Jesse Trinity <jesse.trinity@microsoft.com>
This commit is contained in:
Daniel Rosenwasser
2020-09-21 23:53:03 -07:00
committed by GitHub
parent fee3bfbe91
commit e9d8ccb8b6
2 changed files with 13 additions and 0 deletions

View File

@@ -617,6 +617,12 @@ namespace ts.server.protocol {
* so this description should make sense by itself if the parent is inlineable=true
*/
description: string;
/**
* A message to show to the user if the refactoring cannot be applied in
* the current context.
*/
notApplicableReason?: string;
}
export interface GetEditsForRefactorRequest extends Request {
@@ -3217,6 +3223,7 @@ namespace ts.server.protocol {
readonly allowTextChangesInNewFiles?: boolean;
readonly lazyConfiguredProjectsFromExternalProject?: boolean;
readonly providePrefixAndSuffixTextForRename?: boolean;
readonly provideRefactorNotApplicableReason?: boolean;
readonly allowRenameOfImportPath?: boolean;
readonly includePackageJsonAutoImports?: "auto" | "on" | "off";
}