Skip to content

Fix typos in comments and completion item #526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/providers/CompletionItemProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class VerilogCompletionItemProvider implements vscode.CompletionItemProvi
newItem.detail = symbol.type;
let doc: string = '```systemverilog\n' + code + '\n```';
if (symbol.parentScope !== undefined && symbol.parentScope !== '') {
doc += '\nHeirarchial Scope: ' + symbol.parentScope;
doc += '\nHierarchical Scope: ' + symbol.parentScope;
}
newItem.documentation = new vscode.MarkdownString(doc);
items.push(newItem);
Expand Down
6 changes: 3 additions & 3 deletions src/providers/DocumentSymbolProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class VerilogDocumentSymbolProvider implements vscode.DocumentSymbolProvi
return false;
}

// find the appropriate container RECURSIVELY and add to its childrem
// find the appropriate container RECURSIVELY and add to its children
// return true: if done
// return false: if container not found
findContainer(con: vscode.DocumentSymbol, sym: vscode.DocumentSymbol): boolean {
Expand All @@ -79,8 +79,8 @@ export class VerilogDocumentSymbolProvider implements vscode.DocumentSymbolProvi
return false;
}

// Build heiarchial DocumentSymbol[] from linear symbolsList[] using start and end position
// TODO: Use parentscope/parenttype of symbol to construct heirarchial vscode.DocumentSymbol []
// Build hierarchical DocumentSymbol[] from linear symbolsList[] using start and end position
// TODO: Use parentscope/parenttype of symbol to construct hierarchical vscode.DocumentSymbol []
buildDocumentSymbolList(symbolsList: Symbol[]): vscode.DocumentSymbol[] {
let list: vscode.DocumentSymbol[] = [];
symbolsList = symbolsList.sort((a, b): number => {
Expand Down
Loading