This repository has been archived by the owner on Apr 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add index.js * Add stderror handling * Prototype full document sync for Python * Some cleanup * Start cleaning up python language client * Remove arguments for now * Revert 'file://' change made for golang server, because that doesn't work on Windows anyway. * Update PLAN.md * Update PLAN.md * Sys example * Clean up python a bit * Add typings for text document sync, add support for branching sync strategy * Fix error in full textdocumentsync strategy * Remove extra debugger statement * Add logging for language client * Some quickInfo improvements to support Python * Update PLAN.md * Fix lint issues * Remove PLAN.md * Add Python support documentation to README * Fix file prefix across platforms * Add platform-specific behavior for file:// URL handling
- Loading branch information
extr0py
authored
Jun 3, 2017
1 parent
5fe6de0
commit 114ac92
Showing
6 changed files
with
145 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const fs = require("fs") | ||
const path = require("path") | ||
const childProcess = require("child_process") | ||
|
||
const activate = (Oni) => { | ||
|
||
const serverOptions = { | ||
command: "pyls", | ||
} | ||
|
||
const getInitializationOptionsAsync = (filePath) => { | ||
return Promise.resolve({ | ||
clientName: "python", | ||
rootPath: "file:///" + filePath, | ||
capabilities: { | ||
highlightProvider: true | ||
} | ||
}) | ||
} | ||
|
||
const client = Oni.createLanguageClient(serverOptions, getInitializationOptionsAsync) | ||
} | ||
|
||
module.exports = { | ||
activate | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "oni-plugin-python", | ||
"version": "0.0.1", | ||
"main": "lib/index.js", | ||
"engines": { | ||
"oni": "^0.2.2" | ||
}, | ||
"oni": { | ||
"supportedFileTypes": [ | ||
"python" | ||
], | ||
"subscriptions": [ | ||
"buffer-update", | ||
"vim-events" | ||
], | ||
"languageService": [ | ||
"quick-info", | ||
"goto-definition", | ||
"completion-provider", | ||
"find-all-references", | ||
"formatting", | ||
"evaluate-block", | ||
"signature-help" | ||
], | ||
"diagnosticsService": [] | ||
}, | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
} | ||
} |