Skip to content

Commit

Permalink
Updated translation dev options.
Browse files Browse the repository at this point in the history
  • Loading branch information
kowalp committed Dec 6, 2022
1 parent 0efe000 commit 8a19a55
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 586 deletions.
30 changes: 15 additions & 15 deletions out/extension.js

Large diffs are not rendered by default.

54 changes: 49 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nucomp-mcnp",
"displayName": "MCNP Language Server",
"description": "MCNP input validation and editor services. Also supports plot and run scripts.",
"version": "0.0.13",
"version": "0.0.14",
"featureFlags": {
"usingNewPythonInterpreterPathApi": true,
"usingNewPythonInterpreterPathApiV2": true
Expand All @@ -27,7 +27,8 @@
"onLanguage:mcnp",
"onCommand:nucomp-mcnp.run",
"onCommand:nucomp-mcnp.runPlotCommand",
"onCommand:nucomp-mcnp.translateSerpent"
"onCommand:nucomp-mcnp.translateSerpent",
"onCommand:nucomp-mcnp.translateOpenMC"
],
"main": "./out/extension",
"contributes": {
Expand All @@ -48,6 +49,14 @@
"dark": "./images/translate_drk.svg"
}
},
{
"command": "nucomp-mcnp.translateOpenMC",
"title": "MCNP: Translate to OpenMC",
"icon": {
"light": "./images/translate_lgt.svg",
"dark": "./images/translate_drk.svg"
}
},
{
"command": "nucomp-mcnp.runPlotCommand",
"title": "MCNP: Plot Geometry",
Expand Down Expand Up @@ -87,10 +96,15 @@
"group": "code-run"
},
{
"when": "!inOutput && config.nucomp-mcnp.showRunCommandInEditorContextMenu && resourceExtname == .mcnp",
"when": "!inOutput && config.nucomp-mcnp.showTranslateCommandInEditorContextMenu && resourceExtname == .mcnp",
"command": "nucomp-mcnp.translateSerpent",
"group": "code-run"
},
{
"when": "!inOutput && config.nucomp-mcnp.showTranslateCommandInEditorContextMenu && resourceExtname == .mcnp",
"command": "nucomp-mcnp.translateOpenMC",
"group": "code-run"
},
{
"when": "!inOutput && config.nucomp-mcnp.showRunCommandInEditorContextMenu && resourceExtname == .mcnp",
"command": "nucomp-mcnp.runPlotCommand",
Expand All @@ -109,10 +123,15 @@
"group": "navigation"
},
{
"when": "config.nucomp-mcnp.showRunIconInEditorTitleMenu && resourceExtname == .mcnp",
"when": "config.nucomp-mcnp.showTranslateIconInEditorTitleMenu && resourceExtname == .mcnp",
"command": "nucomp-mcnp.translateSerpent",
"group": "navigation"
},
{
"when": "config.nucomp-mcnp.showTranslateIconInEditorTitleMenu && resourceExtname == .mcnp",
"command": "nucomp-mcnp.translateOpenMC",
"group": "navigation"
},
{
"when": "config.nucomp-mcnp.showRunIconInEditorTitleMenu && resourceExtname == .mcnp",
"command": "nucomp-mcnp.runPlotCommand",
Expand All @@ -133,10 +152,15 @@
"group": "code-run"
},
{
"when": "!explorerResourceIsFolder && config.nucomp-mcnp.showRunCommandInExplorerContextMenu && resourceExtname == .mcnp",
"when": "!explorerResourceIsFolder && config.nucomp-mcnp.showTranslateCommandInExplorerContextMenu && resourceExtname == .mcnp",
"command": "nucomp-mcnp.translateSerpent",
"group": "code-run"
},
{
"when": "!explorerResourceIsFolder && config.nucomp-mcnp.showTranslateCommandInExplorerContextMenu && resourceExtname == .mcnp",
"command": "nucomp-mcnp.translateOpenMC",
"group": "code-run"
},
{
"when": "!explorerResourceIsFolder && config.nucomp-mcnp.showRunCommandInExplorerContextMenu && resourceExtname == .mcnp",
"command": "nucomp-mcnp.runPlotCommand",
Expand Down Expand Up @@ -293,6 +317,26 @@
"default": "temp_mcnp_file",
"description": "Temporary file name used in running selected code snippet. When it is set as empty, the file name will be random.",
"scope": "resource"
},
"nucomp-mcnp.showTranslateIconInEditorTitleMenu": {
"type": "boolean",
"default": false,
"description": "Whether to show 'MCNP: Translate' icon in editor title menu.",
"scope": "resource"
}
,
"nucomp-mcnp.showTranslateCommandInEditorContextMenu": {
"type": "boolean",
"default": false,
"description": "Whether to show 'MCNP: Translate' icon in editor title menu.",
"scope": "resource"
}
,
"nucomp-mcnp.showTranslateCommandInExplorerContextMenu": {
"type": "boolean",
"default": false,
"description": "Whether to show 'MCNP: Translate' icon in editor title menu.",
"scope": "resource"
}
}
},
Expand Down
28 changes: 28 additions & 0 deletions src/codeManager.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/extension.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8a19a55

Please sign in to comment.