(self, uri)
| 144 | self.observed_uri.remove(uri) |
| 145 | |
| 146 | def sourceKitOptions(self, uri): |
| 147 | file_path = uri2realpath(uri) |
| 148 | flags = GetFlags(file_path, self.compile_file, store=self.store) |
| 149 | if not flags and env.new_file: |
| 150 | if newfileForCompileFile(file_path, self.compile_file, store=self.store): |
| 151 | flags = GetFlags(file_path, self.compile_file, store=self.store) |
| 152 | self.notify_target_changes() |
| 153 | |
| 154 | if not flags and file_path.endswith(".swift"): |
| 155 | flags = InferFlagsForSwift(file_path, self.compile_file, store=self.store) |
| 156 | |
| 157 | if result := self.optionsForFlags(flags): |
| 158 | return { |
| 159 | "compilerArguments": result["options"], |
| 160 | "workingDirectory": result["workingDirectory"], |
| 161 | } |
| 162 | return None |
| 163 | |
| 164 | def optionsForFile(self, uri): |
| 165 | file_path = uri2realpath(uri) |
no test coverage detected