Skip to content

Commit a0b6082

Browse files
committed
Fix non-nullish assumption
1 parent 93adefd commit a0b6082

File tree

1 file changed

+2
-1
lines changed
  • packages/jupyterlab-lsp/src/features

1 file changed

+2
-1
lines changed

packages/jupyterlab-lsp/src/features/symbol.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,11 @@ export class SymbolFeature extends Feature {
274274
}
275275
const connection = this.connectionManager.connections.get(
276276
adapter.virtualDocument.uri
277-
)!;
277+
);
278278

279279
if (
280280
!(
281+
connection &&
281282
connection.isReady &&
282283
connection.serverCapabilities.documentSymbolProvider
283284
)

0 commit comments

Comments
 (0)