Skip to content

Commit

Permalink
fix var
Browse files Browse the repository at this point in the history
  • Loading branch information
appilon committed Dec 8, 2020
1 parent 6d7e6ae commit 5a62c87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/langserver/diagnostics/diagnostics.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ type Notifier struct {

func NewNotifier(sessCtx context.Context, logger *log.Logger) *Notifier {
n := &Notifier{
logger: logger,
sessCtx: sessCtx,
diags: make(chan diagContext, 50),
logger: logger,
sessCtx: sessCtx,
diags: make(chan diagContext, 50),
diagsCache: make(map[string]map[string][]lsp.Diagnostic),
}
go n.notify()
Expand All @@ -58,7 +58,7 @@ func (n *Notifier) PublishHCLDiags(ctx context.Context, dirPath string, diags ma
n.diags <- diagContext{
ctx: ctx, source: source,
diags: ilsp.HCLDiagsToLSP(ds, source),
uri: lsp.DocumentURI(uri.FromPath(filepath.Join(dir, filename))),
uri: lsp.DocumentURI(uri.FromPath(filepath.Join(dirPath, filename))),
}
}
}
Expand Down

0 comments on commit 5a62c87

Please sign in to comment.