microsoft / vscode-livepreview

Hosts a local server in your workspace for you to preview your webpages.
http://aka.ms/live-preview
MIT License
434 stars 60 forks source link

disable some debug console messages #676

Closed erikdemarco closed 2 months ago

erikdemarco commented 2 months ago

How to hide/disable these annoying console message everytime i type, I already change the live preview "only to saved files" or to "never" but still:

[Extension Host] (VSCode) 2024-08-22 18:01:09 [INFO]: Completion request succeeded (781.07ms)
console.ts:137 [Extension Host] (VSCode) 2024-08-22 18:01:09 [INFO]: No completions were generated
console.ts:137 [Extension Host] (VSCode) 2024-08-22 18:01:09 [INFO]: provideInlineCompletionItems request succeeded (784.65ms)
localProcessExtensionHost.ts:275 Extension Host
localProcessExtensionHost.ts:276 (VSCode) 2024-08-22 18:01:09 [INFO]: Completion request succeeded (781.07ms)
(VSCode) 2024-08-22 18:01:09 [INFO]: No completions were generated
(VSCode) 2024-08-22 18:01:09 [INFO]: provideInlineCompletionItems request succeeded (784.65ms)

console.ts:137 [Extension Host] (VSCode) 2024-08-22 18:01:11 [INFO]: Completion request was cancelled by token (1476.16ms)
localProcessExtensionHost.ts:275 Extension Host
localProcessExtensionHost.ts:276 (VSCode) 2024-08-22 18:01:11 [INFO]: Completion request was cancelled by token (1476.16ms)

console.ts:137 [Extension Host] (VSCode) 2024-08-22 18:01:12 [INFO]: Completion request succeeded (861.26ms)
console.ts:137 [Extension Host] (VSCode) 2024-08-22 18:01:12 [INFO]: No completions were generated
console.ts:137 [Extension Host] (VSCode) 2024-08-22 18:01:12 [INFO]: provideInlineCompletionItems request succeeded (864.2ms)
localProcessExtensionHost.ts:275 Extension Host
localProcessExtensionHost.ts:276 (VSCode) 2024-08-22 18:01:12 [INFO]: Completion request succeeded (861.26ms)
(VSCode) 2024-08-22 18:01:12 [INFO]: No completions were generated
(VSCode) 2024-08-22 18:01:12 [INFO]: provideInlineCompletionItems request succeeded (864.2ms)

Code sample to teproduce

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Title</title>
</head>
<body>
<script>
console.log('hello, world!');
</script>
</body>
</html>

Steps to reproduce the behavior: -right click 'show preview' -click "open devtools pane(l)" -now type anything, flow of messages will start streaming..

andreamah commented 2 months ago

These look like they're from another extension (perhaps copilot completions)? We share a devtools panel with the IDE itself, so these aren't from live preview. This should probably be filed with copilot completions https://github.com/community/community/discussions/categories/copilot.

However, an idea: you can disable logs from extensions by doing Developer: Set Log Level. For copilot, you can select Github Copilot to error or warning (something less verbose than info). There should also be a way to set a default from there also.