Script Editor Changes

Stanley Martin
Tera Guru

I've noticed since we upgraded from Tokyo to Vancouver that there are some changes to the script editor.  Couple of changes really stand out for me at least.

In a client script, the editor doesn't complete anymore about a console.log statement.

I've also noticed another item.  When I type g_form.   I used to get a full list of methods but some don't seem to come up.  For example, when typing g_form.get, the only method that pops up is getValue().

 

Is there a property that is doing that?

StanleyMartin_1-1703616978238.png

 

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi @Stanley Martin 

yes the script editor is new and I wrote an article about that topic: https://www.servicenow.com/community/developer-articles/some-tips-and-tricks-for-the-new-monaco-code... 

And regarding the missing code completions for Client Scripts: At the moment I don't know any solution and only thing you can do is raising a ticket in the support portal.

Maik

View solution in original post

2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Hi @Stanley Martin 

yes the script editor is new and I wrote an article about that topic: https://www.servicenow.com/community/developer-articles/some-tips-and-tricks-for-the-new-monaco-code... 

And regarding the missing code completions for Client Scripts: At the moment I don't know any solution and only thing you can do is raising a ticket in the support portal.

Maik

Syd S
Tera Contributor

@Stanley Martin We skipped the Vancouver build but I discovered the same behavior when we migrated to Washington DC. The solution in this community article (glide.ui.syntax_editor.polaris = false, flush cache) did re-enable IntelliSense in our Sandbox but I am still researching. 

@Maik Skoddow your article about Monaco was very informative and exciting since I often use VS Code and copy into SN (we are not doing the SDK yet). It does not appear our instances have Monaco enabled (none of the options in your article work). I also don't see the options in my personal developer instance. Do you, or anything else reading, know if there is a system property to enable it or a way to verify it is installed? All of my searches for monaco so far have pointed to your article. 🙂