@codingame/monaco-vscode-files-service-override 4.5.2 → 5.0.1

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.
Files changed (2) hide show
  1. package/files.js +5 -4
  2. package/package.json +2 -2
package/files.js CHANGED
@@ -28,7 +28,7 @@ import { BrowserElevatedFileService } from './vscode/src/vs/workbench/services/f
28
28
  import { IElevatedFileService } from 'vscode/vscode/vs/workbench/services/files/common/elevatedFileService.service';
29
29
  import { registerServiceInitializePreParticipant, checkServicesNotInitialized } from 'vscode/lifecycle';
30
30
  import { logsPath } from 'vscode/workbench';
31
- import 'vscode/vscode/vs/workbench/contrib/files/browser/files.configuration.contribution';
31
+ import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution._configuration';
32
32
 
33
33
  class RegisteredFile {
34
34
  constructor(uri, readonly) {
@@ -170,9 +170,10 @@ class RegisteredFileSystemProvider extends Disposable {
170
170
  throw createFileSystemProviderError('file not found', FileSystemProviderErrorCode.FileNotFound);
171
171
  }
172
172
  async readdir(resource) {
173
- const includedPaths = ( Array.from(( this.files.keys()))
174
- .map(uri => extUri.relativePath(resource, ( URI.parse(uri)))))
175
- .filter(path => !path.startsWith('..'));
173
+ const includedPaths = ( ( Array.from(( this.files.keys()))
174
+ .map(uri => ( URI.parse(uri))))
175
+ .filter(uri => uri.path.startsWith(resource.path + '/'))
176
+ .map(uri => extUri.relativePath(resource, uri)));
176
177
  const files = includedPaths.filter(path => !path.includes('/'));
177
178
  const directories = ( includedPaths.filter(path => path.includes('/')).map(path => path.slice(0, path.indexOf('/'))));
178
179
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-files-service-override",
3
- "version": "4.5.2",
3
+ "version": "5.0.1",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@4.5.2"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@5.0.1"
30
30
  }
31
31
  }