Skip to content

Commit 9f727ab

Browse files
committed
remove ConfigWatcher
implemented by the server
1 parent 4602020 commit 9f727ab

File tree

4 files changed

+0
-212
lines changed

4 files changed

+0
-212
lines changed

client/out/ConfigWatcher.js

Lines changed: 0 additions & 89 deletions
This file was deleted.

client/out/languageserver.js

Lines changed: 0 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/ConfigWatcher.ts

Lines changed: 0 additions & 93 deletions
This file was deleted.

client/src/languageserver.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ import {
2121
ServerOptions,
2222
DocumentSelector,
2323
} from 'vscode-languageclient/node';
24-
import { ConfigWatcher, IConfigUpdate } from "./ConfigWatcher";
2524

2625

2726
let defaultClient: LuaClient;
28-
let editorConfigWatcher: ConfigWatcher;
2927

3028
type HintResult = {
3129
text: string,
@@ -60,17 +58,6 @@ function registerCustomCommands(context: ExtensionContext) {
6058
}))
6159
}
6260

63-
function registerConfigWatch(context: ExtensionContext) {
64-
editorConfigWatcher = new ConfigWatcher('**/.editorconfig');
65-
66-
editorConfigWatcher.onConfigUpdate(onEditorConfigUpdate);
67-
context.subscriptions.push(editorConfigWatcher);
68-
}
69-
70-
function onEditorConfigUpdate(e: IConfigUpdate) {
71-
defaultClient?.client?.sendRequest('config/editorconfig/update', e);
72-
}
73-
7461
let _sortedWorkspaceFolders: string[] | undefined;
7562
function sortedWorkspaceFolders(): string[] {
7663
if (_sortedWorkspaceFolders === void 0) {
@@ -113,7 +100,6 @@ class LuaClient {
113100
}
114101

115102
async start() {
116-
const editorConfigFiles = await editorConfigWatcher.watch();
117103
// Options to control the language client
118104
let clientOptions: LanguageClientOptions = {
119105
// Register the server for plain text documents
@@ -124,7 +110,6 @@ class LuaClient {
124110
},
125111
initializationOptions: {
126112
changeConfiguration: true,
127-
editorConfigFiles
128113
}
129114
};
130115

@@ -355,7 +340,6 @@ function onInlayHint(client: LanguageClient) {
355340

356341
export function activate(context: ExtensionContext) {
357342
registerCustomCommands(context);
358-
registerConfigWatch(context);
359343
function didOpenTextDocument(document: TextDocument) {
360344
// We are only interested in language mode text
361345
if (document.languageId !== 'lua' || (document.uri.scheme !== 'file' && document.uri.scheme !== 'untitled')) {

0 commit comments

Comments
 (0)