JavaScript Service has been disabled - please help

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

JavaScript Service has been disabled - please help

Postby notly1988 » August 15th, 2018, 2:01 am

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.
notly1988
 
Posts: 1
Joined: August 15th, 2018, 1:52 am

Re: JavaScript Service has been disabled - please help

Postby maros.beno » August 28th, 2018, 9:57 am

Hi! Theres a size limit for JavaScript files in VS project by default. I think if the project has more than 20MB of JavaScript files, the JavaScript service is disabled because of some performance and reliability issues. This has been added in VS 15.4, but it can be disabled if you add { "compilerOptions": { "disableSizeLimit": "true" , } } to your tsconfig file.

https://github.com/Microsoft/TypeScript/issues/7444

I hope this helps, have a nice day!
Maroš Beňo
User avatar
maros.beno
 
Posts: 34
Joined: October 12th, 2016, 12:11 pm


Return to PHP Tools

Who is online

Users browsing this forum: Miloslav Beno and 4 guests

User Control Panel

Login

Who is online

In total there are 5 users online :: 1 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 77 on September 4th, 2018, 9:46 pm

Users browsing this forum: Miloslav Beno and 4 guests
Phalanger