GithubHelp home page GithubHelp logo

Comments (10)

ritwickdey avatar ritwickdey commented on May 18, 2024 1

Ok! Try a settings on the Node.js and/or laravel project.

"liveServer.settings.NoBrowser" : true,
"liveServer.settings.ignoreFiles": [
          "*",
          "**"
 ] 

[NOTE : IT WILL DISABLE LIVE RELOAD.]

Now what about the CPU usage?

if it works, now for Node.JS project, try this

"liveServer.settings.ignoreFiles": [
          "**/node_modules/**"
 ] 

Is this works for Node.js ? (Though I excluded this folder from b9cdc13 ), just give a try and let me know.

from vscode-live-server.

ritwickdey avatar ritwickdey commented on May 18, 2024

This issue seems like #26

A TEST (I don't have MAC, so I need your feedback) :

Create a simple HTML project
And start the live server and check cpu usages .

from vscode-live-server.

ritwickdey avatar ritwickdey commented on May 18, 2024

If you want to help in regarding this issue @bestvow.

from vscode-live-server.

bestvow avatar bestvow commented on May 18, 2024

Please tell me your live server version.
image

from vscode-live-server.

amc123-glitch avatar amc123-glitch commented on May 18, 2024

I tested the plain html file and the cpu usage stayed normal low usage. It seems to have been only on projects utilizing laravel and node js for me.

As for my version of live server extension I currently have 3.0.0 as that is the latest one I see in the extensions market tab.

I attempted a laravel and node project and while the usage decreased, it went from 140-160 to 16-130. If there was an update pushed out, I may not have access to it cause there was no updates when I opened code.

screen shot 2017-10-25 at 2 36 12 pm

from vscode-live-server.

ritwickdey avatar ritwickdey commented on May 18, 2024

...And, where all the dependencies for laravel project are stored (by composer package manager) ? [I DON'T KNOW]

"liveServer.settings.ignoreFiles": [
          "**/<THE FOLDER NAME>/**"
 ] 

Give a try this also.

from vscode-live-server.

bestvow avatar bestvow commented on May 18, 2024

Manual ignore the file that you don't need to live reload , such as node_modules folder.
About to your PHP project , you can analyze the project dependencies file and ignore it.
Most possible lead to overload your cpu may the laravel frame files.
The more files need to watch and reload the more cpu utilization percentage increase.
(Sorry for my terrible english syntax)

from vscode-live-server.

amc123-glitch avatar amc123-glitch commented on May 18, 2024

I have tried implementing your settings and still it is staying around 140 to 150. Tried ignoring just about every folder/file as well.

from vscode-live-server.

rjoydip-zz avatar rjoydip-zz commented on May 18, 2024

@bestvow Please try with newly released version. I have check code helper in a node.js project. It's working fine here. I am closing this issue if you faced the same issue with the latest version reopen it. Thank you

from vscode-live-server.

drabastomek avatar drabastomek commented on May 18, 2024

Still an issue on mac on 6/1/21

from vscode-live-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.