Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6185

Inserting code in TypeScript file fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.5
    • None

    Description

      When I open a TypeScript file and try to generate code, this exception is thrown:

      java.lang.NullPointerException: Cannot invoke "org.eclipse.lsp4j.WorkspaceEdit.getDocumentChanges()" because "edit" is null
      

      Steps to reproduce:

      1. Open a TypeScript file (with ".ts" extension).
      2. Write a class like this:
        export class Student {
          private age: number;
        }
        
      1. Select the declaration: private readonly age: number;.
      2. Press Alt + Enter .
      3. Choose Generate 'get' and 'set' accessors.

      Attachments

        1. stack-trace-1.txt
          4 kB
          negora

        Activity

          People

            Unassigned Unassigned
            negora negora
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: