Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8ed0d11

Browse files
Code review: Use default exports
1 parent a5d059f commit 8ed0d11

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

‎server/src/__tests__/analyzer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import FIXTURES from '../../../testing/fixtures'
2-
import {Analyzer} from '../analyser'
2+
import Analyzer from '../analyser'
33

44
const analyzer = new Analyzer()
55

‎server/src/__tests__/executables.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as path from 'path'
2-
import {Executables} from '../executables'
2+
import Executables from '../executables'
33

44
const executablesPromise = Executables.fromPath(
55
path.resolve(__dirname, '..', '..', '..', 'testing', 'executables'),

‎server/src/analyser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type Texts = { [uri: string]: string }
2121
* The Analyzer uses the Abstract Syntax Trees (ASTs) that are provided by
2222
* tree-sitter to find definitions, reference, etc.
2323
*/
24-
export class Analyzer {
24+
export defaultclass Analyzer {
2525
/**
2626
* Initialize the Analyzer based on a connection to the client and an optional
2727
* root path.

‎server/src/executables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as ShUtil from './util/sh'
88
/**
99
* Provides information based on the programs on your PATH
1010
*/
11-
export class Executables {
11+
export defaultclass Executables {
1212
/**
1313
* @param path is expected to to be a ':' separated list of paths.
1414
*/

‎server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import * as LSP from 'vscode-languageserver'
44

5-
import {BashServer} from './server'
5+
import BashServer from './server'
66

77
// tslint:disable-next-line:no-var-requires
88
const pkg = require('../package')

‎server/src/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import * as LSP from 'vscode-languageserver'
22

3-
import {Analyzer} from './analyser'
4-
import {Executables} from './executables'
3+
import Analyzer from './analyser'
4+
import Executables from './executables'
55

66
/**
77
* The BashServer glues together the separate components to implement
88
* the various parts of the Language Server Protocol.
99
*/
10-
export class BashServer {
10+
export defaultclass BashServer {
1111
/**
1212
* Initialize the server based on a connection to the client and the protocols
1313
* initialization paramters.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /