-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to continue debug when extension host restarts #55025
Comments
@chrmarti Can you please provide me your set up of extensions (installed, disabled) and the code you used to run this command? |
It reproduces without any extensions installed and also with just 'jerryhong.autofilename' installed but disabled: export function activate(context: vscode.ExtensionContext) {
let disposable = vscode.commands.registerCommand('extension.sayHello123', async () => {
const sampleWorkspace = '/Users/chrmarti/Development/repos/test.code-workspace';
vscode.commands.executeCommand('_workbench.enterWorkspace', vscode.Uri.file(`${sampleWorkspace}`), ['jerryhong.autofilename']);
});
context.subscriptions.push(disposable);
} (Even when that workspace is already open, maybe that should be a noop.) |
@chrmarti I guess you are doing this by launching extension host. When the extension host is being debugged, restarting the extension host by calling the method looks to me problematic. @alexandrudima @weinand Any insights on this? @chrmarti Can you please try this by installing the extension that has this command and running the command? |
@sandy081 You're right, it only reproduces when running the extension in dev mode. |
I'm sorry, I don't know about the |
I think you can ignore This happens when Extension host is launched by our Debugger (Extension development) and extension host is requested to restart during this session using above command. |
I don't know, perhaps the command How else should the debugger know that it needs to connect to a new extension host process... |
This should work fine now. |
@isidorn this worked fine in stable (1.26.1) but is now broken in the latest Insider (which contains your Session refactoring) |
I can easily reproduce this with a the Hello World extension and this activate function:
|
Issue Type: Bug
Testing #54865
Using
_workbench.enterWorkspace
with extensions that are already disabled (or non-existing ones), such that it does not reload the window, shows theExtension host did not start in 10 seconds
message.VS Code version: Code - Insiders 1.26.0-insider (5fae91d, 2018-07-25T01:56:56.548Z)
OS version: Darwin x64 17.7.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (20)
The text was updated successfully, but these errors were encountered: