Skip to content

Commit 3c72247

Browse files
committed
Remove incrementalTypechecking?.debugLogging
1 parent 4301175 commit 3c72247

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,6 @@
195195
"default": false,
196196
"description": "(beta/experimental) Enable incremental type checking across files, so that unsaved file A gets access to unsaved file B."
197197
},
198-
"rescript.settings.incrementalTypechecking.debugLogging": {
199-
"type": "boolean",
200-
"default": false,
201-
"description": "(debug) Enable debug logging (ends up in the extension output)."
202-
},
203198
"rescript.settings.cache.projectConfig.enable": {
204199
"type": "boolean",
205200
"default": true,

server/src/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export interface extensionConfiguration {
2020
incrementalTypechecking?: {
2121
enable?: boolean;
2222
acrossFiles?: boolean;
23-
debugLogging?: boolean;
2423
};
2524
cache?: {
2625
projectConfig?: {
@@ -46,7 +45,6 @@ export const initialConfiguration: extensionConfiguration = {
4645
incrementalTypechecking: {
4746
enable: true,
4847
acrossFiles: false,
49-
debugLogging: false,
5048
},
5149
cache: {
5250
projectConfig: {

server/src/server.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,7 @@ function applyUserConfiguration(configuration: extensionConfiguration) {
3939
configuration,
4040
);
4141

42-
const debugLoggingEnabled =
43-
configuration.incrementalTypechecking?.debugLogging === true;
44-
45-
if (debugLoggingEnabled) {
46-
// incrementalTypechecking.debugLogging overrides logLevel to retain legacy behavior
47-
setLogLevel("log");
48-
return;
49-
}
50-
51-
const level = config.extensionConfiguration.logLevel as LogLevel | undefined;
42+
const level = config.extensionConfiguration.logLevel;
5243

5344
if (
5445
level === "error" ||

0 commit comments

Comments
 (0)