Skip to content

Commit

Permalink
Added project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewBald committed Jun 1, 2018
0 parents commit 6fb4910
Show file tree
Hide file tree
Showing 20 changed files with 877 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
out
node_modules
28 changes: 28 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// A launch configuration that compiles the extension and then opens it inside a new window
{
"version": "0.1.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"stopOnEntry": false,
"sourceMaps": true,
"outDir": "${workspaceRoot}/out/src",
"preLaunchTask": "npm"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
"stopOnEntry": false,
"sourceMaps": true,
"outDir": "${workspaceRoot}/out/test",
"preLaunchTask": "npm"
}
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": false // set this to true to hide the "out" folder with the compiled JS files
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
"typescript.tsdk": "./node_modules/typescript/lib",
"vsicons.presets.angular": false // we want to use the TS server from our node_modules folder to control its version
}
30 changes: 30 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process

// A task runner that calls a custom npm script that compiles the extension.
{
"version": "0.1.0",

// we want to run npm
"command": "npm",

// the command is a shell script
"isShellCommand": true,

// show the output window only if unrecognized errors occur.
"showOutput": "silent",

// we run the custom script "compile" as defined in package.json
"args": ["run", "compile", "--loglevel", "silent"],

// The tsc compiler is started in watching mode
"isWatching": true,

// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch"
}
9 changes: 9 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.vscode/**
.vscode-test/**
out/test/**
test/**
src/**
**/*.map
.gitignore
tsconfig.json
vsc-extension-quickstart.md
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Change Log
All notable changes to the "bml-lang-intellisense" extension will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [Unreleased]
- Initial release
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# bml-lang-intellisense README

Provides code completion, hover hints, snippets, signature help for BML. (WIP)

Documentation for CPQ system attributes & functions were converted from the Notepad++ plugin made by Eric McDonald (version 2015/06/30).

## Features

Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.

Code completion

Signature help

Hover hints

Snippets

\!\[feature X\]\(images/feature-x.png\)

> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
## Requirements

None

## Known Issues

Calling out known issues can help limit users opening duplicate issues against your extension.

## Release Notes

Users appreciate release notes as you update your extension.

### 1.0.0

Initial release

-----------------------------------------------------------------------------------------------------------

## Working with Markdown

**Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

* Split the editor (`Cmd+\` on OSX or `Ctrl+\` on Windows and Linux)
* Toggle preview (`Shift+CMD+V` on OSX or `Shift+Ctrl+V` on Windows and Linux)
* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (OSX) to see a list of Markdown snippets

### For more information

* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)

**Enjoy!**
30 changes: 30 additions & 0 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "//",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [ "/*", "*/" ]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
// symbols that that can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}
47 changes: 47 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "bml-lang-intellisense",
"displayName": "bml-lang-intellisense",
"description": "BML Intellisense",
"version": "0.0.1",
"publisher": "publisher1",
"engines": {
"vscode": "^1.5.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:bml"
],
"main": "./out/src/extension",
"contributes": {
"languages": [{
"id": "bml",
"aliases": ["bml"],
"extensions": [".bml"],
"configuration": "./language-configuration.json"
}],
"grammars": [{
"language": "bml",
"scopeName": "source.bml",
"path": "./syntaxes/bml.tmLanguage.json"
}],
"snippets": [{
"language": "bml",
"path": "./snippets/bml.json"
}]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"typescript": "^2.0.3",
"vscode": "^1.0.0",
"mocha": "^2.3.3",
"@types/node": "^6.0.40",
"@types/mocha": "^2.2.32"
}
}
82 changes: 82 additions & 0 deletions snippets/bml.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[{
"For Loop": {
"prefix": "for",
"body": [
"for (${iterator} in ${collection}) {",
"\t$0",
"}"
],
"description": "Standard for loop"
},
"Indexed For Loop": {
"prefix": "forindex",
"body": [
"${index} = 0;",
"for (${each} in ${collection}) {",
"\t$0",
"\t${index} = ${index} + 1;",
"}"
],
"description": "A for loop that increments an index each iteration."
},
"Indexed For Loop 2": {
"prefix": "index",
"body": [
"${index} = 0;",
"for (${each} in ${collection}) {",
"\t$0",
"\t${index} = ${index} + 1;",
"}"
],
"description": "A for loop that increments an index each iteration."
},
"If": {
"prefix": "if",
"body": [
"if (${condition}) {",
"\t$0",
"}"
],
"description": "An if statement"
},
"If...Else": {
"prefix": "if...else",
"body": [
"if (${condition}) {",
"\t$1",
"}",
"else {",
"\t$0",
"}"
],
"description": "An if...else statement"
},
"If...Elif": {
"prefix": "if...elif",
"body": [
"if (${cond1}) {",
"\t$1",
"}",
"elif (${cond2}) {",
"\t$0",
"}"
],
"description": "An if...elif statement"
},
"If...Elif...Else": {
"prefix": "if...elif...else",
"body": [
"if (${cond1}) {",
"\t$2",
"}",
"elif (${cond2}) {",
"\t$1",
"}",
"else {",
"\t$0",
"}"
],
"description": "An if...else statement"
}

}]
Loading

0 comments on commit 6fb4910

Please sign in to comment.