Skip to content

Commit 34bcb30

Browse files
committed
fix: Occasional document.uri uncaught exception
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent 62e2884 commit 34bcb30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hpccplatform/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class SessionManager {
247247
}
248248

249249
private get isActiveECL() {
250-
return vscode.languages.match(ECL_MODE, this.activeDocument) > 0;
250+
return this.activeDocument && vscode.languages.match(ECL_MODE, this.activeDocument) > 0;
251251
}
252252

253253
private get pinnedSession() {

0 commit comments

Comments
 (0)