Skip to content

Commit 173d06a

Browse files
committed
a few more fixed when compiling with "useDefineForClassFields": true
#243049 and #186726
1 parent f457b70 commit 173d06a

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/vs/workbench/api/common/extHostApiCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const newCommands: ApiCommand[] = [
6060
range!: vscode.Range;
6161
selectionRange!: vscode.Range;
6262
children!: vscode.DocumentSymbol[];
63-
override containerName!: string;
63+
override containerName: string = '';
6464
}
6565
return value.map(MergedInfo.to);
6666

src/vs/workbench/api/common/extHostDebugService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface IExtHostDebugService extends ExtHostDebugServiceShape {
6363

6464
export abstract class ExtHostDebugServiceBase extends DisposableCls implements IExtHostDebugService, ExtHostDebugServiceShape {
6565

66-
readonly _serviceBrand: undefined;
66+
declare readonly _serviceBrand: undefined;
6767

6868
private _configProviderHandleCounter: number;
6969
private _configProviders: ConfigProviderTuple[];

src/vs/workbench/api/node/extHostDebugService.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ import { IExtHostTerminalShellIntegration } from '../common/extHostTerminalShell
3131

3232
export class ExtHostDebugService extends ExtHostDebugServiceBase {
3333

34-
override readonly _serviceBrand: undefined;
35-
3634
private _integratedTerminalInstances = new DebugTerminalCollection();
3735
private _terminalDisposedListener: IDisposable | undefined;
3836

src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ export class SideBySideDiffElementViewModel extends DiffElementCellViewModelBase
680680
return this.mainDocumentTextModel;
681681
}
682682

683-
override readonly original!: DiffNestedCellViewModel;
684-
override readonly modified!: DiffNestedCellViewModel;
683+
declare readonly original: DiffNestedCellViewModel;
684+
declare readonly modified: DiffNestedCellViewModel;
685685
override readonly type: 'unchanged' | 'modified';
686686

687687
/**

src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function validateWebviewBoundary(element: HTMLElement) {
7878
}
7979

8080
export class NotebookCellList extends WorkbenchList<CellViewModel> implements IDisposable, IStyleController, INotebookCellList {
81-
protected override readonly view!: NotebookCellListView<CellViewModel>;
81+
declare readonly view: NotebookCellListView<CellViewModel>;
8282
private viewZones!: NotebookViewZones;
8383
private cellOverlays!: NotebookCellOverlays;
8484
get onWillScroll(): Event<ScrollEvent> { return this.view.onWillScroll; }

src/vs/workbench/contrib/terminalContrib/suggest/browser/pwshCompletionProviderAddon.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@ const enum RequestCompletionsSequence {
4545
}
4646

4747
export class PwshCompletionProviderAddon extends Disposable implements ITerminalAddon, ITerminalCompletionProvider {
48+
49+
static readonly ID = 'pwsh-shell-integration';
50+
4851
id: string = PwshCompletionProviderAddon.ID;
4952
triggerCharacters?: string[] | undefined;
5053
isBuiltin?: boolean = true;
51-
static readonly ID = 'pwsh-shell-integration';
5254
readonly shellTypes = [GeneralShellType.PowerShell];
5355
private _lastUserDataTimestamp: number = 0;
5456
private _terminal?: Terminal;

0 commit comments

Comments
 (0)