Skip to content

Commit 7a7e566

Browse files
committed
Mark ids readonly
1 parent 7f2cdef commit 7a7e566

22 files changed

Lines changed: 30 additions & 30 deletions

File tree

src/vs/editor/contrib/codelens/codelensController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { IModelDecorationsChangeAccessor } from 'vs/editor/common/model';
2222

2323
export class CodeLensContribution implements editorCommon.IEditorContribution {
2424

25-
private static ID: string = 'css.editor.codeLens';
25+
private static readonly ID: string = 'css.editor.codeLens';
2626

2727
private _isEnabled: boolean;
2828

src/vs/editor/contrib/colorPicker/colorDetector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const MAX_DECORATORS = 500;
2121

2222
export class ColorDetector implements IEditorContribution {
2323

24-
private static ID: string = 'editor.contrib.colorDetector';
24+
private static readonly ID: string = 'editor.contrib.colorDetector';
2525

2626
static RECOMPUTE_TIME = 1000; // ms
2727

src/vs/editor/contrib/links/links.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class LinkOccurrence {
130130

131131
class LinkDetector implements editorCommon.IEditorContribution {
132132

133-
private static ID: string = 'editor.linkDetector';
133+
private static readonly ID: string = 'editor.linkDetector';
134134

135135
public static get(editor: ICodeEditor): LinkDetector {
136136
return editor.getContribution<LinkDetector>(LinkDetector.ID);

src/vs/editor/contrib/suggest/suggestController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class AcceptOnCharacterOracle {
7777

7878
export class SuggestController implements IEditorContribution {
7979

80-
private static ID: string = 'editor.contrib.suggestController';
80+
private static readonly ID: string = 'editor.contrib.suggestController';
8181

8282
public static get(editor: ICodeEditor): SuggestController {
8383
return editor.getContribution<SuggestController>(SuggestController.ID);

src/vs/editor/contrib/suggest/suggestWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ export interface ISelectedSuggestion {
343343

344344
export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>, IDisposable {
345345

346-
private static ID: string = 'editor.widget.suggestWidget';
346+
private static readonly ID: string = 'editor.widget.suggestWidget';
347347

348348
static LOADING_MESSAGE: string = nls.localize('suggestWidget.loading', "Loading...");
349349
static NO_SUGGESTIONS_MESSAGE: string = nls.localize('suggestWidget.noSuggestions', "No suggestions.");

src/vs/workbench/browser/parts/editor/sideBySideEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { IEditorRegistry, Extensions as EditorExtensions } from 'vs/workbench/br
2121

2222
export class SideBySideEditor extends BaseEditor {
2323

24-
public static ID: string = 'workbench.editor.sidebysideEditor';
24+
public static readonly ID: string = 'workbench.editor.sidebysideEditor';
2525

2626
private dimension: Dimension;
2727

src/vs/workbench/common/editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export interface IFileEditorInput extends IEditorInput, IEncodingSupport {
355355
*/
356356
export class SideBySideEditorInput extends EditorInput {
357357

358-
public static ID: string = 'workbench.editorinputs.sidebysideEditorInput';
358+
public static readonly ID: string = 'workbench.editorinputs.sidebysideEditorInput';
359359

360360
private _toUnbind: IDisposable[];
361361

src/vs/workbench/common/editor/dataUriEditorInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { DataUri } from 'vs/workbench/common/resources';
1818
*/
1919
export class DataUriEditorInput extends EditorInput {
2020

21-
static ID: string = 'workbench.editors.dataUriEditorInput';
21+
static readonly ID: string = 'workbench.editors.dataUriEditorInput';
2222

2323
private resource: URI;
2424
private name: string;

src/vs/workbench/common/editor/resourceEditorInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { IHashService } from 'vs/workbench/services/hash/common/hashService';
1919
*/
2020
export class ResourceEditorInput extends EditorInput {
2121

22-
static ID: string = 'workbench.editors.resourceEditorInput';
22+
static readonly ID: string = 'workbench.editors.resourceEditorInput';
2323

2424
private modelReference: TPromise<IReference<ITextEditorModel>>;
2525
private resource: URI;

src/vs/workbench/common/editor/untitledEditorInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { IHashService } from 'vs/workbench/services/hash/common/hashService';
2929
*/
3030
export class UntitledEditorInput extends EditorInput implements IEncodingSupport {
3131

32-
public static ID: string = 'workbench.editors.untitledEditorInput';
32+
public static readonly ID: string = 'workbench.editors.untitledEditorInput';
3333

3434
private _hasAssociatedFilePath: boolean;
3535
private cachedModel: UntitledEditorModel;

0 commit comments

Comments
 (0)