Merge branch 'fixdisablingparser' of https://github.com/ethereum/remix-project into fixdisablingparser

pull/5370/head
filip mertens 2 years ago
commit 8e75e1c48c
  1. 4
      apps/remix-ide/src/app/plugins/parser/services/code-parser-antlr-service.ts

@ -76,7 +76,7 @@ export default class CodeParserAntlrService {
const average = values.reduce((a, b) => a + b, 0) / values.length const average = values.reduce((a, b) => a + b, 0) / values.length
if (average > this.parserTreshHold) { if (average > this.parserTreshHold) {
this.cache[file].parsingEnabled = false this.cache[file].parsingEnabled = false
this.plugin.call('notification', 'toast','Some autocomplete features will be disabled temporarily because the file takes too long to process.') this.plugin.call('notification', 'toast','Some autocomplete features will be temporarily disabled because the file takes too long to process.')
} else { } else {
this.cache[file].parsingEnabled = true this.cache[file].parsingEnabled = true
} }
@ -286,4 +286,4 @@ export default class CodeParserAntlrService {
return block return block
} }
} }

Loading…
Cancel
Save