Skip to content

Commit b0c8bdb

Browse files
authored
Merge pull request #462 from fortran-lang:gnikit/issue458
Notify to Disable old standalone extensions
2 parents 6311eaa + 7dbef0d commit b0c8bdb

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
### Added
1313

14+
- Added warning notifications for extensions that interfere with Modern Fortran
15+
([#458](https://github.com/fortran-lang/vscode-fortran-support/issues/458))
1416
- Added single file and multiple workspace folder support for the Language Server
1517
([#446](https://github.com/fortran-lang/vscode-fortran-support/issues/446))
1618
- Added file synchronization with VS Code settings and `.fortls` against the Language Server

src/extension.ts

+17
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,21 @@ function detectDeprecatedOptions() {
118118
loggingService.logError(`The following deprecated options have been detected:\n${oldArgs}`);
119119
});
120120
}
121+
122+
// NOTE: the API for this will probably change in the near future to return true
123+
// even if the extension is not activated
124+
// see: https://github.com/microsoft/vscode/issues/133734
125+
if (vscode.extensions.getExtension('hansec.fortran-ls')) {
126+
vscode.window.showWarningMessage(
127+
`Modern Fortran is not compatible with FORTRAN Intellisense.
128+
Language Server integration is handled in Modern Fortran now.
129+
Please Disable FORTRAN Intellisense.`
130+
);
131+
}
132+
if (vscode.extensions.getExtension('ekibun.fortranbreaker')) {
133+
vscode.window
134+
.showWarningMessage(`Modern Fortran is not compatible with Fortran Breakpoint Support.
135+
Breakpoint support is handled natively in Modern Fortran.
136+
Please Disable Fortran Breakpoint Support.`);
137+
}
121138
}

0 commit comments

Comments
 (0)