Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Extensions, III] Make the reconstruction more readily available :D #124

Open
EagleoutIce opened this issue Oct 8, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request ux User experience

Comments

@EagleoutIce
Copy link
Member

EagleoutIce commented Oct 8, 2024

Slicing is nice:
Screenshot_20241107_102359

but graying out is not as beneficial whenever we have a lot of code at hand.
The command palette already offers a reconstruct option:
Screenshot_20241107_102436

It is registered as a command within the package.json:

{
"command": "vscode-flowr.slice.show.in.editor",
"title": "Show Current Slice in Editor (Reconstruct)",
"category": "flowR"
},

And linked to logic here:

context.subscriptions.push(vscode.commands.registerCommand('vscode-flowr.slice.show.in.editor', async() => {
return await showReconstructionInEditor()
}))

The reconstruction is important, but currently hard to access I am thinking about various ways of integrating it:

  1. Adding a show reconstruction by default option to the settings:
    export enum Settings {
    Category = 'vscode-flowr',
    VerboseLog = 'verboseLog',
    ServerHost = 'server.host',
    ServerPort = 'server.port',
    ServerAutoConnect = 'server.autoConnect',
    ServerConnectionType = 'server.connectionType',
    StyleSliceOpacity = 'style.sliceOpacity',
    StyleSliceDisplay = 'style.sliceDisplay',
    StyleOnlyHighlightActiveSelection = 'style.onlyHighlightActiveSelection',
    StyleMermaidMaxTextLength = 'style.mermaidMaxTextLength',
    Rexecutable = 'r.executable',
    }

    described at:
    "configuration": {

    with the option set, reconstruction should be on by default and shown automatically with the first slice request
  2. Add a context-menu entry, similar to what is already there:
    Screenshot_20241107_102941
  3. Add a command icon to the file icon row that allows users to view the reconstruction with a simple click:
    Screenshot_20241107_103107
@EagleoutIce EagleoutIce changed the title Make the reconstrction more readily available :D Make the reconstruction more readily available :D Oct 8, 2024
@EagleoutIce EagleoutIce changed the title Make the reconstruction more readily available :D [Extensions, III] Make the reconstruction more readily available :D Nov 7, 2024
@EagleoutIce EagleoutIce added enhancement New feature or request ux User experience labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ux User experience
Projects
None yet
Development

No branches or pull requests

2 participants