Skip to content

Commit ec07a9c

Browse files
committed
Fixes Log channel suppressed when activation fails #286
1 parent 80343cb commit ec07a9c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
## [2.6.0]
1111

12+
### Fixed
13+
14+
- Fixes log channel not initialising when extension fails to activate
15+
([#286](https://github.com/krvajal/vscode-fortran-support/issues/286))
16+
1217
### Added
1318

1419
- Adds support for variable and path interpolation along with glob expressions

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ import * as pkg from '../package.json';
1414
import { LANG_SERVER_TOOL_ID } from './lib/tools';
1515
import { FortranFormattingProvider } from './features/formatting-provider';
1616

17+
// Make it global to catch errors when activation fails
18+
const loggingService = new LoggingService();
19+
1720
export function activate(context: vscode.ExtensionContext) {
18-
const loggingService = new LoggingService();
1921
const extensionConfig = vscode.workspace.getConfiguration(EXTENSION_ID);
2022

2123
loggingService.logInfo(`Extension Name: ${pkg.displayName}`);

0 commit comments

Comments
 (0)