mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
Move vscode-api-tests to strict
This commit is contained in:
@@ -78,12 +78,12 @@ suite('languages namespace tests', () => {
|
||||
});
|
||||
|
||||
return workspace.openTextDocument(uri).then(doc => {
|
||||
return commands.executeCommand('vscode.executeCompletionItemProvider', uri, new Position(1, 0));
|
||||
}).then((result: CompletionList) => {
|
||||
return commands.executeCommand<CompletionList>('vscode.executeCompletionItemProvider', uri, new Position(1, 0));
|
||||
}).then((result: CompletionList | undefined) => {
|
||||
r1.dispose();
|
||||
assert.ok(ran);
|
||||
console.log(result.items);
|
||||
assert.equal(result.items[0].label, 'foo');
|
||||
console.log(result!.items);
|
||||
assert.equal(result!.items[0].label, 'foo');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -350,7 +350,7 @@ suite('window namespace tests', () => {
|
||||
});
|
||||
|
||||
test('showWorkspaceFolderPick', function () {
|
||||
const p = (<any>window).showWorkspaceFolderPick(undefined);
|
||||
const p = window.showWorkspaceFolderPick(undefined);
|
||||
|
||||
return commands.executeCommand('workbench.action.acceptSelectedQuickOpenItem').then(() => {
|
||||
return p.then(workspace => {
|
||||
|
||||
Reference in New Issue
Block a user