@@ -6,14 +6,14 @@ import * as uuid from 'uuid/v4';
66import { Disposable , Event , EventEmitter } from 'vscode' ;
77import * as vsls from 'vsls/vscode' ;
88
9- import { ILiveShareApi , IWorkspaceService } from '../../common/application/types' ;
9+ import { ILiveShareApi } from '../../common/application/types' ;
1010import { IAsyncDisposable , IAsyncDisposableRegistry , IConfigurationService , IDisposableRegistry } from '../../common/types' ;
1111import { createDeferred , Deferred } from '../../common/utils/async' ;
1212import * as localize from '../../common/utils/localize' ;
1313import { IServiceContainer } from '../../ioc/types' ;
1414import { Identifiers , LiveShare , LiveShareCommands , Settings } from '../constants' ;
1515import { PostOffice } from '../liveshare/postOffice' ;
16- import { IHistory , IHistoryProvider , INotebookServerOptions , IThemeFinder } from '../types' ;
16+ import { IHistory , IHistoryProvider , INotebookServerOptions } from '../types' ;
1717
1818interface ISyncData {
1919 count : number ;
@@ -34,9 +34,7 @@ export class HistoryProvider implements IHistoryProvider, IAsyncDisposable {
3434 @inject ( IServiceContainer ) private serviceContainer : IServiceContainer ,
3535 @inject ( IAsyncDisposableRegistry ) asyncRegistry : IAsyncDisposableRegistry ,
3636 @inject ( IDisposableRegistry ) private disposables : IDisposableRegistry ,
37- @inject ( IConfigurationService ) private configService : IConfigurationService ,
38- @inject ( IWorkspaceService ) private workspaceService : IWorkspaceService ,
39- @inject ( IThemeFinder ) private themeFinder : IThemeFinder
37+ @inject ( IConfigurationService ) private configService : IConfigurationService
4038 ) {
4139 asyncRegistry . push ( this ) ;
4240
@@ -84,16 +82,6 @@ export class HistoryProvider implements IHistoryProvider, IAsyncDisposable {
8482 const settings = this . configService . getSettings ( ) ;
8583 let serverURI : string | undefined = settings . datascience . jupyterServerURI ;
8684 const useDefaultConfig : boolean | undefined = settings . datascience . useDefaultConfigForJupyter ;
87- // Check for dark theme, if so set matplot lib to use dark_background settings
88- let darkTheme : boolean | undefined = false ;
89- const workbench = this . workspaceService . getConfiguration ( 'workbench' ) ;
90- if ( workbench ) {
91- const theme = workbench . get < string > ( 'colorTheme' ) ;
92- const ignoreTheme = this . configService . getSettings ( ) . datascience . ignoreVscodeTheme ? true : false ;
93- if ( theme && ! ignoreTheme ) {
94- darkTheme = await this . themeFinder . isThemeDark ( theme ) ;
95- }
96- }
9785
9886 // For the local case pass in our URI as undefined, that way connect doesn't have to check the setting
9987 if ( serverURI === Settings . JupyterServerLocalLaunch ) {
@@ -102,7 +90,6 @@ export class HistoryProvider implements IHistoryProvider, IAsyncDisposable {
10290
10391 return {
10492 uri : serverURI ,
105- usingDarkTheme : darkTheme ,
10693 useDefaultConfig,
10794 purpose : Identifiers . HistoryPurpose
10895 } ;
0 commit comments