/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/'use strict';import*asassertfrom'assert';
test('active text editor',(done)=>{workspace.openTextDocument(join(workspace.rootPath,'./far.js')).then(doc=>{returnwindow.showTextDocument(doc).then((editor)=>{constactive=window.activeTextEditor;assert.ok(active);assert.equal(active.document.uri.fsPath,doc.uri.fsPath);});}).then(()=>done(),(error)=>done(error));});