Skip to content

Commit 9b620f4

Browse files
author
Benjamin Pasero
committed
Enable strictPropertyInitialization (fix microsoft#78168)
1 parent 382c7f5 commit 9b620f4

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/tsconfig.base.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"alwaysStrict": true,
1111
"strictBindCallApply": true,
1212
"strictNullChecks": true,
13+
"strictPropertyInitialization": true,
1314
"forceConsistentCasingInFileNames": true,
1415
"baseUrl": ".",
1516
"paths": {

src/vs/base/browser/ui/tree/asyncDataTree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ export interface ICompressibleAsyncDataTreeOptionsUpdate extends IAsyncDataTreeO
10311031

10321032
export class CompressibleAsyncDataTree<TInput, T, TFilterData = void> extends AsyncDataTree<TInput, T, TFilterData> {
10331033

1034-
protected readonly tree: CompressibleObjectTree<IAsyncDataTreeNode<TInput, T>, TFilterData>;
1034+
protected readonly tree!: CompressibleObjectTree<IAsyncDataTreeNode<TInput, T>, TFilterData>;
10351035
protected readonly compressibleNodeMapper: CompressibleAsyncDataTreeNodeMapper<TInput, T, TFilterData> = new WeakMapper(node => new CompressibleAsyncDataTreeNodeWrapper(node));
10361036

10371037
constructor(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,8 +1143,8 @@ export class SelectionRange {
11431143

11441144
export class CallHierarchyItem {
11451145

1146-
_sessionId: string;
1147-
_itemId: string;
1146+
_sessionId?: string;
1147+
_itemId?: string;
11481148

11491149
kind: SymbolKind;
11501150
name: string;

src/vs/workbench/browser/parts/views/viewsViewlet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export abstract class ViewContainerViewlet extends PanelViewlet implements IView
328328
export abstract class FilterViewContainerViewlet extends ViewContainerViewlet {
329329
private constantViewDescriptors: Map<string, IViewDescriptor> = new Map();
330330
private allViews: Map<string, Map<string, IViewDescriptor>> = new Map();
331-
private filterValue: string;
331+
private filterValue: string | undefined;
332332

333333
protected onDidChangeFilterValue: Emitter<string> = new Emitter();
334334

0 commit comments

Comments
 (0)