diff --git a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts index ec98ec6f11dd..e543b455ed54 100644 --- a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts +++ b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts @@ -84,6 +84,10 @@ export class SemanticTokensWalker extends ParseTreeWalker { this._addItem(node.memberName.start, node.memberName.length, SemanticTokenTypes.class, []); break; } + + case TypeCategory.Module: + this._addItem(node.memberName.start, node.memberName.length, SemanticTokenTypes.namespace, []); + break; // fallthrough default: