File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import * as vscode from 'vscode';
88import * as util from '../common' ;
99import * as telemetry from '../telemetry' ;
1010import * as cpptools from './client' ;
11+ import * as path from 'path' ;
1112
1213const defaultClientKey : string = "@@default@@" ;
1314export interface ClientKey {
@@ -82,7 +83,7 @@ export class ClientCollection {
8283 public checkOwnership ( client : cpptools . Client , document : vscode . TextDocument ) : boolean {
8384 let owners : cpptools . Client [ ] = [ ] ;
8485 this . languageClients . forEach ( languageClient => {
85- if ( document . uri . fsPath . startsWith ( languageClient . RootPath ) ) {
86+ if ( document . uri . fsPath . startsWith ( languageClient . RootPath + path . sep ) ) {
8687 owners . push ( languageClient ) ;
8788 }
8889 } ) ;
You can’t perform that action at this time.
0 commit comments