Remove unwanted file and change log level (#15554)
* Remove unwanted file and change log level * Fix linter
This commit is contained in:
Родитель
b5b2528690
Коммит
a9cfb97898
22
one.js
22
one.js
|
@ -1,22 +0,0 @@
|
|||
async function sleep(n) {
|
||||
return new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, n);
|
||||
});
|
||||
}
|
||||
|
||||
async function generateHash() {
|
||||
console.log('generating hash...');
|
||||
await sleep(100);
|
||||
return 'hash';
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const map = new Map();
|
||||
map.set(1, 'one');
|
||||
|
||||
const hash = map.get(2) || (await generateHash());
|
||||
console.log('generated hash:', hash);
|
||||
}
|
||||
main();
|
|
@ -8,7 +8,7 @@ import { IExtensionSyncActivationService } from '../../platform/activation/types
|
|||
import { IPythonApiProvider, IPythonExtensionChecker } from '../../platform/api/types';
|
||||
import { PylanceExtension } from '../../platform/common/constants';
|
||||
import { getDisplayPath, getFilePath } from '../../platform/common/platform/fs-paths';
|
||||
import { traceInfo, traceVerbose } from '../../platform/logging';
|
||||
import { traceVerbose } from '../../platform/logging';
|
||||
import { IControllerRegistration } from '../../notebooks/controllers/types';
|
||||
import { IKernelProvider, isRemoteConnection } from '../../kernels/types';
|
||||
import { noop } from '../../platform/common/utils/misc';
|
||||
|
@ -146,7 +146,7 @@ del _VSCODE_os, _VSCODE_sys, _VSCODE_builtins
|
|||
|
||||
if (!interpreter) {
|
||||
// Empty string is special, means do not use any interpreter at all.
|
||||
traceInfo(`No interpreter for Pylance for Notebook URI "${getDisplayPath(notebook.uri)}"`);
|
||||
traceVerbose(`No interpreter for Pylance for Notebook URI "${getDisplayPath(notebook.uri)}"`);
|
||||
return '';
|
||||
}
|
||||
traceVerbose(
|
||||
|
|
Загрузка…
Ссылка в новой задаче