File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2739,9 +2739,16 @@ export class DefaultClient implements Client {
2739
2739
const sanitized : SourceFileConfigurationItemAdapter [ ] = [ ] ;
2740
2740
configs . forEach ( item => {
2741
2741
if ( this . isSourceFileConfigurationItem ( item , providerVersion ) ) {
2742
- this . configurationLogging . set ( item . uri . toString ( ) , JSON . stringify ( item . configuration , null , 4 ) ) ;
2742
+ let uri : string ;
2743
+ if ( util . isString ( item . uri ) && ! item . uri . startsWith ( "file://" ) ) {
2744
+ // If the uri field is a string, it may actually contain an fsPath.
2745
+ uri = vscode . Uri . file ( item . uri ) . toString ( ) ;
2746
+ } else {
2747
+ uri = item . uri . toString ( ) ;
2748
+ }
2749
+ this . configurationLogging . set ( uri , JSON . stringify ( item . configuration , null , 4 ) ) ;
2743
2750
if ( settings . loggingLevel === "Debug" ) {
2744
- out . appendLine ( ` uri: ${ item . uri . toString ( ) } ` ) ;
2751
+ out . appendLine ( ` uri: ${ uri } ` ) ;
2745
2752
out . appendLine ( ` config: ${ JSON . stringify ( item . configuration , null , 2 ) } ` ) ;
2746
2753
}
2747
2754
if ( item . configuration . includePath . some ( path => path . endsWith ( '**' ) ) ) {
@@ -2766,7 +2773,7 @@ export class DefaultClient implements Client {
2766
2773
}
2767
2774
}
2768
2775
sanitized . push ( {
2769
- uri : item . uri . toString ( ) ,
2776
+ uri,
2770
2777
configuration : itemConfig
2771
2778
} ) ;
2772
2779
} else {
You can’t perform that action at this time.
0 commit comments