mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Change feature flag for SQL kernel to be user preference (#3838)
* Change feature flag for SQL kernel to be user preference * fix test that was broken * Tweak package.nls.json to show "(Preview)"
This commit is contained in:
@@ -12,6 +12,7 @@ import * as pfs from 'vs/base/node/pfs';
|
||||
import { localize } from 'vs/nls';
|
||||
import { IOutputChannel } from 'vs/workbench/parts/output/common/output';
|
||||
import { DEFAULT_NOTEBOOK_PROVIDER, DEFAULT_NOTEBOOK_FILETYPE, INotebookService } from 'sql/workbench/services/notebook/common/notebookService';
|
||||
import { ContextKeyExpr, IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
|
||||
|
||||
|
||||
/**
|
||||
@@ -73,9 +74,9 @@ export function getStandardKernelsForProvider(providerId: string, notebookServic
|
||||
return <IStandardKernelWithProvider[]>(standardKernels);
|
||||
}
|
||||
|
||||
// Private feature flag to enable Sql Notebook experience
|
||||
export function sqlNotebooksEnabled() {
|
||||
return process.env['SQLOPS_SQL_NOTEBOOK'] !== undefined;
|
||||
// Feature flag to enable Sql Notebook experience
|
||||
export function sqlNotebooksEnabled(contextKeyService: IContextKeyService) {
|
||||
return contextKeyService.contextMatchesRules(ContextKeyExpr.equals('config.notebook.sqlKernelEnabled', true));
|
||||
}
|
||||
|
||||
export interface IStandardKernelWithProvider {
|
||||
|
||||
Reference in New Issue
Block a user