Skip to content

Commit

Permalink
workarounds for bad go comment formatting behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Aug 2, 2022
1 parent af0ab3e commit 296870e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/fs/filepath.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ func (fp goFilepath) fromSlash(path string) string {
// If the result of this process is an empty string, Clean
// returns the string ".".
//
// See also Rob Pike, Lexical File Names in Plan 9 or
// Getting Dot-Dot Right,
// See also Rob Pike, "Lexical File Names in Plan 9 or
// Getting Dot-Dot Right,"
// https://9p.io/sys/doc/lexnames.html
func (fp goFilepath) clean(path string) string {
originalPath := path
Expand Down
6 changes: 3 additions & 3 deletions internal/resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1179,9 +1179,9 @@ func (r resolverQuery) dirInfoUncached(path string) *dirInfo {
return info
}

// https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-beta/#resolution-customization-with-modulesuffixes
// "Note that the empty string in moduleSuffixes is necessary for TypeScript to
// also look-up ./foo.ts. In a sense, the default value for moduleSuffixes is [”]."
// From: https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-beta/#resolution-customization-with-modulesuffixes
// Note that the empty string "" in moduleSuffixes is necessary for TypeScript to
// also look-up ./foo.ts. In a sense, the default value for moduleSuffixes is [""].
var defaultModuleSuffixes = []string{""}

var rewrittenFileExtensions = map[string][]string{
Expand Down

0 comments on commit 296870e

Please sign in to comment.