-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce eslint and modify code accordingly. Furthermore gradle has been modified in order to seperate config and execute statements.
- Loading branch information
1 parent
9e28913
commit 5cf3e7b
Showing
17 changed files
with
361 additions
and
413 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"node": true, | ||
"commonjs": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"google" | ||
], | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"project": "tsconfig.json" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"no-unused-vars": "off", | ||
"@typescript-eslint/no-unused-vars-experimental": "error" | ||
}, | ||
"root": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { SarosExtension } from "../core/saros-extension"; | ||
import { commands } from "vscode"; | ||
import {commands} from 'vscode'; | ||
import {SarosExtension} from '../core'; | ||
|
||
/** | ||
* Activation function of the account module. | ||
|
@@ -8,13 +8,13 @@ import { commands } from "vscode"; | |
* @param {SarosExtension} extension - The instance of the extension | ||
*/ | ||
export function activateAccounts(extension: SarosExtension) { | ||
commands.registerCommand('saros.account.add', () => { | ||
extension.onReady() | ||
.then(resolve => { | ||
return extension.client.addAccount('[email protected]'); | ||
commands.registerCommand('saros.account.add', () => { | ||
extension.onReady() | ||
.then(() => { | ||
return extension.client.addAccount(); | ||
}) | ||
.then(r => { | ||
console.log('Response was: ' + r.response); | ||
.then((r) => { | ||
console.log('Response was: ' + r.response); | ||
}); | ||
}); | ||
} | ||
}); | ||
} |
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 @@ | ||
export * from './activator'; |
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,3 @@ | ||
export * from './saros-lang-client'; | ||
export * from './saros-lang-server'; | ||
export * from './saros-extension'; |
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.