diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-04 16:39:49 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-04 16:39:49 +0800 |
commit | 6e7c082aa3e1011cdecd1761f7d04eabc0e2b8ba (patch) | |
tree | bbb69bdde3ef94b47269d18251834637873428a3 /script/provider | |
parent | 9699b6c6f6ee1ce658bc93343479b5271c18b7f4 (diff) | |
download | lua-language-server-6e7c082aa3e1011cdecd1761f7d04eabc0e2b8ba.zip |
fix #377 watched file must check workspace
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/provider.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index a7927715..71649a2f 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -157,6 +157,9 @@ end) proto.on('workspace/didChangeWatchedFiles', function (params) for _, change in ipairs(params.changes) do local uri = change.uri + if not workspace.isWorkspaceUri(uri) then + goto CONTINUE + end if change.type == define.FileChangeType.Created then log.debug('FileChangeType.Created', uri) workspace.awaitLoadFile(uri) @@ -184,6 +187,7 @@ proto.on('workspace/didChangeWatchedFiles', function (params) end end end + ::CONTINUE:: end end) |