Skip to content

Commit

Permalink
some minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
onriv committed Oct 27, 2024
1 parent 0dd7019 commit 7e21643
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ The plugin is still on an early stage, check [ISSUES.md](./ISSUES.md) for known
- (Windows) `$HOME\AppData\Local\JetBrains\<Product>\log\idea.log`
- (Macos) `~/Library/Caches/<Product>/log/idea.log`
- If the IDE is freezing, try check also the `threadDumps-freeze-***` files under the log folder.

For showing debug/trace log, add `lean4ij:all` in `MENU > Help > Diagnostic Tools > Debug Log Settings` and restart, see [How-to-enable-debug-logging-in-IntelliJ-IDEA](https://youtrack.jetbrains.com/articles/SUPPORT-A-43/How-to-enable-debug-logging-in-IntelliJ-IDEA) for more docs.

## Acknowledgments

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/lean4ij/language/Lean4PsiFile.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ class Lean4PsiFile(viewProvider: FileViewProvider) : PsiFileBase(viewProvider, L
}

override fun toString(): String {
return "Lean4 Psi File"
return "Lean4PsiFile($virtualFile)"
}
}
2 changes: 1 addition & 1 deletion src/main/kotlin/lean4ij/lsp/LeanLanguageServerFactory.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class LeanLanguageServerFactory : LanguageServerFactory, LanguageServerEnablemen
completionFeature = LeanLSPCompletionFeature()

Check warning on line 61 in src/main/kotlin/lean4ij/lsp/LeanLanguageServerFactory.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unstable API Usage

'setCompletionFeature(com.redhat.devtools.lsp4ij.client.features.@org.jetbrains.annotations.NotNull LSPCompletionFeature)' is declared in unstable class 'com.redhat.devtools.lsp4ij.client.features.LSPClientFeatures' marked with @ApiStatus.Experimental
}
// waiting for lsp4ij https://github.com/redhat-developer/lsp4ij/pull/586
/*override*/ fun isEnabled(file: VirtualFile): Boolean {
override fun isEnabled(file: VirtualFile): Boolean {

Check warning on line 64 in src/main/kotlin/lean4ij/lsp/LeanLanguageServerFactory.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unstable API Usage

Overridden method 'isEnabled(com.intellij.openapi.vfs.@org.jetbrains.annotations.NotNull VirtualFile)' is declared in unstable class 'com.redhat.devtools.lsp4ij.client.features.LSPClientFeatures' marked with @ApiStatus.Experimental
return FileEditorManager.getInstance(project).selectedTextEditor?.let {

Check warning on line 65 in src/main/kotlin/lean4ij/lsp/LeanLanguageServerFactory.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unstable API Usage

'getProject()' is declared in unstable class 'com.redhat.devtools.lsp4ij.client.features.LSPClientFeatures' marked with @ApiStatus.Experimental
it.virtualFile == file
}?: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package lean4ij.lsp.data

import io.kinference.ndarray.extensions.inferType
import lean4ij.util.Constants
import org.eclipse.lsp4j.TextDocumentIdentifier

Expand Down

0 comments on commit 7e21643

Please sign in to comment.