Skip to content

Notify to Disable old standalone extensions #462

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

Merged
merged 1 commit into from
May 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
}
}