aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src
diff options
context:
space:
mode:
authorShuiRuTian <[email protected]>2021-01-10 06:10:36 +0000
committerShuiRuTian <[email protected]>2021-01-10 06:10:36 +0000
commit09ed9d044495971c143dc8c9879dd92d3989976f (patch)
tree1cca70c65dbadc2e1d747c67a8557a94f143d3de /editors/code/src
parent64240a44bec83da2a51a887aac3520110977a7e1 (diff)
fix issue.
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/client.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts
index 2a8f2deb4..fb8cd4873 100644
--- a/editors/code/src/client.ts
+++ b/editors/code/src/client.ts
@@ -58,6 +58,13 @@ export function createClient(serverPath: string, cwd: string, extraEnv: Env): lc
58 // 2. filter some change in here. 58 // 2. filter some change in here.
59 // 2.1 rename from or to `mod.rs` should be special. 59 // 2.1 rename from or to `mod.rs` should be special.
60 // 2.2 not all folder change should be cared, only those have files with ".rs" postfix. 60 // 2.2 not all folder change should be cared, only those have files with ".rs" postfix.
61 let newFiles = data.files.map((file)=>{
62 const isFolder = !file.oldUri.path.endsWith(".rs");
63 return !isFolder ? file : {
64 oldUri:vscode.Uri.file(file.oldUri.path+'/'),
65 newUri:vscode.Uri.file(file.newUri.path+'/')
66 }});
67 data = {...data, files:newFiles};
61 return next(data); 68 return next(data);
62 } 69 }
63 } 70 }