Skip to content

Commit

Permalink
restore schema provider
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Mar 19, 2024
1 parent 55c4da9 commit 4a32990
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class Extension {
#dependencyInstaller: DependencyInstaller
#commands: CommandController
#testProvider: TestProvider
//#schemaProvider: JSONSchemaProvider
#schemaProvider: JSONSchemaProvider

private constructor (settings: Settings, ctx: ExtensionContext) {
this.ctx = ctx
Expand All @@ -50,9 +50,7 @@ export class Extension {
const cliSelectionProvider = new CliSelectionProvider(cliProvider)

// Register JSON schema provider
if (ctx != null) {
//this.#schemaProvider = new JSONSchemaProvider(ctx.extensionPath, cliProvider.currentBinary$)
}
this.#schemaProvider = new JSONSchemaProvider(ctx.extensionPath, cliProvider)

// Initialize Flow Config
const flowConfig = new FlowConfig(settings)
Expand Down Expand Up @@ -87,6 +85,6 @@ export class Extension {
async deactivate (): Promise<void> {
await this.languageServer.deactivate()
this.#testProvider?.dispose()
//this.#schemaProvider?.dispose()
this.#schemaProvider?.dispose()
}
}

0 comments on commit 4a32990

Please sign in to comment.