Page 1 of 1

JavaScript Service has been disabled - please help

PostPosted: February 6th, 2018, 12:43 pm
by julpalt
Hello!

I have a problem with JavaScript services in devsense

1. Loaded OpenEMR project from the Web http://www.open-emr.org/. It is php /mysql project
2. VS 2017 professional with DevSense is on my computer
3. Created New "Project from existing codes" in DevSense php extension
4. Got message at the top of the screen "The JavaScript language service has been disabled for project openEMR
5. Added tsconfig.json to the root directory - see below:
6. Got message at the top of the screen:"The JavaScript language service has been disabled for project onenEMR/tsconfig"
{
"compilerOptions": {
"allowJs": true, // include .js and .jsx in project context (defaults to only .ts and .tsx)
"noEmit": true // turns off downlevel compiler
},
"typeAcquisition": {
"enable": true // Defaulted to "false" with a tsconfig. Enables better IntelliSense in JS.
}
}

Re: JavaScript Service has been disabled - please help

PostPosted: February 13th, 2018, 3:17 pm
by maros.beno
Hi,
this JavaScript language service is part of Visual Studio. My guess is that OpenEMR project is too big for it to handle it. I think you can try to specify only certain javascript files in tsconfig, so this service can handle it. I'm afraid we can't do anything about this in PHP Tools.