Skip to content

Commit

Permalink
Fix extension crash when switching to nullish editor (#400)
Browse files Browse the repository at this point in the history
* Fix extension crash on switching to nullish editor

* Update changelog

* Add debugger theme metadata
  • Loading branch information
mark-wiemer authored Aug 22, 2023
1 parent 8a29e16 commit 75296bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 5.0.3 - 2023-08-21 🏄

- Fix extension crash when switching to a nullish editor ([Issue #398](https://github.com/mark-wiemer-org/ahkpp/issues/398))

## 5.0.2 - 2023-08-10 🐈

- Fix language mode resetting when VS Code restarts ([Issue #392](https://github.com/mark-wiemer-org/ahkpp/issues/392))
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"version": "5.0.2",
"description": "AutoHotkey v1 and v2 language support for Visual Studio Code: IntelliSense, debugging, formatting, and more",
"categories": [
"Debuggers",
"Formatters",
"Programming Languages",
"Snippets",
"Formatters"
"Snippets"
],
"keywords": [
"vscode",
Expand Down
2 changes: 1 addition & 1 deletion src/service/languageVersionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const initializeLanguageVersionService = (
) => {
const onSwitchFile = makeOnSwitchFile(new Set<vscode.Uri>());
vscode.window.onDidChangeActiveTextEditor(
(newActiveEditor) => onSwitchFile(newActiveEditor.document),
(newActiveEditor) => onSwitchFile(newActiveEditor?.document),
null,
context.subscriptions,
);
Expand Down

0 comments on commit 75296bf

Please sign in to comment.