yandeu / five-server-vscode

⚡ VSCode Extension for Five Server.
https://marketplace.visualstudio.com/items?itemName=yandeu.five-server
Other
120 stars 9 forks source link

Highlighting feature doesn't work #35

Open IvanVnucec opened 1 year ago

IvanVnucec commented 1 year ago

I'm on Windows 10. I've installed Live Server v0.1.12. I've created simple index.html with the source:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>Hello world</h1>
</body>
</html>

I've pressed Go Live and the Firefox browser card opened at localhost:5555. I've started typing but there is no highlighting in the browser.

What could be the problem?

Therminal output is the following:

  Five Server running at:
  > Network:  http://**********
  > Network:  http://**********
  > Local:    http://localhost:5555
06:36:37 [Five Server] change detected index.html (x1)
[etc...]
IvanVnucec commented 1 year ago

Then, I've added fiveserver.config.js in the foot with the following:

module.exports = {
    highlight: true, // enable highlight feature
    injectBody: true, // enable instant update
    remoteLogs: true, // enable remoteLogs
    remoteLogs: "yellow", // enable remoteLogs and use the color yellow
    injectCss: false, // disable injecting css
    navigate: true, // enable auto-navigation
};

But still no highlighting.

IvanVnucec commented 1 year ago

Ok, I've managed to enable highlighting by restarting the server. I thought that the highlighting is enabled by default.

Any thoughts why it didin't work in the first place (without importing server config)?