Skip to content

Commit

Permalink
Fix live-share.ts null check issues
Browse files Browse the repository at this point in the history
  • Loading branch information
corasaurus-hex committed May 1, 2022
1 parent b91edb1 commit a58fbf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/live-share.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import * as vsls from 'vsls';
import * as config from './config';

// Keeps hold of the LiveShare API instance, so that it is requested only once.
let liveShare: vsls.LiveShare = null;
let liveShare: vsls.LiveShare | null = null;

// Keeps hold of the LiveShare listener, to prevent it from being disposed immediately.
let liveShareListener: Disposable = null;
let liveShareListener: Disposable | null = null;

let connectedPort: number = null;
let connectedPort: number | null = null;
let jackedIn = false;
const sharedPorts: Map<number, Disposable> = new Map();

Expand Down

0 comments on commit a58fbf1

Please sign in to comment.