add outline to lsp

This commit is contained in:
Christoph Brandau
2025-08-11 18:28:23 +02:00
parent b3cac5c292
commit 0a26cb5c0f
3 changed files with 297 additions and 6 deletions
+1 -5
View File
@@ -179,11 +179,7 @@ export async function activate(context: vscode.ExtensionContext) {
context.subscriptions.push(formatDefProvider)
const tclOutlineProvider = vscode.languages.registerDocumentSymbolProvider(
{ scheme: "file", language: "tcl" },
{ provideDocumentSymbols: tclDocumentSymbolProvider }
)
context.subscriptions.push(tclOutlineProvider)
// Outline now provided by the language server (Document Symbols). Removing TS provider.
// Diagnostics collection
const diagnosticCollectionCdl = vscode.languages.createDiagnosticCollection("cdl")