mirror of
https://github.com/enso-org/enso.git
synced 2024-11-24 00:27:16 +03:00
d79b7df886
This PR fixes the `code_to_insert` method of entry to insert valid code according to the newest language version. Also created a separate method for getting imports required by given entry. Now, method entries do not add imports (except when they are extensions), and are insterted with place for this type `_.method`. Static methods and constructors are inserted with the type name, and proper import for type is added. There are some additional work done: * The ReferentName and NormalizedName were removed, as we are now case-sensitive. * All QualifiedName structures were replaced with new one in `name` module, as there is no longer functional difference between type qualified name and module qualified name. * The QualifiedName structure removes "Main" module segment where it is not necessary, thus simplifying our code base and avoiding potential issues. * Added macro `mock_suggestion_database` which should make creating consistent mocks of SuggestionDatabase much simpler. * Fixed bug where the visualization preview show no value for some time. https://user-images.githubusercontent.com/3919101/202750275-0d378d5f-1482-4637-bdcd-c428a9eac0d4.mp4 # Important Notes The tests in controller/searcher.rs file are not of the best quality, but those will be overhauled anyway when implementing my next task. |
||
---|---|---|
.. | ||
gui | ||
ide-desktop |