Skip to content

Commit 220da03

Browse files
committed
Free choice of interpreter is now allowed (#11). Minor changes to README and version is bumped.
1 parent 4a5f9bb commit 220da03

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Interactive Scala
22

3-
Interactive Scala is an extension for Visual Studio Code. Inspired by Ionide F#, this extension lets you select Scala code and execute it in the Scala interpreter REPL by a quick keyboard shortcut.
3+
Interactive Scala is an extension for Visual Studio Code. This extension lets you select Scala code and execute it in the Scala interpreter REPL by a quick keyboard shortcut.
44

55
## Features
66

@@ -17,7 +17,7 @@ Shortcuts are not your style? You can now use the context menu as well! Just sel
1717

1818
## Extension Settings
1919

20-
The used REPL Scala interpreter can be changed through the VS Code preferences. You can currently choose between `scala` (default) and `sbt console`.
20+
The used REPL Scala interpreter can be changed through the VS Code preferences. You can choose any Scala interpreter you like, including `scala` (default) and `sbt console`.
2121
The first of which is using the system-wide Scala installation through the `scala` command. `sbt console` uses the Scala Build Tool thourgh the `sbt`command and will use the local project installation. Please note, that SBT will instantiate a new project, if none is found in the working directory.
2222

2323
Using `sbt console` is a bit slower initially, as SBT will compile and check for updates before entering the interpreter.
@@ -41,10 +41,17 @@ https://www.scala-sbt.org/download.html
4141
The default shell for the integrated terminal on Windows (PowerShell) is known to cause problems with manual input to the Scala interpreter.
4242
Change the shell to e.g. Git Bash as a workaround.
4343

44-
The extension has not been tested on MacOS and Linux.
45-
4644
## Release Notes
4745

46+
### 1.3.0
47+
Changed:
48+
- Free choice of the interpreter, you are no longer limited to `scala` and `sbt console`.
49+
- The cursor now moves to the next line when you execute a single line.
50+
- The focus is now maintained on the selected code instead of transferring focus to the terminal when executing code.
51+
52+
Added:
53+
- Setting to require jar-files upon initialisation of the REPL.
54+
4855
### 1.2.1
4956
Changed:
5057
- The input is now wrapped in `:paste` and `Ctrl+D` to support bigger code pieces better.

package.json

+3-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Interactive Scala",
44
"description": "Run Scala code snippets by a click on a button!",
55
"publisher": "alssys",
6-
"version": "1.2.1",
6+
"version": "1.3.0",
77
"repository": "https://github.com/matt035343/interactive-scala",
88
"icon": "img/icon.png",
99
"license": "MIT",
@@ -38,15 +38,8 @@
3838
"interactiveScala.interpreter": {
3939
"type": "string",
4040
"default": "scala",
41-
"enum": [
42-
"scala",
43-
"sbt console"
44-
],
45-
"enumDescriptions": [
46-
"Uses system-wide Scala installation for interpretation.",
47-
"Uses project SBT installation for interpretation."
48-
],
49-
"markdownDescription": "Change the REPL interpreter used by Interactive Scala. `scala` requires installation of system-wide scala binaries. `sbt` requires installation of Scala Build Tool and that there's initialised a SBT project in the working directory. **Default:** `scala`."
41+
"title": "Path for the Scala interpreter to use.",
42+
"markdownDescription": "Here you can provide a path (and custom arguments) to a Scala interpreter REPL. If you want to run the interpreter with flags or parameters, you can also specify it here. E.g. write `scala` to use a system-wide installation of Scala or write `sbt console` to use the SBT interpreter. You can also preload a file, example: `scala -i Test.scala`"
5043
},
5144
"interactiveScala.requiredFiles": {
5245
"type": "array",

0 commit comments

Comments
 (0)