提交 7bd7fdba 编写于 作者: M Matt Bierner

Marking fields readonly

上级 99d9c3fd
...@@ -30,7 +30,7 @@ import { CancellationToken } from 'vs/base/common/cancellation'; ...@@ -30,7 +30,7 @@ import { CancellationToken } from 'vs/base/common/cancellation';
class RenameSkeleton { class RenameSkeleton {
private _providers: RenameProvider[]; private readonly _providers: RenameProvider[];
constructor( constructor(
private readonly model: ITextModel, private readonly model: ITextModel,
...@@ -102,11 +102,11 @@ class RenameController implements IEditorContribution { ...@@ -102,11 +102,11 @@ class RenameController implements IEditorContribution {
return editor.getContribution<RenameController>(RenameController.ID); return editor.getContribution<RenameController>(RenameController.ID);
} }
private _renameInputField: RenameInputField; private readonly _renameInputField: RenameInputField;
private _renameInputVisible: IContextKey<boolean>; private readonly _renameInputVisible: IContextKey<boolean>;
constructor( constructor(
private editor: ICodeEditor, private readonly editor: ICodeEditor,
@INotificationService private readonly _notificationService: INotificationService, @INotificationService private readonly _notificationService: INotificationService,
@IBulkEditService private readonly _bulkEditService: IBulkEditService, @IBulkEditService private readonly _bulkEditService: IBulkEditService,
@IProgressService private readonly _progressService: IProgressService, @IProgressService private readonly _progressService: IProgressService,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册