forked from Deducteam/lambdapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reopen the goals panel if closed when navigating proofs (Deducteam#1068)
* vscode : first refactoring using browser.ts * vsce refactoring : adding clientFactory * code reformating of vscode/src/client.ts * vscode client.ts refactoring : moving handlers into activate function * vscode client.ts refactoring : geting ride of the context parameter in handlers functions * vscode client.ts refactoring : doing same with getNextProof * vscode: code refactoring, use of browser.ts and config.ts * vscode: code refactoring, moving everything to start instead of restart * code refactoring moving register commands outside activateLsp method * fix/ReopenGoalsPan : add on didDispose to webview * fix/ReopenGoalsPan: add code to reopen panel when navigation proofs * fix/ReopenGoalsPan: release focus after Goals panel creation * refactor : get ride of debug messages * vscode : added comments to code * fix/ReopenGoalsPan: remove redundant check on info panel * fix/ReopenGoalsPan: update CHANGE.md
- Loading branch information
Showing
9 changed files
with
535 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ExtensionContext, window } from "vscode"; | ||
import { LanguageClient } from "vscode-languageclient/node"; | ||
import { activateClientLSP, ClientFactoryType, deactivateClientLSP } from "./client"; | ||
|
||
export function activate(context: ExtensionContext): void { | ||
const cf: ClientFactoryType = (context, clientOptions, wsConfig, lspServerPath) => { | ||
let serverOptions = { | ||
command: lspServerPath, | ||
args: ['lsp'] | ||
}; | ||
return new LanguageClient( | ||
"lambdapi", | ||
"lambdapi language server", | ||
serverOptions, | ||
clientOptions); | ||
}; | ||
activateClientLSP(context, cf); | ||
} | ||
|
||
export function deactivate() { | ||
deactivateClientLSP(); | ||
} |
Oops, something went wrong.