This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258659

Summary: String literal and RegEx literal
Product: javascript Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 242387    
Attachments: Code Completion for String Literals
Code Completion for RegExp Literals

Description Petr Pisl 2016-04-05 13:13:17 UTC
There should be code completion after string literal and should offer fields and methods of String object.

Example:
"string".upperCase()
Comment 1 Petr Pisl 2016-04-06 11:37:03 UTC
The same should be applied for regex literals.
Comment 2 Petr Pisl 2016-04-13 14:07:02 UTC
Created attachment 159252 [details]
Code Completion for String Literals

Now NetBeans offers code completion after a string literal. It offers nonstatic fields and methods from String object. 

Also the signature file is updated to fit ECMAScript 6 specification. Some methods marked as deprecated, some added.
Comment 3 Petr Pisl 2016-04-13 14:08:38 UTC
Created attachment 159253 [details]
Code Completion for RegExp Literals

NetBeans are able to offers public nonstatic fields and methods of RegExp object for regexp literals. 

Also the runtime signature file for RegExp object was updated to fit ECMAScript 6 specification.
Comment 4 Petr Pisl 2016-04-13 14:09:09 UTC
Done in ecma6-truffel branch.