Skip to content

make .jsh useful  #1601

Open
Open

Description

@maxandersen

would be great to be able to open .jsh files with syntax highlighting enabled and have content assist from the associated project work on it.

pretty please.

Activity

  1. fbricon commented on Aug 31, 2020

    @fbricon
    Collaborator

    That'll require upstream JDT to support jshell scripts. cc @akurtakov @rgrunber @scela

  2. rgrunber commented on Sep 4, 2020

    @rgrunber
    Member

    This seems pretty similar to https://help.eclipse.org/2020-06/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-create_scrapbook_page.htm . Although that makes use of JavaSnippet{Editor,ViewerConfiguration,CompletionProcessor} which are definitely part of UI, so not the way to go.

    However, this also seems similar to what is done in JDT-LS when a java file created in an empty folder/project does have basic completion working. Could o.e.jdt.ls.core.internal.JDTUtils#getFakeCompilationUnit(uri) be modified to work with a .jsh file and an existing project ?

  3. maxandersen commented on Mar 12, 2022

    @maxandersen
    ContributorAuthor

    Any chance of this happening ? Really just need content assist per line using available classpath info for the project.

  4. maxandersen commented on Mar 12, 2022

    @maxandersen
    ContributorAuthor

    Related to #2355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions