File tree Expand file tree Collapse file tree 3 files changed +5
-16
lines changed
extension/src/languageClient Expand file tree Collapse file tree 3 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ export class LanguageClient extends Disposable {
1717
1818 const clientOptions : LanguageClientOptions = {
1919 documentSelector,
20-
2120 synchronize : {
2221 fileEvents : workspace . createFileSystemWatcher ( '**/dvc.yaml' )
2322 }
Original file line number Diff line number Diff line change 11export const documentSelector = [
22 {
3- language : 'yaml'
4- } ,
5- {
6- pattern : '**/*.{dvc,dvc.lock}'
7- } ,
8- {
9- language : 'json'
10- } ,
11- {
12- language : 'toml'
13- } ,
14- {
15- language : 'python'
3+ pattern : '**/dvc.yaml'
164 }
175]
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ import {
1010 SymbolKind ,
1111 DocumentSymbol ,
1212 Connection ,
13- Location
13+ Location ,
14+ TextDocumentSyncKind
1415} from 'vscode-languageserver/node'
1516import { TextDocument } from 'vscode-languageserver-textdocument'
1617import { URI } from 'vscode-uri'
@@ -117,7 +118,8 @@ export class LanguageServer {
117118
118119 private onInitialize ( ) {
119120 const serverCapabilities : ServerCapabilities = {
120- definitionProvider : true
121+ definitionProvider : true ,
122+ textDocumentSync : TextDocumentSyncKind . Incremental
121123 }
122124
123125 const result : InitializeResult = {
You can’t perform that action at this time.
0 commit comments