Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from gopcode/init_pr
Browse files Browse the repository at this point in the history
init commit
  • Loading branch information
xushiwei authored Jul 12, 2020
2 parents 190341b + 00ae90d commit 55ffdc1
Show file tree
Hide file tree
Showing 42 changed files with 7,310 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Output of nodejs and typescript
out
node_modules

# Other
.vscode-test
.DS_Store

# Dependency directories (remove the comment below to include it)
# vendor/
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: node_js

node_js:
- "8.11.1"

install:
- npm install -g typescript
- npm install

script:
- tsc -p ./
32 changes: 32 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}
19 changes: 19 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
src/**/*
test/
third_party/
typings/**/*
.vscode/**/*
tsconfig.json
.gitignore
**/*.map
**/tslint.json
build/**/*
docs/
*.md.nightly
.github/**/*
.prettierrc.json
out/test/**
.vscode-test/**
SECURITY.md
node_modules/*
out/*
34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# vscode-gop
GoPlus (Go+) Plugin for vscode
![logo](./images/icon.png)

[![Build Status](https://travis-ci.org/gopcode/vscode-goplus.svg?branch=master)](https://travis-ci.org/github/gopcode/vscode-goplus)
[![License](https://img.shields.io/badge/license-Apache-blue.svg)](https://raw.githubusercontent.com/gopcode/vscode-goplus/master/LICENSE)

# GoPlus (Go+) Plugin for vscode

This extension provides rich language support for the Go+ programming language in VS Code.

## Example

![example](https://github.com/gopcode/vscode-goplus/blob/master/images/example3.gif)

## Install Go
Before you start coding, make sure that you have already installed Go, as explained in the Go installation guide.

If you are unsure whether you have installed Go, open the Command Palette in VS Code (Ctrl+Shift+P) and run the goplus

## Feature Support

- [x] Syntax Highlight
- [x] Auto Snippet
- [x] Format Source Code
- [ ] Semantic Highlight
- [x] Auto Completion
- [x] Hover function Display
- [X] Auto import
- [ ] Code Diagnostics
- [ ] Help With Function and Method Signatures
- [x] Show Definitions of a Symbol
- [ ] Find All References to a Symbol
- [ ] Highlight All Occurrences of a Symbol in a Document
14 changes: 14 additions & 0 deletions fileicons/vs_goplus-icon-theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"iconDefinitions": {
"_goplus_": {
"iconPath": "../images/icon.png"
}
},

"fileExtensions": {
"gop": "_goplus_"
},
"languageIds": {
"gop": "_goplus_"
}
}
Binary file added images/example1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/example2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/example3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}
Loading

0 comments on commit 55ffdc1

Please sign in to comment.