Skip to content

Commit

Permalink
Update all lsp samples
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Oct 24, 2018
1 parent 7a15f00 commit e82ba7c
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 26 deletions.
20 changes: 16 additions & 4 deletions .scripts/samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const samples = [
apis: ['StatusBarItem'],
contributions: []
},
{ description: 'File System Provider', path: 'fsprovider-sample', guide: null, apis: ['workspace.registerFileSystemProvider'], contributions: [] },
{ description: 'File System Provider Sample', path: 'fsprovider-sample', guide: null, apis: ['workspace.registerFileSystemProvider'], contributions: [] },
// TODO: Fix your sample and move it to above
{ description: 'completions-sample', path: 'completions-sample', guide: null, apis: [], contributions: [] },
{ description: 'configuration-sample', path: 'configuration-sample', guide: null, apis: [], contributions: [] },
Expand All @@ -44,14 +44,26 @@ const samples = [
{ description: 'i18n-sample', path: 'i18n-sample', guide: null, apis: [], contributions: [] },
{ description: 'legacy-samples', path: 'legacy-samples', guide: null, apis: [], contributions: [] },
{
description: 'lsp-log-streaming-sample',
description: 'LSP Log Streaming Sample',
path: 'lsp-log-streaming-sample',
guide: null,
apis: [],
contributions: []
},
{ description: 'lsp-multi-server-sample', path: 'lsp-multi-server-sample', guide: null, apis: [], contributions: [] },
{ description: 'lsp-sample', path: 'lsp-sample', guide: null, apis: [], contributions: [] },
{
description: 'LSP Multi Root Server Sample',
path: 'lsp-multi-server-sample',
guide: null,
apis: [],
contributions: []
},
{
description: 'LSP Sample',
path: 'lsp-sample',
guide: null,
apis: [],
contributions: []
},
{ description: 'multi-diagnostics-sample', path: 'multi-diagnostics-sample', guide: null, apis: [], contributions: [] },
{ description: 'nodefs-provider-sample', path: 'nodefs-provider-sample', guide: null, apis: [], contributions: [] },
{ description: 'progress-sample', path: 'progress-sample', guide: null, apis: [], contributions: [] },
Expand Down
7 changes: 7 additions & 0 deletions lsp-log-streaming-sample/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"eg2.tslint"
]
}
6 changes: 6 additions & 0 deletions lsp-log-streaming-sample/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"rules": {
"indent": [true, "tabs"],
"semicolon": [true, "always"]
}
}
7 changes: 7 additions & 0 deletions lsp-multi-server-sample/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"eg2.tslint"
]
}
11 changes: 1 addition & 10 deletions lsp-multi-server-sample/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"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",
"typescript.tsc.autoDetect": "off",
"npm.exclude": ["**/client", "**/server"],
"npm.enableScriptExplorer": true
"editor.insertSpaces": false
}
2 changes: 1 addition & 1 deletion lsp-multi-server-sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A language server example that demonstrates how to start a server per workspace

The example uses proposed Language Server protocol. So the code demoed here might change when the final version of the configuration and workspace folder protocol is released.

## Compile and Run
## Running the Sample

- run `npm install` in this folder. This installs all necessary npm modules in both the client and server folder
- open VS Code on this folder.
Expand Down
6 changes: 6 additions & 0 deletions lsp-multi-server-sample/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"rules": {
"indent": [true, "tabs"],
"semicolon": [true, "always"]
}
}
7 changes: 7 additions & 0 deletions lsp-sample/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"eg2.tslint"
]
}
11 changes: 1 addition & 10 deletions lsp-sample/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"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",
"typescript.tsc.autoDetect": "off",
"npm.exclude": ["**/client", "**/server"],
"npm.enableScriptExplorer": true
"editor.insertSpaces": false
}
2 changes: 1 addition & 1 deletion lsp-sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ It also includes an End-to-End test.
└── server.ts // Language Server entry point
```

## Compile and Run
## Runnint the Sample

- Run `npm install` in this folder. This installs all necessary npm modules in both the client and server folder
- Open VS Code on this folder.
Expand Down
6 changes: 6 additions & 0 deletions lsp-sample/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"rules": {
"indent": [true, "tabs"],
"semicolon": [true, "always"]
}
}

0 comments on commit e82ba7c

Please sign in to comment.