Skip to content

Julia: Execute File doesn't recognize a module #1500

@aviatesk

Description

@aviatesk

MRE would be to invoke this command for e.g. VSCodeServer/src/trees.jl.
I tracked down this is because this commands uses vscode.Position(0, 0) for the current position in a document and get_expr return nothing for this case and so finally getModuleForEditor always returns Main for that case.

The super easy fix is to change the default position into vscode.Position(0, 1) or whatever, but that won't be ideal, taking an empty editor into consideration.
Maybe @ZacLN do you have an idea to fix this case ? If it's not easy to fix, I think we can go with the easy way for now.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions