Skip to content

Commit 7997180

Browse files
committed
refactor: remove console logs
1 parent 4ce070f commit 7997180

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

packages/server/src/sampleServer.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ connection.onInitialize((params: InitializeParams): InitializeResult => {
7070

7171
if (configService.hasWorkspaceFolderCapability && params.workspaceFolders) {
7272
fileSystemService.registerWorkspaces(params.workspaceFolders);
73-
// fileSystemService.moduleFileList.forEach((file) => {
74-
// connection.console.log(file);
75-
// });
7673
}
7774

7875
if (configService.hasWorkspaceFolderCapability) {
@@ -119,9 +116,9 @@ connection.onDidChangeConfiguration((change) => {
119116
});
120117

121118
connection.onDidChangeWatchedFiles((change) => {
122-
change.changes.forEach((change) => {
123-
connection.console.log(change.type.toString() + change.uri);
124-
});
119+
// change.changes.forEach((change) => {
120+
// connection.console.log(change.type.toString() + change.uri);
121+
// });
125122
});
126123

127124
function validate(document: TextDocument): void {

packages/server/src/validations/validateFilePath.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,9 @@ export function validateFilePaths(textDocument: TextDocument): Diagnostic[] {
2727
(m = pattern.exec(text)) &&
2828
problems < configService.globalSettings.maxNumberOfProblems
2929
) {
30-
console.log(m);
3130
let skip = false;
3231
for (const comment of text.matchAll(commentPattern)) {
33-
console.log('Comment:', comment);
3432
if (!comment.index) {
35-
console.log('no index');
36-
3733
continue;
3834
}
3935

@@ -42,7 +38,6 @@ export function validateFilePaths(textDocument: TextDocument): Diagnostic[] {
4238
comment.index + comment[0].length >= m.index) ||
4339
(comment.index >= m.index && comment.index <= m.index + m[0].length);
4440

45-
console.log('Skip: ', skip);
4641
if (skip) {
4742
break;
4843
}

0 commit comments

Comments
 (0)