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
Lets users open project-specific include-file extensions as opm-flow
without modifying the built-in extension list. Accepts entries with
or without a leading '.', matched case-insensitively, and is
resource-scoped so a workspace can pin its own list:
"opm-flow.additionalFileExtensions": [".myinc", "wellconv"]
Activation is moved to onStartupFinished so the extension can retag
files on first open. Already-open files are retagged on activate;
onDidOpenTextDocument handles new opens; onDidChangeConfiguration
re-evaluates on setting changes. The VS Code-native
`files.associations` setting still works for one-off cases.
Copy file name to clipboardExpand all lines: vscode-extension/package.json
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,8 @@
31
31
],
32
32
"activationEvents": [
33
33
"onLanguage:opm-flow",
34
-
"onView:opm-flow.docsView"
34
+
"onView:opm-flow.docsView",
35
+
"onStartupFinished"
35
36
],
36
37
"main": "./out/extension",
37
38
"contributes": {
@@ -195,6 +196,15 @@
195
196
],
196
197
"description": "Keywords to skip when computing diagnostics (no squiggles for unknown-keyword, wrong-section, arity, or missing-'/' checks). Names are matched case-insensitively after upper-casing — OPM Flow keywords are conventionally uppercase. Use this for keywords whose record bodies don't fit the generic record model and produce noisy false positives.",
197
198
"scope": "resource"
199
+
},
200
+
"opm-flow.additionalFileExtensions": {
201
+
"type": "array",
202
+
"items": {
203
+
"type": "string"
204
+
},
205
+
"default": [],
206
+
"description": "Extra file extensions (with or without a leading '.') that should open as OPM Flow. Useful for project-specific include-file conventions not covered by the built-in extension list. Matched case-insensitively. Example: [\".myinc\", \"props2\"]. For one-off cases the VS Code-native `files.associations` setting still works too.",
0 commit comments