This commit is contained in:
jram 2021-11-26 14:28:04 +00:00 committed by GitHub
commit f49ca01e53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -423,10 +423,16 @@ export class DebugService implements IDebugService {
if (activeEditor && activeEditor.resource) {
type = this.chosenEnvironments[activeEditor.resource.toString()];
}
if (!type) {
guess = await this.adapterManager.guessDebugger(false);
if (guess) {
type = guess.type;
// Set the Live Share guest debug type when the user has joined a collaboration session
if (this.configurationManager.hasDebugConfigurationProvider('*') && this.configurationManager.hasDebugConfigurationProvider('vslsJoin')) {
type = 'vslsJoin';
} else {
guess = await this.adapterManager.guessDebugger(false);
if (guess) {
type = guess.type;
}
}
}
}