Skip to content

Commit

Permalink
adapt to changed klighd-vscode API
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasRentzCAU committed Feb 21, 2024
1 parent 7acccff commit 9eb7801
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions keith-vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,9 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
lsClient.clientOptions.errorHandler = new KeithErrorHandler(defaultErrorHandler)

// Inform the KLighD extension about the LS client and supported file endings.
const refId = await vscode.commands.executeCommand<string>(
klighdCommands.setLanguageClient,
lsClient,
supportedFileEndings
)
await vscode.commands.executeCommand<string>(klighdCommands.setLanguageClient, lsClient, supportedFileEndings)
// Intercept PerformActionActions from klighd diagrams.
vscode.commands.executeCommand(klighdCommands.addActionHandler, refId, performActionKind, handlePerformAction)
vscode.commands.executeCommand(klighdCommands.addActionHandler, performActionKind, handlePerformAction)

// create SettingsService with list of setting-keys to manage
settingsService = new SettingsService<Settings>(settingsKey, [
Expand Down

0 comments on commit 9eb7801

Please sign in to comment.