|
52 | 52 | }, |
53 | 53 | "activationEvents": [ |
54 | 54 | "onLanguage:FortranFreeForm", |
55 | | - "onLanguage:FortranFixedForm" |
| 55 | + "onLanguage:FortranFixedForm", |
| 56 | + "onCommand:fortran.analysis.restartLanguageServer", |
| 57 | + "onCommand:fortran.analysis.rescanLinter", |
| 58 | + "onCommand:fortran.analysis.cleanLinterDiagnostics", |
| 59 | + "onCommand:fortran.analysis.cleanLinterFiles", |
| 60 | + "onCommand:fortran.analysis.initLinter", |
| 61 | + "onCommand:fortran.analysis.showWhatsNew", |
| 62 | + "onCommand:fortran.build.run", |
| 63 | + "onCommand:fortran.build.debug" |
56 | 64 | ], |
57 | 65 | "main": "./dist/extension.js", |
58 | 66 | "extensionDependencies": [ |
|
231 | 239 | "markdownDescription": "Compiler used for linting support.", |
232 | 240 | "order": 0 |
233 | 241 | }, |
| 242 | + "fortran.linter.initialize": { |
| 243 | + "type": "boolean", |
| 244 | + "default": true, |
| 245 | + "markdownDescription": "Attempt to initialize the linter by mock-compiling all files in the workspace.", |
| 246 | + "order": 5 |
| 247 | + }, |
234 | 248 | "fortran.linter.compilerPath": { |
235 | 249 | "type": "string", |
236 | 250 | "default": "", |
|
257 | 271 | "fortran.linter.modOutput": { |
258 | 272 | "type": "string", |
259 | 273 | "default": "", |
260 | | - "markdownDescription": "Global output directory for .mod files generated due to linting `-J<linter.modOutput>`. Can resolve internal variables with `~`, `${workspaceFolder}`, `${env}`, `${config}`, `${file}`, `${fileDirname}`, `${fileBasenameNoExtension}`.", |
| 274 | + "markdownDescription": "Output directory for .mod files generated due to linting `-J<linter.modOutput>`. By default this is an internal VS Code path unique to each workspace. Can resolve internal variables with `~`, `${workspaceFolder}`, `${env}`, `${config}`, `${file}`, `${fileDirname}`, `${fileBasenameNoExtension}`.", |
261 | 275 | "order": 40 |
262 | 276 | }, |
263 | 277 | "fortran.linter.fypp.enabled": { |
|
307 | 321 | "std", |
308 | 322 | "gfortran5" |
309 | 323 | ], |
310 | | - "markdownDescription": "ine numbering marker format, currently std`, `cpp` and `gfortran5` are supported, where `std` emits `#line` pragmas similar to standard tools, 'cpp' produces line directives as emitted by GNU cpp, and `gfortran5` cpp line directives with a workaround for a bug introduced in GFortran 5. Default: `cpp`.", |
| 324 | + "markdownDescription": "Line numbering marker format, currently std`, `cpp` and `gfortran5` are supported, where `std` emits `#line` pragmas similar to standard tools, 'cpp' produces line directives as emitted by GNU cpp, and `gfortran5` cpp line directives with a workaround for a bug introduced in GFortran 5. Default: `cpp`.", |
311 | 325 | "order": 120 |
312 | 326 | }, |
313 | 327 | "fortran.linter.fypp.extraArgs": { |
|
526 | 540 | } |
527 | 541 | } |
528 | 542 | }, |
| 543 | + { |
| 544 | + "id": "experimental", |
| 545 | + "title": "Experimental", |
| 546 | + "order": 500, |
| 547 | + "properties": { |
| 548 | + "fortran.experimental.keepInitDiagnostics": { |
| 549 | + "type": "boolean", |
| 550 | + "default": true, |
| 551 | + "markdownDescription": "Keep (and show) all diagnostics generated from the initialization of the Linter, not just from opened files.", |
| 552 | + "order": 0 |
| 553 | + } |
| 554 | + } |
| 555 | + }, |
529 | 556 | { |
530 | 557 | "id": "deprecated", |
531 | 558 | "title": "Deprecated Options", |
|
581 | 608 | { |
582 | 609 | "category": "Fortran", |
583 | 610 | "command": "fortran.analysis.rescanLinter", |
584 | | - "title": "Rescan Linter paths" |
| 611 | + "title": "Rescan Linter Include paths" |
| 612 | + }, |
| 613 | + { |
| 614 | + "category": "Fortran", |
| 615 | + "command": "fortran.analysis.initLinter", |
| 616 | + "title": "Initialize Fortran Linter" |
| 617 | + }, |
| 618 | + { |
| 619 | + "category": "Fortran", |
| 620 | + "command": "fortran.analysis.cleanLinterFiles", |
| 621 | + "title": "Clean Linter generated files" |
| 622 | + }, |
| 623 | + { |
| 624 | + "category": "Fortran", |
| 625 | + "command": "fortran.analysis.cleanLinterDiagnostics", |
| 626 | + "title": "Clean All Linter Diagnostics" |
585 | 627 | }, |
586 | 628 | { |
587 | 629 | "category": "Fortran", |
|
615 | 657 | "title": "Rescan Linter paths", |
616 | 658 | "when": "!virtualWorkspace && shellExecutionSupported" |
617 | 659 | }, |
| 660 | + { |
| 661 | + "category": "Fortran", |
| 662 | + "command": "fortran.analysis.initLinter", |
| 663 | + "title": "Initialize Fortran Linter", |
| 664 | + "when": "!virtualWorkspace && shellExecutionSupported" |
| 665 | + }, |
| 666 | + { |
| 667 | + "category": "Fortran", |
| 668 | + "command": "fortran.analysis.cleanLinterFiles", |
| 669 | + "title": "Clean Linter generated files", |
| 670 | + "when": "!virtualWorkspace && shellExecutionSupported" |
| 671 | + }, |
| 672 | + { |
| 673 | + "category": "Fortran", |
| 674 | + "command": "fortran.analysis.cleanLinterDiagnostics", |
| 675 | + "title": "Clean All Linter Diagnostics", |
| 676 | + "when": "!virtualWorkspace && shellExecutionSupported" |
| 677 | + }, |
618 | 678 | { |
619 | 679 | "category": "Fortran", |
620 | 680 | "command": "fortran.analysis.showWhatsNew", |
|
662 | 722 | "webpack": "webpack --mode production", |
663 | 723 | "pretest": "npm run compile-dev && tsc -p tsconfig.test.json", |
664 | 724 | "test": "npm run test:unit && npm run test:integration && npm run test:ui", |
665 | | - "test:ui": "extest setup-and-run -i out/test/ui/*.js -m test/ui/.mocharc.js", |
| 725 | + "test:ui": "extest setup-and-run -i out/test/ui/*.js -m test/ui/.mocharc.js -s .vscode-test -e .vscode-test/extensions", |
666 | 726 | "test:unit": "node ./out/test/unitTest/runTest.js", |
667 | 727 | "test:integration": "node ./out/test/integration/runTest.js", |
668 | 728 | "test:grammar-free": "vscode-tmgrammar-snap -s source.fortran.free -g ./syntaxes/fortran_free-form.tmLanguage.json \"./test/fortran/syntax/**/*{.f90,F90}\"", |
|
0 commit comments