improving completion process

pull/5241/head
STetsing 4 weeks ago
parent 51c4fbd2e8
commit f964671776
  1. 16
      apps/remix-ide/src/assets/list.json
  2. 6
      libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts

@ -1033,9 +1033,21 @@
"urls": [ "urls": [
"dweb:/ipfs/QmVTALD1WUQwRvEL19jgwrEFyBJMQmy9z32zvT6TAtYPY1" "dweb:/ipfs/QmVTALD1WUQwRvEL19jgwrEFyBJMQmy9z32zvT6TAtYPY1"
] ]
},
{
"path": "soljson-v0.8.28+commit.7893614a.js",
"version": "0.8.28",
"build": "commit.7893614a",
"longVersion": "0.8.28+commit.7893614a",
"keccak256": "0x8e01bd0cafb8a8bab060453637101a88e4ab6d41c32645a26eaca541fb169c8e",
"sha256": "0x72ef580a6ec5943130028e5294313f24e9435520acc89f8c9dbfd0139d9ae146",
"urls": [
"dweb:/ipfs/QmVtdNYdUC4aX6Uk5LrxDT55B7NgGLnLcA2wTecF5xUbSS"
]
} }
], ],
"releases": { "releases": {
"0.8.28": "soljson-v0.8.28+commit.7893614a.js",
"0.8.27": "soljson-v0.8.27+commit.40a35a09.js", "0.8.27": "soljson-v0.8.27+commit.40a35a09.js",
"0.8.26": "soljson-v0.8.26+commit.8a97fa7a.js", "0.8.26": "soljson-v0.8.26+commit.8a97fa7a.js",
"0.8.25": "soljson-v0.8.25+commit.b61c2a91.js", "0.8.25": "soljson-v0.8.25+commit.b61c2a91.js",
@ -1131,5 +1143,5 @@
"0.4.0": "soljson-v0.4.0+commit.acd334c9.js", "0.4.0": "soljson-v0.4.0+commit.acd334c9.js",
"0.3.6": "soljson-v0.3.6+commit.3fc68da5.js" "0.3.6": "soljson-v0.3.6+commit.3fc68da5.js"
}, },
"latestRelease": "0.8.27" "latestRelease": "0.8.28"
} }

@ -171,10 +171,10 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
} }
const text_after = word_after.split('\n')[0].trim() const text_after = word_after.split('\n')[0].trim()
// if clean contains the content of text_after, remove it if (clean.toLowerCase().includes(text_after.toLowerCase())){
if (clean.includes(text_after)){ clean = clean.replace(text_after, '') // apply regex to conserve the case
clean = clean.replace(text_after, '')
} }
return clean return clean
} }

Loading…
Cancel
Save