Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit cf29e80

Browse files
committed
refactor(lint): apply lint
1 parent fc3002d commit cf29e80

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/plugins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface PluginCreateInfo {
4040
* The portion of tsserver's Project API exposed to plugins
4141
*/
4242
export interface Project {
43-
getCurrentDirectory: () => string,
43+
getCurrentDirectory: () => string
4444
projectService: {
4545
logger: Logger
4646
}

src/project-manager.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,11 @@ export class ProjectConfiguration {
385385

386386
const info: PluginCreateInfo = {
387387
config: configEntry,
388-
project: { // TODO: may need more support
389-
getCurrentDirectory: this.getHost().getCurrentDirectory,
388+
project: {
389+
// TODO: may need more support
390+
getCurrentDirectory: this.getHost().getCurrentDirectory.bind(this),
390391
projectService: { logger: this.logger },
391-
},
392+
},
392393
languageService: this.getService(),
393394
languageServiceHost: this.getHost(),
394395
serverHost: {}, // TODO: may need an adapter

0 commit comments

Comments
 (0)