Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
12.5
-
None
-
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
Please, check the full stack trace in the attached file called stack-trace.txt.
Steps to reproduce:
- Open a TypeScript file (with ".ts" extension).
- Write a class like this:
export class Student { private age: number; }
- Select the declaration: private readonly age: number;.
- Press Alt + Enter .
- Choose {{ Generate 'get' and 'set' accessors}}.
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 Please, check the full stack trace in the attached file called stack-trace.txt . Steps to reproduce: Open a TypeScript file (with ".ts" extension). Write a class like this: export class Student { private age: number; } Select the declaration: private readonly age: number; . Press Alt + Enter . Choose {{ Generate 'get' and 'set' accessors}}.
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:
- Open a TypeScript file (with ".ts" extension).
- Write a class like this:
export class Student { private age: number; }
- Select the declaration: private readonly age: number;.
- Press Alt + Enter .
- Choose Generate 'get' and 'set' accessors.