You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,3 +54,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
54
54
- Added support for saving the collapsed status of the TOC view in the settings of the extension. When navigating to different ORCA output files, the TOC view status for each file will be restored.
55
55
- Added support for automatically showing TOC view when opening an ORCA output file. (bug fix)
56
56
- Added instruction screenshots to this README.
57
+
58
+
## [0.3.1] - 2023-12-03
59
+
60
+
- Added grammar syntax highlighting for the ORCA output file (syntax definition is saved in [`orca.tmLanguage.json`](syntaxes/orca.tmLanguage.json))
Copy file name to clipboardExpand all lines: README.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,9 @@ N/A
27
27
28
28
## Extension Settings
29
29
30
-
The current version (0.3.0) enables changing the default status of the toggleable TOC view. The default collapsed status of the TOC view can be changed in the settings of the extension. The default value is `true`, which means that the TOC view is collapsed by default. The TOC view can be expanded by clicking on the `ORCA FILE OUTLINE` icon in the sidebar.
30
+
The current version (0.3.1) enables changing the default status of the toggleable TOC view. The default collapsed status of the TOC view can be changed in the settings of the extension. The default value is `true`, which means that the TOC view is collapsed by default. The TOC view can be expanded by clicking on the `ORCA FILE OUTLINE` icon in the sidebar.
31
+
32
+
The current version (0.3.1) also provide syntax highlighting for the ORCA output file, including the headings, separation lines, numbers, and keywords, etc. The syntax highlighting is enabled by default. The disablling of the syntax highlighting will be added in a future release. The display of the syntax highlighting varies with different themes. Dark themes are recommended for better display of the syntax highlighting.
31
33
32
34

33
35
@@ -49,19 +51,17 @@ The current version (0.3.0) enables changing the default status of the toggleabl
49
51
50
52
For detailed release notes, please see [CHANGELOG.md](CHANGELOG.md).
51
53
52
-
### 0.3.0
54
+
### 0.3.1
53
55
54
-
- Added support for saving the collapsed status of the TOC view in the settings of the extension. When navigating to different ORCA output files, the TOC view status for each file will be restored.
55
-
- Added support for automatically showing TOC view when opening an ORCA output file. (bug fix)
56
-
- Added instruction screenshots to this README.
56
+
- Added grammar syntax highlighting for the ORCA output file (syntax definition is saved in [`orca.tmLanguage.json`](syntaxes/orca.tmLanguage.json))
57
57
58
58
## TODO
59
59
60
60
-[ ] Highlight the corresponding TOC entry when the user is navigating through the ORCA output file based on the current line number.
61
61
-[ ] Foldings feature for the ORCA output file based on the TOC entries.
62
62
-[ ] Add support for the `ORCA FILE OUTLINE` view to automatically scroll to the current line in the ORCA output file.
63
-
-[ ] Formatter for the ORCA output file based on the TOC entries.
64
-
63
+
-[x] Syntax highliting for the ORCA output file based on the TOC entries.
64
+
-[ ] Add settings for enabling/disabling the syntax highlighting for the ORCA output file.
65
65
66
66
## Roadmap
67
67
@@ -80,6 +80,10 @@ Please submit a pull request if you would like to add a new regular expression t
80
80
81
81
A list of keywords that are used to format the headings in the TOC view is saved in `keywords.json` file. The matched strings will be formatted using the corresponding keywords. This list is currently not complete and will be updated in a future release.
82
82
83
+
The syntax definition for the ORCA output file is saved in [`orca.tmLanguage.json`](syntaxes/orca.tmLanguage.json). The syntax definition is based on the [TextMate grammar](https://macromates.com/manual/en/language_grammars) and [VS Code TextMate grammars](https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide#textmate-grammars). The syntax definition is currently not complete and will be updated in a future release.
84
+
85
+
Please submit a pull request if you would like to add/modify syntax definitions to the ORCA output file.
vscode.window.showErrorMessage("The file might be too large to open! VS Code is unable to operate with files larger than 50MB in active editor. Please consider breaking the file into smaller chunks.");
193
-
}else{
194
-
// If there's no file with .out extension in the workspace, show an error message, and Open File button to open the Open File dialog
195
-
vscode.window.showErrorMessage("No active document found. Please open a file first.","Open File").then((value)=>{
// if there's no active editor, check if there's a file with .out extension in the workspace
193
+
// if (!activeEditor) {
194
+
// // Check if there's a file with .out extension in the workspace
195
+
// if (vscode.workspace.textDocuments.some(doc => doc.uri.scheme === 'file' && doc.fileName.endsWith('.out'))) {
196
+
// vscode.window.showErrorMessage("The file might be too large to open! VS Code is unable to operate with files larger than 50MB in active editor. Please consider breaking the file into smaller chunks.");
197
+
// } else {
198
+
// // If there's no file with .out extension in the workspace, show an error message, and Open File button to open the Open File dialog
199
+
// vscode.window.showErrorMessage("No active document found. Please open a file first.", "Open File").then((value) => {
0 commit comments