Skip to content

Commit

Permalink
Add extension meta information
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeeshaan committed Sep 19, 2018
1 parent 6881826 commit 9426243
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ hs_err_pid*
# generated files
target
results
*.vsix

# mac
.DS_Store
Expand All @@ -23,3 +24,7 @@ results
.project
.settings
.vscode

#directories
client/out
node_modules/
14 changes: 9 additions & 5 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"name": "swagger-language-sever-extension",
"description": "VSCode Client extension for Swagger",
"author": "Nadeeshaan",
"license": "MIT",
"version": "0.0.1",
"author": "Nadeeshaan Gunasinghe",
"license": "Apache-2.0",
"version": "0.0.1-SNAPSHOT",
"publisher": "nadeeshaan",
"repository": {
"type": "git",
"url": "https://github.com/nadeeshaan/swagger-ls"
},
"engines": {
"vscode": "^1.26.0"
},
Expand All @@ -18,9 +22,9 @@
"contributes": {
"configuration": {
"type": "object",
"title": "Example configuration",
"title": "Swagger Language Server configuration",
"properties": {
"languageServerExample.maxNumberOfProblems": {
"swaggerLS.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
Expand Down
6 changes: 2 additions & 4 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import * as path from 'path';

import { workspace, Disposable, ExtensionContext } from 'vscode';
import { LanguageClient, LanguageClientOptions, SettingMonitor, ServerOptions, TransportKind } from 'vscode-languageclient';
import { LanguageClient, LanguageClientOptions, ServerOptions } from 'vscode-languageclient';

const main: string = 'StdioLauncher';

Expand All @@ -19,8 +19,6 @@ export function activate(context: ExtensionContext) {

let jarPath = path.join(__dirname, '..', 'launcher', 'ls-launcher.jar');
const args: string[] = ['-cp', jarPath];
args.push('-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005,quiet=y');
console.log(jarPath);

let serverOptions: ServerOptions = {
command: excecutable,
Expand All @@ -35,7 +33,7 @@ export function activate(context: ExtensionContext) {
};

// Create the language client and start the client.
let disposable = new LanguageClient('languageServerExample', 'Language Server Example', serverOptions, clientOptions).start();
let disposable = new LanguageClient('swaggerLS', 'Swagger Language Server', serverOptions, clientOptions).start();

// Push the disposable to the context's subscriptions so that the
// client can be deactivated on extension deactivation
Expand Down
2 changes: 1 addition & 1 deletion stdio-launcher/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<resource>
<directory>${basedir}/target/</directory>
<include>${project.artifactId}.jar</include>
<filtering>true</filtering>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
Expand Down

0 comments on commit 9426243

Please sign in to comment.