File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ export function createProtocolFilter(): Middleware {
3434 const mappingString : string = baseFileName + "@" + document . fileName ;
3535 client . addFileAssociations ( mappingString , "cpp" ) ;
3636 client . sendDidChangeSettings ( ) ;
37- // Changes to the languageId in the editor take precendence over setTextDocumentLanguage .
38- // So, this may or may not cause the file to be closed and reopened .
37+ // This will definitely cause the file to be closed and reopened .
38+ // setTextDocumentLanguage takes precedence over setting the languageId in UI .
3939 void vscode . languages . setTextDocumentLanguage ( document , "cpp" ) ;
40+ return ;
4041 }
4142 // client.takeOwnership() will call client.TrackedDocuments.add() again, but that's ok. It's a Set.
4243 client . takeOwnership ( document ) ;
You can’t perform that action at this time.
0 commit comments