Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR attempts to support CodeLens for
julia
files (#858), enabling users to explore and execute code cells directly in the editor.The initial commit only demonstrates the availability of CodeLens for
julia
files. To implement the complete functionality, there are two more tasks to be done.julia.executeCell
command is used to execute code cells. However, the range of the code cell is reliant on the pointer position, where the trigger of CodeLens actions may not enclose the current pointer position.julia-vscode/src/interactive/repl.ts
Lines 856 to 857 in 9b00945
To address this issue, I propose two separate approaches:
julia.executeCell
command to execute either the code cell enclosing the pointer position or the code cell enclosing the CodeLens trigger position.I would like to hear the community's opinion on this issue. Either way, I'm willing to implement the solution.
julia.executeAboveCells
to execute all code cells above the current pointer position if the second solution above is adopted, which is also a common feature in Jupyter notebooks and vscode-R extension.