New CRMScript editor (again): Monaco

lock
push_pin
done
Answered
15

Hi all,

We have been testing whether it is possible to replace Codemirror as our CRMScript editor with Monaco (the basis of VSCode). We have currently implemented this as a testable feature in our latest build, hoping that some of you will try it out and tell us what is not working :-)

You can enable Monaco as your CRMScript editor by using the "rms.fcgi?action=debug" panel and tick the Monaco-checkbox. The setting is stored as a cookie in your browser and will only affect you in that particular browser, other users will not be affected. This setting is available in build "main_10.3.7_2024.05.23-01".

Sverre

23 May 2024 | 08:04 AM

All Replies (15)

Haven't got this build on SOD yet, but just curious, any particular reason why you are replacing the editor (again)? (better javascript/typescript support for the future? something else?)

23 May 2024 | 08:17 AM
Yes, after testing we have concluded that Monaco is easier to work with for us, and it offers better support for intellisense for both javascript/typescript as well as CRMScript.

Sverre
23 May 2024 | 11:00 AM

I haven't got this build yet either, but this is exciting! I can't wait to try it out. 

23 May 2024 | 09:44 AM

If you guys have some SOD tennant ID's, I can upgrade them.

Sverre

23 May 2024 | 11:00 AM
Cust36938
23 May 2024 | 11:17 AM
Cust11255 please!
23 May 2024 | 11:17 AM
Cust36668
23 May 2024 | 02:01 PM
Cust27129, Thank you!
23 May 2024 | 02:03 PM
Cust32284
24 May 2024 | 11:28 AM

Cust26135 please.

23 May 2024 | 06:19 PM

Hi all,

I have upgraded the abovementioned sites to main_10.3.7_2024.05.24-01 and also changed them from being on Release to being on Main (otherwise they would have gotten upgraded back to Release tonight). Be aware that these sites will now be upgraded more frequently to our latest code. Let us know if you need them back on the Release-branch. This can probably not be done immediately, but next week when we merge from main to release.

Sverre

24 May 2024 | 10:30 AM

Hi Sverre,

I got the new editor now, first impressions are good (related to intellissense, formatting, etc).

Did notice that it is trying to load a ts.worker.js file from the wrong url:

'https://sod.superoffice.com/superoffice/cs/javascript/monaco/ts.worker.js' instead of 'https://sod2.superoffice.com/Cust11255/cs/javascript/monaco/ts.worker.js'

24 May 2024 | 10:40 AM

Thank you Sverre! I tested it out for about five minutes and I like it so far.

Things I like:

  • Intellisense description dialog box is easy to read and well formatted.

 

  • Things like struct properties are immediately visible in Intellisense without having to click Save first. Yay!

 

Things to look at:

  • When hitting enter at the end of a line, it inserts four spaces. I expect it not to insert any spaces or tabs, I can do that myself if needed. 🙂


  • When getting multiple syntax errors after clicking save, they sometimes lie on top of each other, making it cluttered:


  • After first getting one syntax error (likes the ones above), it doesn't help fixing the error and then clicking save. The error tooltips still show up until I click OK.
24 May 2024 | 11:06 AM

To the good people in this thread: 
https://community.superoffice.com/en/technical/forums/api-forums/service-crmscript/from-javascript-to-typescript/ 

//Eivind

7 Jun 2024 | 01:00 PM

Is there a shortcut to get the editor in fullscreen mode ? 

27 Jun 2024 | 11:09 AM

Add reply