mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
api feedback (#164470)
* api feedback - remove critical log level - move log level off to be 0 * handle off log level * fix disabling log level in tests Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b0da2ea781
commit
fe882ab334
@@ -69,7 +69,7 @@ export function delay(ms: number) {
|
||||
export function withLogDisabled(runnable: () => Promise<any>): () => Promise<void> {
|
||||
return async (): Promise<void> => {
|
||||
const logLevel = await vscode.commands.executeCommand('_extensionTests.getLogLevel');
|
||||
await vscode.commands.executeCommand('_extensionTests.setLogLevel', 6 /* critical */);
|
||||
await vscode.commands.executeCommand('_extensionTests.setLogLevel', 'off');
|
||||
|
||||
try {
|
||||
await runnable();
|
||||
|
||||
Reference in New Issue
Block a user