How to use the atom-languageclient.Convert.pathToUri function in atom-languageclient

To help you get started, we’ve selected a few atom-languageclient examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github spring-projects / sts4 / atom-extensions / atom-commons / lib / sts-adapter.js View on Github external
            .filter(e => e && e.getPath() && Convert.pathToUri(e.getPath()) === uri);
    }
github rianneogi / ide-cquery / lib / main.js View on Github external
server.disposable.add(atom.workspace.onDidChangeActiveTextEditor(editor => {
      if(!editor || !editor.getPath()) {
        return;
      }
      let paths = atom.project.relativizePath(editor.getPath());
      if(paths[0] && !path.relative(paths[0], server.projectPath)) {
        server.connection.sendCustomRequest('$cquery/textDocumentDidView', {textDocumentUri: Convert.pathToUri(editor.getPath())});
        
        editor.onDidStopChanging(() => {
          server.connection.sendCustomRequest('$cquery/textDocumentDidView', {textDocumentUri: Convert.pathToUri(editor.getPath())});
        })
      }
      
    }));
github rianneogi / ide-cquery / lib / main.js View on Github external
let paths = atom.project.relativizePath(editor.getPath());
      if(paths[0] && !path.relative(paths[0], server.projectPath)) {
        server.connection.sendCustomRequest('$cquery/textDocumentDidView', {textDocumentUri: Convert.pathToUri(editor.getPath())});
        
        editor.onDidStopChanging(() => {
          server.connection.sendCustomRequest('$cquery/textDocumentDidView', {textDocumentUri: Convert.pathToUri(editor.getPath())});
        })
      }
      
    }));

    let editor = atom.workspace.getActiveTextEditor();
    if(editor) {
      let paths = atom.project.relativizePath(editor.getPath());
      if(!path.relative(paths[0], server.projectPath)) {
        server.connection.sendCustomRequest('$cquery/textDocumentDidView', {textDocumentUri: Convert.pathToUri(editor.getPath())});
        
        editor.onDidStopChanging(() => {
          server.connection.sendCustomRequest('$cquery/textDocumentDidView', {textDocumentUri: Convert.pathToUri(editor.getPath())});
        })
      }
    }
  }
}
github spring-projects / sts4 / atom-extensions / atom-commons / lib / sts-adapter.ts View on Github external
            .filter(e => e && e.getPath() && Convert.pathToUri(e.getPath() || '') === uri);
    }