ModeService to LanguageService var names (#20949)

This commit is contained in:
Charles Gagnon
2022-10-24 13:57:03 -07:00
committed by GitHub
parent de9dd34275
commit a64a33e091
11 changed files with 30 additions and 30 deletions

View File

@@ -35,7 +35,7 @@ export class DashboardInput extends EditorInput {
constructor(
_connectionProfile: IConnectionProfile,
@IConnectionManagementService private _connectionService: IConnectionManagementService,
@ILanguageService modeService: ILanguageService,
@ILanguageService languageService: ILanguageService,
@IModelService model: IModelService
) {
super();
@@ -47,7 +47,7 @@ export class DashboardInput extends EditorInput {
// vscode has a comment that Mode's will eventually be removed (not sure the state of this comment)
// so this might be able to be undone when that happens
if (!model.getModel(this.resource)) {
model.createModel('', modeService.createById('dashboard'), this.resource);
model.createModel('', languageService.createById('dashboard'), this.resource);
}
this._initializedPromise = _connectionService.connectIfNotConnected(_connectionProfile, 'dashboard').then(
u => {

View File

@@ -48,7 +48,7 @@ export default class EditorComponent extends ComponentBase<azdata.EditorProperti
@Inject(forwardRef(() => ElementRef)) el: ElementRef,
@Inject(IInstantiationService) private _instantiationService: IInstantiationService,
@Inject(IModelService) private _modelService: IModelService,
@Inject(ILanguageService) private _modeService: ILanguageService,
@Inject(ILanguageService) private _languageService: ILanguageService,
@Inject(ILogService) private _logService: ILogService,
@Inject(IEditorService) private readonly editorService: IEditorService,
@Inject(ILogService) logService: ILogService
@@ -141,7 +141,7 @@ export default class EditorComponent extends ComponentBase<azdata.EditorProperti
private updateLanguageMode() {
if (this._editorModel && this._editor) {
this._languageMode = this.languageMode;
let languageSelection = this._modeService.createById(this._languageMode);
let languageSelection = this._languageService.createById(this._languageMode);
this._modelService.setMode(this._editorModel, languageSelection);
}
}