mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 09:35:37 -05:00
Fix some TSLint issues (#3605)
This commit is contained in:
@@ -99,7 +99,7 @@ class MainThreadNotebookEditor extends Disposable {
|
||||
}
|
||||
|
||||
function wait(timeMs: number): Promise<void> {
|
||||
return new Promise(resolve => setTimeout(resolve, timeMs));
|
||||
return new Promise((resolve: Function) => setTimeout(resolve, timeMs));
|
||||
}
|
||||
|
||||
|
||||
@@ -316,8 +316,7 @@ export class MainThreadNotebookDocumentsAndEditors extends Disposable implements
|
||||
let trusted = uri.scheme === Schemas.untitled;
|
||||
let model = new NotebookInputModel(uri, undefined, trusted, undefined);
|
||||
let providerId = options.providerId;
|
||||
if(!providerId)
|
||||
{
|
||||
if (!providerId) {
|
||||
// Ensure there is always a sensible provider ID for this file type
|
||||
providerId = getProviderForFileName(uri.fsPath, this._notebookService);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user