Skip to content

Temporary remove Experimental Language Fortran setting #120

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 2 commits into from
Mar 20, 2019
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
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,6 @@ This is a list of some of the snippets included, if you like to include addition

To trigger code validations you must save the file first.

## Fortran Language Server (Experimental)

This extension uses a host of tools to provide the various language features. An alternative is to use a single language server that provides the same feature.

Set `fortran.useLanguageServer` to `true` to use the Fortran language server from [Chris Hansen](https://github.com/hansec/fortran-language-server) for features like Hover, Definition, Find All References, Signature Help, Go to Symbol in File and Workspace.

- This is an experimental feature and is not available in Windows yet.
- Since only a single language server is spun up for given VS Code instance, having multi-root setup does not work
- If set to true, you will be prompted to install the Fortran language server. Once installed, you will have to reload VS Code window. The language server will then be run by the Fortran extension in the background to provide services needed for the above mentioned features.
- Every time you change the value of the setting `fortran.useLanguageServer`, you need to reload the VS Code window for it to take effect.

## Requirements

For the linter to work you need to have `gfortran` on your path, or wherever you configure it to be.
Expand Down
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,6 @@
],
"description": "Specify what kind of symbols should be shown by the symbols' provider"
},
"fortran.useLanguageServer": {
"type": "boolean",
"default": false,
"description": "Experimental: Not available in Windows. Use Fortran language server from hansec for Hover, Definition, Find All References, Signature Help, File Outline and Workspace Symbol features"
},
"fortran.preferredCase": {
"type": "string",
"default": "lowercase",
Expand Down
2 changes: 1 addition & 1 deletion src/lang-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class FortranLangServer {
}

export function checkForLangServer(config) {
const useLangServer = config.get('useLanguageServer')
const useLangServer = false //config.get('useLanguageServer')
if (!useLangServer) return false
if (process.platform === 'win32') {
vscode.window.showInformationMessage(
Expand Down