add new features and fix bugs
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
||||
cdlDocumentSymbolProvider,
|
||||
defDocumentSymbolProvider
|
||||
} from "./common/handlers"
|
||||
import { computeTclFoldingRanges } from "./common/folding"
|
||||
import { registerLogger, traceError, traceLog, traceVerbose } from "./common/log/logging"
|
||||
import {
|
||||
checkVersion,
|
||||
@@ -115,6 +116,17 @@ export async function activate(context: vscode.ExtensionContext) {
|
||||
}
|
||||
})
|
||||
|
||||
// Folding ranges for TCL (brace based)
|
||||
const tclFoldingProvider = vscode.languages.registerFoldingRangeProvider(
|
||||
[{ language: "tcl" }],
|
||||
{
|
||||
provideFoldingRanges(document: vscode.TextDocument) {
|
||||
return computeTclFoldingRanges(document)
|
||||
}
|
||||
}
|
||||
)
|
||||
context.subscriptions.push(tclFoldingProvider)
|
||||
|
||||
//
|
||||
const formatCdlProvider = vscode.languages.registerDocumentFormattingEditProvider(
|
||||
{ scheme: "file", language: "cdl" },
|
||||
|
||||
Reference in New Issue
Block a user