Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling extension.ts -> activate() method fails in 0.15.0 #418

Closed
jag-j opened this issue Feb 11, 2021 · 1 comment · Fixed by #421
Closed

Calling extension.ts -> activate() method fails in 0.15.0 #418

jag-j opened this issue Feb 11, 2021 · 1 comment · Fixed by #421
Labels
bug Something isn't working
Milestone

Comments

@jag-j
Copy link

jag-j commented Feb 11, 2021

There is a regression in 0.15.0 likely due to these changes - 5495a0e.

The following code used to work in 0.14.0, but now extensionApi is 'undefined'.

const redHatExtension = vscode.extensions.getExtension('redhat.vscode-xml');
const extensionApi = await redHatExtension!.activate();
@angelozerr
Copy link
Contributor

Is there any chance to have a PR to fix this bug?

datho7561 added a commit to datho7561/vscode-xml that referenced this issue Feb 23, 2021
Use `await` in `extension.ts`.
Move some functionality out of `extension.ts`.
Move some TypeScript files into subfolders.
Fix `.editorconfig`.

Fixes redhat-developer#418

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Feb 23, 2021
Use `await` in `extension.ts`.
Move some functionality out of `extension.ts`.
Move some TypeScript files into subfolders.
Fix `.editorconfig`.

Fixes redhat-developer#418

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Feb 24, 2021
Use `await` in `extension.ts`.
Move some functionality out of `extension.ts`.
Move some TypeScript files into subfolders.
Fix `.editorconfig`.

Fixes redhat-developer#418

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Feb 24, 2021
Use `await` in `extension.ts`.
Move some functionality out of `extension.ts`.
Move some TypeScript files into subfolders.
Fix `.editorconfig`.

Fixes redhat-developer#418

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Feb 24, 2021
Use `await` in `extension.ts`.
Move some functionality out of `extension.ts`.
Move some TypeScript files into subfolders.
Fix `.editorconfig`.

Fixes redhat-developer#418

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Feb 24, 2021
Use `await` in `extension.ts`.
Move some functionality out of `extension.ts`.
Move some TypeScript files into subfolders.
Fix `.editorconfig`.

Fixes redhat-developer#418

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Feb 24, 2021
Use `await` in `extension.ts`.
Move some functionality out of `extension.ts`.
Move some TypeScript files into subfolders.
Fix `.editorconfig`.

Fixes redhat-developer#418

Signed-off-by: David Thompson <davthomp@redhat.com>
angelozerr pushed a commit that referenced this issue Feb 25, 2021
Use `await` in `extension.ts`.
Move some functionality out of `extension.ts`.
Move some TypeScript files into subfolders.
Fix `.editorconfig`.

Fixes #418

Signed-off-by: David Thompson <davthomp@redhat.com>
@angelozerr angelozerr added the bug Something isn't working label Mar 5, 2021
@angelozerr angelozerr added this to the 0.16.0 milestone Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants