@@ -21,7 +21,7 @@ import * as editorCommon from 'vs/editor/common/editorCommon';
2121import { StringEditor } from 'vs/workbench/browser/parts/editor/stringEditor' ;
2222import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
2323import { IFoldingController , ID as FoldingContributionId } from 'vs/editor/contrib/folding/common/folding' ;
24- import { IOpenSettingsService , ISettingsGroup , ISetting } from 'vs/workbench/parts/settings /common/openSettings ' ;
24+ import { IPreferencesService , ISettingsGroup , ISetting } from 'vs/workbench/parts/preferences /common/preferences ' ;
2525import { editorContribution } from 'vs/editor/browser/editorBrowserExtensions' ;
2626import { ICodeEditor , IEditorMouseEvent } from 'vs/editor/browser/editorBrowser' ;
2727import { IContextMenuService } from 'vs/platform/contextview/browser/contextView' ;
@@ -57,9 +57,9 @@ export class AbstractSettingsInput extends StringEditorInput {
5757export class DefaultSettingsInput extends AbstractSettingsInput {
5858 private static INSTANCE : DefaultSettingsInput ;
5959
60- public static getInstance ( instantiationService : IInstantiationService , openSettingsService : IOpenSettingsService ) : DefaultSettingsInput {
60+ public static getInstance ( instantiationService : IInstantiationService , preferencesService : IPreferencesService ) : DefaultSettingsInput {
6161 if ( ! DefaultSettingsInput . INSTANCE ) {
62- const defaultSettings = openSettingsService . defaultSettings ;
62+ const defaultSettings = preferencesService . defaultSettings ;
6363 DefaultSettingsInput . INSTANCE = instantiationService . createInstance ( DefaultSettingsInput , nls . localize ( 'defaultName' , "Default Settings" ) , null , defaultSettings . content , defaultSettings . uri , 'application/json' , false ) ;
6464 }
6565 return DefaultSettingsInput . INSTANCE ;
@@ -69,9 +69,9 @@ export class DefaultSettingsInput extends AbstractSettingsInput {
6969export class DefaultKeybindingsInput extends AbstractSettingsInput {
7070 private static INSTANCE : DefaultKeybindingsInput ;
7171
72- public static getInstance ( instantiationService : IInstantiationService , openSettingsService : IOpenSettingsService ) : DefaultKeybindingsInput {
72+ public static getInstance ( instantiationService : IInstantiationService , preferencesService : IPreferencesService ) : DefaultKeybindingsInput {
7373 if ( ! DefaultKeybindingsInput . INSTANCE ) {
74- const defaultKeybindings = openSettingsService . defaultKeybindings ;
74+ const defaultKeybindings = preferencesService . defaultKeybindings ;
7575 DefaultKeybindingsInput . INSTANCE = instantiationService . createInstance ( DefaultKeybindingsInput , nls . localize ( 'defaultKeybindings' , "Default Keyboard Shortcuts" ) , null , defaultKeybindings . content , defaultKeybindings . uri , 'application/json' , false ) ;
7676 }
7777
@@ -146,7 +146,7 @@ export class DefaultSettingsContribution extends Disposable implements editorCom
146146
147147 constructor ( private editor : ICodeEditor ,
148148 @IInstantiationService private instantiationService : IInstantiationService ,
149- @IOpenSettingsService private openSettingsService : IOpenSettingsService
149+ @IPreferencesService private preferencesService : IPreferencesService
150150 ) {
151151 super ( ) ;
152152 this . _register ( editor . onDidChangeModel ( ( ) => this . onModelChanged ( ) ) ) ;
@@ -167,14 +167,14 @@ export class DefaultSettingsContribution extends Disposable implements editorCom
167167 return ;
168168 }
169169
170- if ( model . uri . fsPath === this . openSettingsService . defaultSettings . uri . fsPath ) {
170+ if ( model . uri . fsPath === this . preferencesService . defaultSettings . uri . fsPath ) {
171171 this . styleDefaultSettings ( model ) ;
172172 }
173173 }
174174
175175 private canHandle ( model : editorCommon . IModel ) {
176176 if ( model ) {
177- if ( model . uri . fsPath === this . openSettingsService . defaultSettings . uri . fsPath ) {
177+ if ( model . uri . fsPath === this . preferencesService . defaultSettings . uri . fsPath ) {
178178 return true ;
179179 }
180180 }
@@ -187,7 +187,7 @@ export class DefaultSettingsContribution extends Disposable implements editorCom
187187
188188 private renderDecorations ( model : editorCommon . IModel ) {
189189 this . settingsActions = this . instantiationService . createInstance ( SettingsActionsDecorators , this . editor ) ;
190- this . settingsActions . render ( this . openSettingsService . defaultSettings . settingsGroups ) ;
190+ this . settingsActions . render ( this . preferencesService . defaultSettings . settingsGroups ) ;
191191 }
192192}
193193
@@ -196,7 +196,7 @@ export class SettingsActionsDecorators extends Disposable {
196196 private decorationIds : string [ ] = [ ] ;
197197
198198 constructor ( private editor : ICodeEditor ,
199- @IOpenSettingsService private settingsService : IOpenSettingsService ,
199+ @IPreferencesService private settingsService : IPreferencesService ,
200200 @IContextMenuService private contextMenuService : IContextMenuService
201201 ) {
202202 super ( ) ;
0 commit comments