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:
Sandeep Somavarapu
2022-11-01 15:41:19 +01:00
committed by GitHub
parent b0da2ea781
commit fe882ab334
18 changed files with 64 additions and 119 deletions

View File

@@ -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();