mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 17:23:42 -05:00
This reverts commit 22a427f934.
This commit is contained in:
@@ -230,7 +230,7 @@ export class ProfilerService implements IProfilerService {
|
||||
// only use the templates that matches the following criteria:
|
||||
// 1. the template doesn't have any engine types specified - for backward compatibility (user with custom templates) or the templates applicable to both AzureSQLDB and standalone server
|
||||
// 2. the template supports the current engine type
|
||||
templates = templates.filter(template => !template.engineTypes || template.engineTypes.length === 0 || template.engineTypes.some(x => x === engineType));
|
||||
templates = templates.filter(template => !template.engineTypes || template.engineTypes.length === 0 || template.engineTypes.includes(engineType));
|
||||
}
|
||||
return this._commandService.executeCommand('profiler.openCreateSessionDialog', input.id, input.providerType, templates);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user