Skip to content

Commit d97da14

Browse files
committed
Use conditional access.
1 parent d8603b5 commit d97da14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lsptoolshost/services/projectContextService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class ProjectContextService {
4646
const uri = textEditor.document.uri;
4747

4848
// If we have an open request, cancel it.
49-
this._source.cancel();
49+
this._source?.cancel();
5050
this._source = new vscode.CancellationTokenSource();
5151

5252
try {

0 commit comments

Comments
 (0)