@beunec/rivine 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -117,7 +117,11 @@ export class TurnRunner {
117
117
  }
118
118
  case 'code_file': {
119
119
  const e = event;
120
- this.cb.onFileTouched(String(e.path ?? ''), e.status);
120
+ const path = String(e.path ?? '').trim();
121
+ const rel = path.replace(/^\/workspace\/?/, '');
122
+ if (!rel || rel === '.' || rel.endsWith('/'))
123
+ break;
124
+ this.cb.onFileTouched(path, e.status);
121
125
  break;
122
126
  }
123
127
  case 'fs_request':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beunec/rivine",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Rivine Code in your terminal — Beunec's software engineering runtime constructs, working on the files you already have open.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Beunec Technologies",