Skip to content

Commit

Permalink
Remove unnecessary code lens refresh (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed May 10, 2023
1 parent 67ce760 commit 938e27a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
3 changes: 2 additions & 1 deletion extension/src/emulator/server/language-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Mutex } from 'async-mutex'
import { exec } from 'child_process'
import { verifyEmulator } from '../local/emulatorScanner'
import { delay } from '../../utils/utils'
import { ExecuteCommandRequest } from 'vscode-languageclient'

// Identities for commands handled by the Language server
const CREATE_ACCOUNT_SERVER = 'cadence.server.flow.createAccount'
Expand Down Expand Up @@ -155,7 +156,7 @@ export class LanguageServerAPI {
}

async #sendRequest (cmd: string, args: any[] = []): Promise<any> {
return await this.client?.sendRequest('workspace/executeCommand', {
return await this.client?.sendRequest(ExecuteCommandRequest.type, {
command: cmd,
arguments: args
})
Expand Down
2 changes: 0 additions & 2 deletions extension/src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* The extension */
import { EmulatorState, EmulatorController } from './emulator/emulator-controller'
import { CommandController } from './commands/command-controller'
import { refreshCodeLenses } from './utils/codelens'
import { Account } from './emulator/account'
import { UIController } from './ui/ui-controller'
import { ExtensionContext } from 'vscode'
Expand Down Expand Up @@ -69,7 +68,6 @@ export class Extension {

// Update UI
this.#uiCtrl.emulatorStateChanged()
refreshCodeLenses()
}

checkDependencies (): void {
Expand Down
23 changes: 0 additions & 23 deletions extension/src/utils/codelens.ts

This file was deleted.

0 comments on commit 938e27a

Please sign in to comment.