UI - Markdown toolbar now behind preview flag (#10024)

* Adding enablePreviewFeatures check before showing the new toolbar.

* Removed unused code.

* Added hook to trigger onDidChangeConfiguration -- this makes the UI change after user has checked or unchecked, without having to restart the app.

* Initializing the component with the current config value of enablePreviewFeatures.
This commit is contained in:
Hale Rankin
2020-04-16 20:55:58 -07:00
committed by GitHub
parent 530ec8c19d
commit b568b8509d
3 changed files with 8 additions and 3 deletions

View File

@@ -57,10 +57,8 @@ import { IColorTheme } from 'vs/platform/theme/common/themeService';
import { ICommandService } from 'vs/platform/commands/common/commands';
import { IAdsTelemetryService } from 'sql/platform/telemetry/common/telemetry';
export const NOTEBOOK_SELECTOR: string = 'notebook-component';
@Component({
selector: NOTEBOOK_SELECTOR,
templateUrl: decodeURI(require.toUrl('./notebook.component.html'))