lib/solargraph/language_server/host.rb
def delete uri
        # sources.close uri # @todo It's possible for a deleted file to be open in an editor
        filename = uri_to_file(uri)
        libraries.each do |lib|
          # lib.delete filename
          lib.detach filename
        end
        send_notification "textDocument/publishDiagnostics", {
          uri: uri,
          diagnostics: []
        }
      end
# Delete the specified file from the library.
#
# @param uri [String] The file uri.
# @return [void]
Delete the specified file from the library.
Delete the specified file from the library .
def delete uri
        filename = uri_to_file(uri)
        libraries.each do |lib|
          lib.detach filename
        end
        send_notification "textDocument/publishDiagnostics", {
          uri: uri,
          diagnostics: []
        }
      end
def delete uri filename = uri_to_file ( uri ) libraries . each do | lib | lib . detach filename end send_notification "textDocument/publishDiagnostics" , { uri : uri , diagnostics : [ ] } end
Delete the specified file from the library.
Delete the specified file from the library .
# sources.close uri # @todo It's possible for a deleted file to be open in an editor # lib.delete filename
None
void
uri
The file uri.
The file uri .