         editorSaveSubscription.dispose()
         editorStopChangingSubscription.dispose()
         editorDestroySubscription.dispose()
+
+    # React on project paths changes
+    @pathsChangedSubscription = atom.project.onDidChangePaths (projectPaths) ->
+      cleanRobotProjectPaths()
 
     # Atom commands
     atom.commands.add 'atom-text-editor', 'Robot Framework:Print autocomplete debug info', ->

  selector: '.text.robot'
  disableForSelector: '.comment, .variable, .punctuation, .string, .storage, .keyword'
  loading: undefined    # Set to 'true' during autocomplete data async loading
  # List of projects that contain robot files. Initially empty, will be completed
  # once user starts editing files.
  robotProjectPaths: undefined

      suggestions = autocomplete.getSuggestions(prefix, path, provider.settings)
      resolve(suggestions)
  unload: ->
    @pathsChangedSubscription.dispose()
  load: ->
    @robotProjectPaths = {}
    # Configuration
