Skip to content

Commit a44bab5

Browse files
authored
Fix #1792 . (#1793)
1 parent 2810249 commit a44bab5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Extension/src/LanguageServer/clientCollection.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import * as vscode from 'vscode';
88
import * as util from '../common';
99
import * as telemetry from '../telemetry';
1010
import * as cpptools from './client';
11+
import * as path from 'path';
1112

1213
const defaultClientKey: string = "@@default@@";
1314
export 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
});

0 commit comments

Comments
 (0)