Skip to content

Commit 73bef58

Browse files
committed
Split syntax and snippets
1 parent 19a2051 commit 73bef58

14 files changed

+111
-25
lines changed

README.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
1-
# Scala Syntax
1+
# Scala Syntax and Snippets
2+
Visual Studio Code extensions that provide Scala syntax and snippets.
23

3-
[VS Code plugin](https://marketplace.visualstudio.com/items?itemName=nicolasstucki.scala)
4+
Refer to the READMEs in the respective directories:
45

5-
## Features
6+
- [Scala Syntax](/syntax)
7+
- [Scala Snippets](/snippets)
68

7-
Extension providing Scala syntax and code snippets.
8-
9-
## Requirements
10-
11-
No requirements.
12-
13-
## Based on
14-
* Plugin: https://github.com/daltonjorge/vscode-scala
15-
* Template: https://github.com/sellmerfud/scala.tmbundle (https://github.com/mads-hartmann/scala.tmbundle)
16-
17-
## License
18-
[MIT](LICENSE)
19-
20-
-----------------------------------------------------------------------------------------------------------

snippets/.vscode/launch.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// A launch configuration that launches the extension inside a new window
2+
{
3+
"version": "0.1.0",
4+
"configurations": [
5+
{
6+
"name": "Launch Extension",
7+
"type": "extensionHost",
8+
"request": "launch",
9+
"runtimeExecutable": "${execPath}",
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ]
11+
}
12+
]
13+
}

snippets/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Scala Snippets
2+
3+
[VS Code plugin](https://marketplace.visualstudio.com/items?itemName=scala-lang.scala-snippets)
4+
5+
## Features
6+
7+
Extension providing Scala code snippets.
8+
9+
## Requirements
10+
11+
No requirements.
12+
13+
## License
14+
[MIT](LICENSE)
15+
16+
-----------------------------------------------------------------------------------------------------------
File renamed without changes.

snippets/package.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "scala",
3+
"displayName": "Scala Snippets",
4+
"description": "Scala Snippets",
5+
"version": "0.1.0",
6+
"publisher": "scala-lang",
7+
"license": "SEE LICENSE IN LICENSE.md",
8+
"engines": {
9+
"vscode": "^1.5.0"
10+
},
11+
"homepage": "https://github.com/scala/vscode-scala-syntax/blob/master/snippets/README.md",
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/scala/vscode-scala-syntax.git"
15+
},
16+
"icon": "images/smooth-spiral.png",
17+
"categories": [
18+
"Snippets"
19+
],
20+
"contributes": {
21+
"snippets": [
22+
{
23+
"language": "scala",
24+
"path": "./snippets.json"
25+
}
26+
]
27+
},
28+
"extensionDependencies": [
29+
"scala-lang.scala"
30+
]
31+
}
File renamed without changes.

snippets/vsc-extension-quickstart.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Welcome to your VS Code Extension
2+
3+
## What's in the folder
4+
* This folder contains all of the files necessary for your extension
5+
* `package.json` - this is the manifest file in which you declare your language support and define
6+
the location of the grammar file that has been copied into you extension.
7+
* `snippets.json` - this is the file defining the snippets
8+
9+
## Get up and running straight away
10+
* press `F5` to open a new window with your extension loaded
11+
* create a new file with a file name suffix matching your language
12+
* verify that syntax highlight works and that the language configuration settings are working
13+
14+
## Make changes
15+
* you can relaunch the extension from the debug toolbar after making changes to the files listed above
16+
* you can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes
17+
18+
## Add more language features
19+
* To add features such as intellisense, hovers and validators check out the VS Code extenders documentation at
20+
https://code.visualstudio.com/docs
21+
22+
## Install your extension
23+
* To start using your extension with Visual Studio Code copy it into the <user home>/.vscode/extensions folder and restart Code.
24+
* To share your extension with the world, read on https://code.visualstudio.com/docs about publishing an extension.
File renamed without changes.

syntax/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Scala Syntax
2+
3+
[VS Code plugin](https://marketplace.visualstudio.com/items?itemName=scala-lang.scala)
4+
5+
## Features
6+
7+
Extension providing Scala syntax.
8+
9+
## Requirements
10+
11+
No requirements.
12+
13+
## Based on
14+
* Plugin: https://github.com/daltonjorge/vscode-scala
15+
* Template: https://github.com/sellmerfud/scala.tmbundle (https://github.com/mads-hartmann/scala.tmbundle)
16+
17+
## License
18+
[MIT](LICENSE)
19+
20+
-----------------------------------------------------------------------------------------------------------

syntax/images/smooth-spiral.png

12.7 KB
Loading
File renamed without changes.

package.json renamed to syntax/package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"engines": {
99
"vscode": "^1.5.0"
1010
},
11-
"homepage": "https://github.com/scala/vscode-scala-syntax/blob/master/README.md",
11+
"homepage": "https://github.com/scala/vscode-scala-syntax/blob/master/syntax/README.md",
1212
"repository": {
1313
"type": "git",
1414
"url": "https://github.com/scala/vscode-scala-syntax.git"
@@ -32,12 +32,6 @@
3232
"configuration": "./language-configuration.json"
3333
}
3434
],
35-
"snippets": [
36-
{
37-
"language": "scala",
38-
"path": "./snippets/scala.json"
39-
}
40-
],
4135
"grammars": [
4236
{
4337
"language": "scala",
File renamed without changes.

vsc-extension-quickstart.md renamed to syntax/vsc-extension-quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ https://code.visualstudio.com/docs
2424

2525
## Install your extension
2626
* To start using your extension with Visual Studio Code copy it into the <user home>/.vscode/extensions folder and restart Code.
27-
* To share your extension with the world, read on https://code.visualstudio.com/docs about publishing an extension.
27+
* To share your extension with the world, read on https://code.visualstudio.com/docs about publishing an extension.

0 commit comments

Comments
 (0)