Skip to content

Commit

Permalink
Specify return type of VSCode activate function
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Oct 30, 2023
1 parent a0c7ebf commit 09a67ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/vscode-mdx/src/extension.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @typedef {import('@volar/vscode').ExportsInfoForLabs} ExportsInfoForLabs
* @typedef {import('vscode').ExtensionContext} ExtensionContext
*/

Expand All @@ -19,6 +20,10 @@ let client
*
* @param {ExtensionContext} context
* The extension context as given by VSCode.
* @returns {Promise<ExportsInfoForLabs | undefined>}
* Info for the
* [Volar,js Labs](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volarjs-labs)
* extension.
*/
export async function activate(context) {
if (!workspace.getConfiguration('mdx').get('experimentalLanguageServer')) {
Expand Down

0 comments on commit 09a67ee

Please sign in to comment.