@@ -8,7 +8,7 @@ import * as path from 'path';
88import * as vscode from 'vscode' ;
99import {
1010LanguageClient , LanguageClientOptions , ServerOptions , NotificationType , TextDocumentIdentifier ,
11- RequestType , ErrorAction , CloseAction , DidOpenTextDocumentParams
11+ RequestType , ErrorAction , CloseAction , DidOpenTextDocumentParams , Range
1212} from 'vscode-languageclient' ;
1313import { SourceFileConfigurationItem } from 'vscode-cpptools' ;
1414import { Status } from 'vscode-cpptools/out/testApi' ;
@@ -114,7 +114,7 @@ const ResetDatabaseNotification: NotificationType<void, void> = new Notification
114114const PauseParsingNotification :NotificationType < void , void > = new NotificationType < void , void > ( 'cpptools/pauseParsing' ) ;
115115const ResumeParsingNotification :NotificationType < void , void > = new NotificationType < void , void > ( 'cpptools/resumeParsing' ) ;
116116const ActiveDocumentChangeNotification :NotificationType < TextDocumentIdentifier , void > = new NotificationType < TextDocumentIdentifier , void > ( 'cpptools/activeDocumentChange' ) ;
117- const TextEditorSelectionChangeNotification :NotificationType < vscode . Position , void > = new NotificationType < vscode . Position , void > ( 'cpptools/textEditorSelectionChange' ) ;
117+ const TextEditorSelectionChangeNotification :NotificationType < Range , void > = new NotificationType < Range , void > ( 'cpptools/textEditorSelectionChange' ) ;
118118const ChangeFolderSettingsNotification :NotificationType < FolderSettingsParams , void > = new NotificationType < FolderSettingsParams , void > ( 'cpptools/didChangeFolderSettings' ) ;
119119const ChangeCompileCommandsNotification :NotificationType < FileChangedParams , void > = new NotificationType < FileChangedParams , void > ( 'cpptools/didChangeCompileCommands' ) ;
120120const ChangeSelectedSettingNotification :NotificationType < FolderSelectedSettingParams , void > = new NotificationType < FolderSelectedSettingParams , void > ( 'cpptools/didChangeSelectedSetting' ) ;
@@ -171,7 +171,7 @@ export interface Client {
171171requestNavigationList ( document :vscode . TextDocument ) :Thenable < string > ;
172172activeDocumentChanged ( document :vscode . TextDocument ) :void ;
173173activate ( ) :void ;
174- selectionChanged ( selection :vscode . Position ) :void ;
174+ selectionChanged ( selection :Range ) :void ;
175175sendCustomConfigurations ( configs :any ) :void ;
176176resetDatabase ( ) :void ;
177177deactivate ( ) :void ;
@@ -976,7 +976,7 @@ class DefaultClient implements Client {
976976this . resumeParsing ( ) ;
977977}
978978
979- public selectionChanged ( selection :vscode . Position ) :void {
979+ public selectionChanged ( selection :Range ) :void {
980980this . notifyWhenReady ( ( ) => this . languageClient . sendNotification ( TextEditorSelectionChangeNotification , selection ) ) ;
981981}
982982
@@ -1194,7 +1194,7 @@ class NullClient implements Client {
11941194requestNavigationList ( document :vscode . TextDocument ) :Thenable < string > { return Promise . resolve ( "" ) ; }
11951195activeDocumentChanged ( document :vscode . TextDocument ) :void { }
11961196activate ( ) :void { }
1197- selectionChanged ( selection :vscode . Position ) :void { }
1197+ selectionChanged ( selection :Range ) :void { }
11981198resetDatabase ( ) :void { }
11991199deactivate ( ) :void { }
12001200pauseParsing ( ) :void { }