Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
fix: not deno project also show deno deps tree view.
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Apr 28, 2020
1 parent bcd1ace commit 81303df
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,12 @@ Executable ${this.denoInfo.executablePath}`;
) {
const config = this.getConfiguration(document.uri);

commands.executeCommand(
"setContext",
"denoExtensionActivated",
!!config.enable
);

this.tsAPI.configurePlugin(TYPESCRIPT_DENO_PLUGIN_ID, config);
this.updateDiagnostic(document.uri);
}
Expand Down Expand Up @@ -602,9 +608,9 @@ Executable ${this.denoInfo.executablePath}`;
window.registerTreeDataProvider("deno", treeView)
);

const extension = extensions.getExtension(this.id);
this.sync(window.activeTextEditor?.document);

commands.executeCommand("setContext", "denoExtensionActivated", true);
const extension = extensions.getExtension(this.id);

console.log(
`Congratulations, your extension "${this.id} ${extension?.packageJSON["version"]}" is now active!`
Expand Down

0 comments on commit 81303df

Please sign in to comment.