1
1
mirror of https://github.com/enso-org/enso.git synced 2024-12-24 13:02:40 +03:00
Commit Graph

74 Commits

Author SHA1 Message Date
Hubert Plociniczak
85d4337f26
Project save backed by git ()
This change adds support for Version Controlled projects in language server.
Version Control supports operations:
- `init` - initialize VCS for a project
- `save` - commit all changes to the project in VCS
- `restore` - ability to restore project to some past `save`
- `status` - show the status of the project from VCS' perspective
- `list` - show a list of requested saves

# Important Notes
Behind the scenes, Enso's VCS uses git (or rather [jGit](https://www.eclipse.org/jgit/)) but nothing stops us from using a different implementation as long as it conforms to the establish API.
2022-11-14 17:32:39 +00:00
Dmitry Bushev
14012a751f
Add parent type field to suggestion ()
PR adds `parentType` field to the `Type` suggestion. All Enso types have parent type except `Any`.
2022-11-07 13:21:04 +00:00
Dmitry Bushev
a6ce49e8a5
Split Atom suggestion entry to Type and Constructor ()
Changelog:
- update: split `Atom` suggestion to `Type` and `Constructor`
- update: gui API
- update: JSONRPC doc
2022-11-02 09:53:40 +00:00
Dmitry Bushev
46441ca7a8
Add isStatic method field ()
PR adds `isStatic` field to suggestion. The field is required for Component Browser.
2022-10-26 09:12:45 +00:00
Jaroslav Tulach
835ac05218
Engine should send notification about node status ()
When nodes get invalidated in the cache, they have to be recomputed. Let the IDE know which of the nodes are pending by sending `Api.ExpressionUpdate.Payload.Pending` message.

# Important Notes
This PR introduces new `Api.ExpressionUpdate.Payload.Pending` message. This message is delivered before re-computation of nodes. Later `Api.ExpressionUpdate.Payload.Value` or other is sent to notify the IDE that a value for given node is available.

Trivial implementation of of the `Api.ExpressionUpdate.Payload.Pending` message in the IDE is provided by this PR to (improperly) visualize pending node status - further improvements needed in follow up PRs.
2022-09-28 12:35:12 +00:00
Dmitry Bushev
de0a231417
IDE uses new visualization API () 2022-09-01 15:33:46 +03:00
Hubert Plociniczak
3fa78afd10
Support Autosave for open buffers ()
This change adds Autosave action for open buffers. The action is scheduled
after every edit request and is cancelled by every explicit save file request, if
necessary. Successful autosave also notifies any active clients of the buffer.

Related to https://www.pivotaltracker.com/story/show/182721656

# Important Notes
WIP
2022-08-11 11:45:12 +00:00
Dmitry Bushev
98d30bccf3
Enable caching in visualization functions ()
PR allows to attach metod pointers as a visualization expressions. This way it allows to attach a runtime instrument that enables caching of intermediate expressions.

# Important Notes
ℹ️ API is backward compatible.

To attach the visualization with caching support, the same `executionContext/attachVisualisation` method is used, but `VisualisationConfig` message should contain the message pointer.
While `VisualisationConfiguration` message has changed, the language server accepts both new and old formats to keep visualisations working in IDE.

#### Old format

```json
{
"executionContextId": "UUID",
"visualisationModule": "local.Unnamed.Main",
"expression": "x -> x.to_text"
}
```

#### New format

```json
{
"executionContextId": "UUID",
"expression": {
"module": "local.Unnamed.Main",
"definedOnType": "local.Unnamed.Main",
"name": "encode"
}
}
```
2022-08-10 12:01:33 +00:00
Mateusz Czapliński
c6835d2de7
Show custom icons in Component Browser ()
Show custom icons in Component Browser for entries that have a non-empty `Icon` section in their docs with the section's body containing a name of a predefined icon.

https://www.pivotaltracker.com/story/show/182584336

#### Visuals

A screenshot of a couple custom icons in the Component Browser:

<img width="346" alt="Screenshot 2022-07-27 at 15 55 33" src="https://user-images.githubusercontent.com/273837/181265249-d57f861f-8095-4933-9ef6-e62644e11da3.png">

# Important Notes
- The PR assigns icon names to four items in the standard library, but only three of them are shown in the Component Browser because of [a parsing bug in the Engine](https://www.pivotaltracker.com/story/show/182781673).
- Icon names are assigned only to four items in the standard library because only two currently predefined icons match entries in the currently defined Virtual Component Groups. Adjusting the definitions of icons and Virtual Component Groups is covered by [a different task](https://www.pivotaltracker.com/story/show/182584311).
- A bug in the documentation of the Enso protocol message `DocSection` is fixed. A `text` field in the `Tag` interface is renamed to `body` (this is the field name used in Engine).
2022-08-01 13:41:04 +00:00
Dmitry Bushev
2c780ef6ba
Add command for changing expression value ()
Implement `text/applyExpressionValue` command.
2022-07-13 15:59:47 +00:00
Dmitry Bushev
b59a496589
Create execution context with provided id () 2022-07-11 14:59:38 +03:00
Dmitry Bushev
a54bfb8c82
API for value updates ()
Changelog:
- Describe the `EditKind` optional parameter that allows enabling engine-side optimizations, like value updates
- Describe the `text/openBuffer` message required for the lazy visualizations feature
2022-06-20 12:30:33 +00:00
Dmitry Bushev
713bf3548d
Clarify components API doc () 2022-06-15 11:32:05 +03:00
Mateusz Czapliński
656d6e7660
Virtual Component Groups in the Hierarchical Action List (1/2) ()
Parse the Engine's response containing Virtual Component Groups and store the results in a field of the Execution Context type.

https://www.pivotaltracker.com/story/show/181865548

# Important Notes
- This PR implements the subtask 1 of 2 in the ["Virtual Component Groups in the Hierarchical Action List" task](https://www.pivotaltracker.com/story/show/181865548).

[ci no changelog needed]
2022-06-03 17:18:20 +00:00
Jaroslav Tulach
fe77bb0fd3
Documenting ENSO_JVM_OPTS & co. () 2022-04-19 17:54:23 +03:00
Dmitry Bushev
998d078b9a
Fill component groups of standard libraries ()
Changelog:
- add: component groups to package descriptions
- add: `executionContext/getComponentGroups` method that returns component groups of libraries that are currently loaded
- doc: cleanup unimplemented undo/redo commands
- refactor: internal component groups datatype
2022-04-14 13:12:18 +00:00
Dmitry Bushev
a34c2bcfe6
Implement Documentation Sections API () 2022-03-25 10:49:37 +03:00
Dmitry Bushev
d3846578cc
Fix Error Payload Serialization () 2022-03-04 11:57:49 +03:00
Dmitry Bushev
40f44be858
Update the Language Server API () 2022-03-03 16:28:04 +03:00
Dmitry Bushev
3858ae7517
Add API for component groups () 2022-02-24 15:41:14 +03:00
Dmitry Bushev
9010a2c3a3
doc: Range datatype () 2022-02-22 13:21:24 +03:00
Dmitry Bushev
607330712a
Add support for conversions in Language Server () 2021-12-03 11:31:44 +03:00
Radosław Waśko
46c31bb9a5
Preinstalling With Dependencies () 2021-11-23 11:51:17 +03:00
Dmitry Bushev
5f491b612a
Update modifyVisualization docs () 2021-08-20 12:53:58 +01:00
Radosław Waśko
8cef409db2
Getting and Setting Library Metadata () 2021-08-20 10:23:05 +02:00
Radosław Waśko
63819526d7
Update the editions/listDefinedLibraries Endpoint () 2021-08-19 17:21:31 +02:00
Dmitry Bushev
de1a0ced60
Execution complete notification ()
Add executionContext/executionComplete notification
2021-08-12 19:26:44 +03:00
Radosław Waśko
31167fd6ae
Revert "Revert "Library Publishing MVP ()"" () 2021-08-09 16:00:04 +02:00
Ara Adkins
a1116995d8
Fix a bad heuristic for identifying module docs () 2021-08-03 13:19:22 +01:00
Ara Adkins
a7478bc573
Revert "Library Publishing MVP ()"
This reverts commit 1bd4e5824e.
2021-07-26 10:32:19 +01:00
Radosław Waśko
1bd4e5824e
Library Publishing MVP () 2021-07-23 18:16:34 +02:00
Dmitry Bushev
980ba8cb65
Add Reexport Field to Suggestions ()
Add the reexport field to suggestions
2021-07-20 19:10:53 +03:00
Radosław Waśko
86fcd86055
New Language Server API Implementations / Mocks () 2021-07-17 16:49:51 +02:00
Radosław Waśko
8f57d67bc6
Update Language Server API for Libraries () 2021-07-13 16:00:55 +02:00
Radosław Waśko
8d71145d57
Add File System Path to the Content Roots () 2021-07-05 11:23:29 +02:00
Radosław Waśko
0b347d7443
Support for Multiple Content Roots () 2021-06-29 18:52:26 +02:00
Marcin Kostrzewa
334a022ffd
Import syntax including namespace () 2021-06-24 12:42:24 +02:00
Maciej Mikołajek
4173dd810f
Documentation in the Suggestions Database () 2021-06-22 14:44:48 +02:00
Ara Adkins
57f1913f19
Fix a missing change in the LS protocol spec () 2021-06-21 10:46:19 +01:00
Ara Adkins
af4558a93c
Refactor the LS to support multiple content roots () 2021-06-16 11:00:42 +01:00
Ara Adkins
90c020d666
Implement byte-based file operations () 2021-06-11 14:48:28 +01:00
Dmitry Bushev
d67f7a2b31
Add HTML Documentation API ()
Add support for the HTML documentation chunks
2021-06-01 15:43:22 +03:00
Ara Adkins
1661832c95
Update the FlatBuffers schemas () 2021-05-28 13:27:41 +01:00
Ara Adkins
a981e72fdf
Provide API access to the project name () 2021-05-27 16:13:52 +01:00
Ara Adkins
3890abe6fa
Update the protocol to support streaming files () 2021-05-26 15:08:41 +01:00
Dmitry Bushev
f34f8be895
Add evaluation for one-shot expressions () 2021-05-21 14:19:21 +01:00
Dmitry Bushev
d9e1a47460
Report Visualization Errors ()
Add `executionContext/visualisationEvaluationFailed`
notification
2021-04-21 16:32:22 +03:00
Dmitry Bushev
96957b7b03
Sync Suggestions Database when Renaming the Project ()
Changelog:
- feat: during the boot, prune outdated modules 
  from the suggestions database
- feat: when renaming the project, send updates 
  about changed records in the database
- refactor: remove deprecated 
  executionContext/expressionValuesComputed 
  notification
2021-04-06 14:23:12 +03:00
Ara Adkins
8e942b5fa0
Rank suggestions by self-type specificity () 2021-03-29 16:31:17 +01:00
Dmitry Bushev
b5e9895fa7
Initialize language server on client connection () 2021-03-04 16:59:05 +00:00