Skip to content

Commit

Permalink
Split syntax and snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro committed Oct 1, 2018
1 parent 9af431c commit d275c5f
Show file tree
Hide file tree
Showing 14 changed files with 111 additions and 25 deletions.
22 changes: 5 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
# Scala Syntax
# Scala Syntax and Snippets
Visual Studio Code extensions that provide Scala syntax and snippets.

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

## Features
- [Scala Syntax](/syntax)
- [Scala Snippets](/snippets)

Extension providing Scala syntax and code snippets.

## Requirements

No requirements.

## Based on
* Plugin: https://github.com/daltonjorge/vscode-scala
* Template: https://github.com/sellmerfud/scala.tmbundle (https://github.com/mads-hartmann/scala.tmbundle)

## License
[MIT](LICENSE)

-----------------------------------------------------------------------------------------------------------
13 changes: 13 additions & 0 deletions snippets/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// A launch configuration that launches the extension inside a new window
{
"version": "0.1.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ]
}
]
}
16 changes: 16 additions & 0 deletions snippets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Scala Snippets

[VS Code plugin](https://marketplace.visualstudio.com/items?itemName=scala-lang.scala-snippets)

## Features

Extension providing Scala code snippets.

## Requirements

No requirements.

## License
[MIT](LICENSE)

-----------------------------------------------------------------------------------------------------------
File renamed without changes
31 changes: 31 additions & 0 deletions snippets/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "scala",
"displayName": "Scala Snippets",
"description": "Scala Snippets",
"version": "0.1.0",
"publisher": "scala-lang",
"license": "SEE LICENSE IN LICENSE.md",
"engines": {
"vscode": "^1.5.0"
},
"homepage": "https://github.com/scala/vscode-scala-syntax/blob/master/snippets/README.md",
"repository": {
"type": "git",
"url": "https://github.com/scala/vscode-scala-syntax.git"
},
"icon": "images/smooth-spiral.png",
"categories": [
"Snippets"
],
"contributes": {
"snippets": [
{
"language": "scala",
"path": "./snippets.json"
}
]
},
"extensionDependencies": [
"scala-lang.scala"
]
}
File renamed without changes.
24 changes: 24 additions & 0 deletions snippets/vsc-extension-quickstart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Welcome to your VS Code Extension

## What's in the folder
* This folder contains all of the files necessary for your extension
* `package.json` - this is the manifest file in which you declare your language support and define
the location of the grammar file that has been copied into you extension.
* `snippets.json` - this is the file defining the snippets

## Get up and running straight away
* press `F5` to open a new window with your extension loaded
* create a new file with a file name suffix matching your language
* verify that syntax highlight works and that the language configuration settings are working

## Make changes
* you can relaunch the extension from the debug toolbar after making changes to the files listed above
* you can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes

## Add more language features
* To add features such as intellisense, hovers and validators check out the VS Code extenders documentation at
https://code.visualstudio.com/docs

## Install your extension
* To start using your extension with Visual Studio Code copy it into the <user home>/.vscode/extensions folder and restart Code.
* To share your extension with the world, read on https://code.visualstudio.com/docs about publishing an extension.
File renamed without changes.
20 changes: 20 additions & 0 deletions syntax/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Scala Syntax

[VS Code plugin](https://marketplace.visualstudio.com/items?itemName=scala-lang.scala)

## Features

Extension providing Scala syntax.

## Requirements

No requirements.

## Based on
* Plugin: https://github.com/daltonjorge/vscode-scala
* Template: https://github.com/sellmerfud/scala.tmbundle (https://github.com/mads-hartmann/scala.tmbundle)

## License
[MIT](LICENSE)

-----------------------------------------------------------------------------------------------------------
Binary file added syntax/images/smooth-spiral.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
8 changes: 1 addition & 7 deletions package.json → syntax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"engines": {
"vscode": "^1.5.0"
},
"homepage": "https://github.com/scala/vscode-scala-syntax/blob/master/README.md",
"homepage": "https://github.com/scala/vscode-scala-syntax/blob/master/syntax/README.md",
"repository": {
"type": "git",
"url": "https://github.com/scala/vscode-scala-syntax.git"
Expand All @@ -33,12 +33,6 @@
"configuration": "./language-configuration.json"
}
],
"snippets": [
{
"language": "scala",
"path": "./snippets/scala.json"
}
],
"grammars": [
{
"language": "scala",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ https://code.visualstudio.com/docs

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

0 comments on commit d275c5f

Please sign in to comment.