This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #260 from thecotne/fix_language_server
fix @hegel/language-server
- Loading branch information
Showing
33 changed files
with
289 additions
and
124 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
{ | ||
"files.trimTrailingWhitespace": false | ||
"files.trimTrailingWhitespace": false, | ||
"search.exclude": { | ||
"**/.docz": true, | ||
"**/.git": true, | ||
"**/bower_components": true, | ||
"**/build": true, | ||
"**/dist": true, | ||
"**/node_modules": true | ||
} | ||
} |
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,10 @@ | ||
{ | ||
"sourceType": "module", | ||
"presets": [ | ||
["@babel/preset-env", { "targets": { "node": "current" }, "modules": false }], | ||
"@babel/preset-flow" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-properties" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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,60 @@ | ||
{ | ||
"name": "hegel-language-server", | ||
"displayName": "Hegel", | ||
"description": "Language server for Hegel Type Checker", | ||
"version": "0.0.45", | ||
"engines": { | ||
"vscode": "^1.31.0" | ||
}, | ||
"publisher": "JSMonk", | ||
"icon": "images/logo.png", | ||
"categories": [ | ||
"Programming Languages", | ||
"Linters" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/JSMonk/hegel" | ||
}, | ||
"activationEvents": [ | ||
"onLanguage:javascript", | ||
"workspaceContains:**/.hegelrc" | ||
], | ||
"main": "./client.js", | ||
"contributes": { | ||
"configuration": { | ||
"type": "object", | ||
"title": "Client configuration", | ||
"properties": { | ||
"hegelLanguageServer.maxNumberOfProblems": { | ||
"type": "number", | ||
"default": 100, | ||
"description": "Controls the maximum number of problems produced by the server." | ||
}, | ||
"hegelLanguageServer.trace.server": { | ||
"type": "string", | ||
"enum": [ | ||
"off", | ||
"messages", | ||
"verbose" | ||
], | ||
"default": "off", | ||
"description": "Traces the communication between VSCode and the hegelLanguageServer service." | ||
} | ||
} | ||
}, | ||
"languages": [ | ||
{ | ||
"id": "javascript", | ||
"extensions": [ | ||
".js", | ||
".cjs", | ||
".mjs" | ||
] | ||
} | ||
] | ||
}, | ||
"dependencies": { | ||
"@hegel/typings": "*" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,45 @@ | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
import babel from '@rollup/plugin-babel'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import builtinModules from 'builtin-modules'; | ||
import replace from '@rollup/plugin-replace'; | ||
|
||
const base = { | ||
output: { | ||
format: 'cjs' | ||
}, | ||
external: [ | ||
...builtinModules, | ||
'vscode' | ||
], | ||
plugins: [ | ||
resolve({ | ||
preferBuiltins: true | ||
}), | ||
commonjs(), | ||
babel({ babelHelpers: 'bundled' }) | ||
] | ||
}; | ||
|
||
export default [ | ||
{ | ||
...base, | ||
input: 'src/client/client.js', | ||
output: { | ||
...base.output, | ||
file: 'build/client.js', | ||
} | ||
}, | ||
{ | ||
...base, | ||
input: 'src/server/server.js', | ||
output: { | ||
...base.output, | ||
file: 'build/server.js', | ||
plugins: [ | ||
// workaround bug in @rollup/plugin-commonjs see https://github.com/rollup/plugins/issues/406 | ||
replace({ 'commonjsRequire.resolve': 'require.resolve' }) | ||
] | ||
} | ||
} | ||
]; |
7 changes: 3 additions & 4 deletions
7
packages/language-server/client/client.js → ...ages/language-server/src/client/client.js
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
8 changes: 4 additions & 4 deletions
8
...server/completion/completion-item-kind.js → ...server/completion/completion-item-kind.js
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
4 changes: 2 additions & 2 deletions
4
...guage-server/server/validation/typings.js → ...e-server/src/server/validation/typings.js
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
Oops, something went wrong.