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';
8
8
import * as util from '../common' ;
9
9
import * as telemetry from '../telemetry' ;
10
10
import * as cpptools from './client' ;
11
+ import * as path from 'path' ;
11
12
12
13
const defaultClientKey : string = "@@default@@" ;
13
14
export interface ClientKey {
@@ -82,7 +83,7 @@ export class ClientCollection {
82
83
public checkOwnership ( client : cpptools . Client , document : vscode . TextDocument ) : boolean {
83
84
let owners : cpptools . Client [ ] = [ ] ;
84
85
this . languageClients . forEach ( languageClient => {
85
- if ( document . uri . fsPath . startsWith ( languageClient . RootPath ) ) {
86
+ if ( document . uri . fsPath . startsWith ( languageClient . RootPath + path . sep ) ) {
86
87
owners . push ( languageClient ) ;
87
88
}
88
89
} ) ;
You can’t perform that action at this time.
0 commit comments