aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code')
-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 }