eclipse-theia/theia

Active Editor not updating after restart

Open

#6,421 建立於 2019年10月21日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)TypeScript (18,676 star) (2,478 fork)batch import
bughelp wantedplug-in systemvscode

描述

Description

After restart, selecting existing open editors does not update theia.window.activeTextEditor

Reproduction Steps

Create the HelloWorld example plugin

yo @theia/plugin

Update the code to show the language of the active editor as shown

testCode

Run the plugin in hosted mode and issue the 'Hello World' command. Initially the active editor is undefined as expected. Open a file HelloWorld command now shows the correct active editor.

Restart/Refresh the browser.

Select an existing editor and issue HelloWorld command The active editor is always undefined. Open a new file The command now reports the NEW active editor Select an old editor with different extension Clear the notification and issue the commend The wrong editor is now reported showing the newly opened editor rather than the older one.

OS Windows/Linux, Theia version: 10

testRun

貢獻者指南