diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-05-29 21:21:11 +1000 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2021-05-31 16:37:36 +0200 |
commit | 925ba8fbbf947c2c95a616b43e3f89e20cd69e93 (patch) | |
tree | e52a6ad5d248b8d492e84fcfcfe5cee8e633d46c /cli/lsp/tsc.rs | |
parent | 475bc35646bc25d796b2638768cd5a79e3a0033e (diff) |
fix(#10765): lsp import fixes include extensions (#10778)
Fixes #10765
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r-- | cli/lsp/tsc.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index c345b705d..df39a3ba3 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -925,8 +925,8 @@ impl DocumentHighlights { #[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct TextChange { - span: TextSpan, - new_text: String, + pub span: TextSpan, + pub new_text: String, } impl TextChange { @@ -944,10 +944,10 @@ impl TextChange { #[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct FileTextChanges { - file_name: String, - text_changes: Vec<TextChange>, + pub file_name: String, + pub text_changes: Vec<TextChange>, #[serde(skip_serializing_if = "Option::is_none")] - is_new_file: Option<bool>, + pub is_new_file: Option<bool>, } impl FileTextChanges { |