This repository was archived by the owner on Oct 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,9 +40,8 @@ export interface PluginCreateInfo {
4040 * The portion of tsserver's Project API exposed to plugins
4141 */
4242export interface Project {
43- projectService : {
44- logger : Logger
45- }
43+ projectService : { logger : Logger }
44+ getCurrentDirectory ( ) : string
4645}
4746
4847/**
Original file line number Diff line number Diff line change @@ -385,7 +385,11 @@ export class ProjectConfiguration {
385385
386386 const info : PluginCreateInfo = {
387387 config : configEntry ,
388- project : { projectService : { logger : this . logger } } , // TODO: may need more support
388+ project : {
389+ // TODO: may need more support
390+ getCurrentDirectory : ( ) => this . getHost ( ) . getCurrentDirectory ( ) ,
391+ projectService : { logger : this . logger } ,
392+ } ,
389393 languageService : this . getService ( ) ,
390394 languageServiceHost : this . getHost ( ) ,
391395 serverHost : { } , // TODO: may need an adapter
You can’t perform that action at this time.
0 commit comments