diff options
author | Matt Bierner <matb@microsoft.com> | 2021-04-08 20:05:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 20:05:20 +0300 |
commit | e1f0f8f51390dea5df9096718fb6b647ed5a9534 (patch) | |
tree | a7813262d293d85a5fbddd9a1236497866246daa /src/vs/workbench/contrib/extensions/common | |
parent | 604b950f0daea45fb2f79c622537677e45a2b768 (diff) |
Add override keyword in codebase (#120755)
For #120675
This uses a script to add the override keyword to places that need it in the codebase
Note that we can't enable the --noImplicitOverride setting yet since there are still around 200 errors that require further attention
Diffstat (limited to 'src/vs/workbench/contrib/extensions/common')
-rw-r--r-- | src/vs/workbench/contrib/extensions/common/extensionsInput.ts | 6 | ||||
-rw-r--r-- | src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/vs/workbench/contrib/extensions/common/extensionsInput.ts b/src/vs/workbench/contrib/extensions/common/extensionsInput.ts index eef812021ea..1a03601c368 100644 --- a/src/vs/workbench/contrib/extensions/common/extensionsInput.ts +++ b/src/vs/workbench/contrib/extensions/common/extensionsInput.ts @@ -32,15 +32,15 @@ export class ExtensionsInput extends EditorInput { return ExtensionsInput.ID; } - getName(): string { + override getName(): string { return localize('extensionsInputName', "Extension: {0}", this.extension.displayName); } - supportsSplitEditor(): boolean { + override supportsSplitEditor(): boolean { return false; } - matches(other: unknown): boolean { + override matches(other: unknown): boolean { if (super.matches(other)) { return true; } diff --git a/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts b/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts index 8fa384f074a..df328a2d9b7 100644 --- a/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts +++ b/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.ts @@ -29,15 +29,15 @@ export class RuntimeExtensionsInput extends EditorInput { return RuntimeExtensionsInput.ID; } - getName(): string { + override getName(): string { return nls.localize('extensionsInputName', "Running Extensions"); } - supportsSplitEditor(): boolean { + override supportsSplitEditor(): boolean { return false; } - matches(other: unknown): boolean { + override matches(other: unknown): boolean { return other instanceof RuntimeExtensionsInput; } } |