File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2727 " backend"
2828 ],
2929 "icon" : " assets/logo.png" ,
30- "activationEvents" : [],
30+ "activationEvents" : [
31+ " workspaceContains:**/pubspec.yaml"
32+ ],
3133 "main" : " ./out/extension.js" ,
3234 "contributes" : {
3335 "commands" : [
Original file line number Diff line number Diff line change @@ -15,10 +15,13 @@ import {
1515/**
1616 * This method is called when the extension is activated.
1717 *
18- * The extension is activated the very first time the command is executed.
18+ * The extension is activated the very first time a command is executed or
19+ * if the workspace contains a pubspec.yaml file.
1920 *
2021 * @param {vscode.ExtensionContext } context
2122 * @returns The same instance of the extension context passed in.
23+ * @see {@link https://code.visualstudio.com/api/references/activation-events } for further details about
24+ * extension activation events.
2225 */
2326export function activate (
2427 context : vscode . ExtensionContext ,
You can’t perform that action at this time.
0 commit comments