Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb73353f

Browse files
authored
Fix some file association (microsoft#13455)
1 parent799f0b3 commitb73353f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Extension/src/common.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,19 +165,19 @@ export function getVcpkgRoot(): string {
165165
exportfunctionisHeaderFile(uri:vscode.Uri):boolean{
166166
constfileExt:string=path.extname(uri.fsPath);
167167
constfileExtLower:string=fileExt.toLowerCase();
168-
return!fileExt||[".cuh",".hpp",".hh",".hxx",".h++",".hp",".h",".ii",".inl",".idl",""].some(ext=>fileExtLower===ext);
168+
return!fileExt||[".cuh",".hpp",".hh",".hxx",".h++",".hp",".h",".inl",".ipp",".tcc",".tlh",".tli",""].some(ext=>fileExtLower===ext);
169169
}
170170

171171
exportfunctionisCppFile(uri:vscode.Uri):boolean{
172172
constfileExt:string=path.extname(uri.fsPath);
173173
constfileExtLower:string=fileExt.toLowerCase();
174-
return(fileExt===".C")||[".cu",".cpp",".cc",".cxx",".c++",".cp",".ino",".ipp",".tcc"].some(ext=>fileExtLower===ext);
174+
return(fileExt===".C")||[".cu",".cpp",".cc",".cxx",".c++",".cp",".ii",".ino"].some(ext=>fileExtLower===ext);
175175
}
176176

177177
exportfunctionisCFile(uri:vscode.Uri):boolean{
178178
constfileExt:string=path.extname(uri.fsPath);
179179
constfileExtLower:string=fileExt.toLowerCase();
180-
return(fileExt===".C")||fileExtLower===".c";
180+
returnfileExt===".c"||fileExtLower===".i";
181181
}
182182

183183
exportfunctionisCppOrCFile(uri:vscode.Uri|undefined):boolean{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp