@@ -7,7 +7,6 @@ import * as os from 'os';
7
7
import * as path from 'path' ;
8
8
import * as vscode from 'vscode' ;
9
9
import * as objects from '../utils/objects' ;
10
- import * as arrays from './arrays' ;
11
10
12
11
export enum TsServerLogLevel {
13
12
Off ,
@@ -66,10 +65,7 @@ export class ImplicitProjectConfiguration {
66
65
}
67
66
68
67
public isEqualTo ( other : ImplicitProjectConfiguration ) : boolean {
69
- return this . checkJs === other . checkJs
70
- && this . experimentalDecorators === other . experimentalDecorators
71
- && this . strictNullChecks === other . strictNullChecks
72
- && this . strictFunctionTypes === other . strictFunctionTypes ;
68
+ return objects . equals ( this , other ) ;
73
69
}
74
70
75
71
private static readCheckJs ( configuration : vscode . WorkspaceConfiguration ) : boolean {
@@ -129,20 +125,7 @@ export class TypeScriptServiceConfiguration {
129
125
}
130
126
131
127
public isEqualTo ( other : TypeScriptServiceConfiguration ) : boolean {
132
- return this . locale === other . locale
133
- && this . globalTsdk === other . globalTsdk
134
- && this . localTsdk === other . localTsdk
135
- && this . npmLocation === other . npmLocation
136
- && this . tsServerLogLevel === other . tsServerLogLevel
137
- && this . implictProjectConfiguration . isEqualTo ( other . implictProjectConfiguration )
138
- && this . disableAutomaticTypeAcquisition === other . disableAutomaticTypeAcquisition
139
- && arrays . equals ( this . tsServerPluginPaths , other . tsServerPluginPaths )
140
- && this . separateSyntaxServer === other . separateSyntaxServer
141
- && this . enableProjectDiagnostics === other . enableProjectDiagnostics
142
- && this . maxTsServerMemory === other . maxTsServerMemory
143
- && objects . equals ( this . watchOptions , other . watchOptions )
144
- && this . enablePromptUseWorkspaceTsdk === other . enablePromptUseWorkspaceTsdk
145
- && this . includePackageJsonAutoImports === other . includePackageJsonAutoImports ;
128
+ return objects . equals ( this , other ) ;
146
129
}
147
130
148
131
private static fixPathPrefixes ( inspectValue : string ) : string {
0 commit comments