diff --git a/CHANGELOG.md b/CHANGELOG.md index 71ed1ae1..58719cf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added +- Added warning notifications for extensions that interfere with Modern Fortran + ([#458](https://github.com/fortran-lang/vscode-fortran-support/issues/458)) - Added single file and multiple workspace folder support for the Language Server ([#446](https://github.com/fortran-lang/vscode-fortran-support/issues/446)) - Added file synchronization with VS Code settings and `.fortls` against the Language Server diff --git a/src/extension.ts b/src/extension.ts index 41968e20..6b94e44d 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -118,4 +118,21 @@ function detectDeprecatedOptions() { loggingService.logError(`The following deprecated options have been detected:\n${oldArgs}`); }); } + + // NOTE: the API for this will probably change in the near future to return true + // even if the extension is not activated + // see: https://github.com/microsoft/vscode/issues/133734 + if (vscode.extensions.getExtension('hansec.fortran-ls')) { + vscode.window.showWarningMessage( + `Modern Fortran is not compatible with FORTRAN Intellisense. + Language Server integration is handled in Modern Fortran now. + Please Disable FORTRAN Intellisense.` + ); + } + if (vscode.extensions.getExtension('ekibun.fortranbreaker')) { + vscode.window + .showWarningMessage(`Modern Fortran is not compatible with Fortran Breakpoint Support. + Breakpoint support is handled natively in Modern Fortran. + Please Disable Fortran Breakpoint Support.`); + } }