timeout globbing

flattentree
bunsenstraat 11 months ago
parent e128bada5b
commit bb419eb01f
  1. 12
      apps/remix-ide/src/app/plugins/parser/code-parser.tsx
  2. 2
      apps/remix-ide/src/app/plugins/parser/services/code-parser-imports.ts

@ -169,14 +169,20 @@ export class CodeParser extends Plugin {
this.on('filePanel', 'setWorkspace', async () => {
await this.call('fileDecorator', 'clearFileDecorators')
await this.importService.setFileTree()
setTimeout(async () => {
await this.importService.setFileTree()}
, 2000)
})
this.on('fileManager', 'fileAdded', async () => {
await this.importService.setFileTree()
setTimeout(async () => {
await this.importService.setFileTree()}
, 2000)
})
this.on('fileManager', 'fileRemoved', async () => {
await this.importService.setFileTree()
setTimeout(async () => {
await this.importService.setFileTree()}
, 2000)
})
this.on('fileManager', 'currentFileChanged', async () => {

@ -51,7 +51,9 @@ export default class CodeParserImports {
matchWholeWord: false,
maxResults: 10000
}
const files = await this.plugin.call('ripgrep', 'glob', search)
// only get path property of files
this.data.files = files.map((x) => x.path)
} else {

Loading…
Cancel
Save