@@ -21,11 +21,9 @@ import {
2121 ServerOptions ,
2222 DocumentSelector ,
2323} from 'vscode-languageclient/node' ;
24- import { ConfigWatcher , IConfigUpdate } from "./ConfigWatcher" ;
2524
2625
2726let defaultClient : LuaClient ;
28- let editorConfigWatcher : ConfigWatcher ;
2927
3028type 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-
7461let _sortedWorkspaceFolders : string [ ] | undefined ;
7562function 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
356341export 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